| // Copyright 2015 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef UI_AURA_MUS_WINDOW_TREE_CLIENT_OBSERVER_H_ |
| #define UI_AURA_MUS_WINDOW_TREE_CLIENT_OBSERVER_H_ |
| |
| #include "services/ws/public/mojom/window_tree_constants.mojom.h" |
| #include "ui/aura/aura_export.h" |
| |
| namespace aura { |
| |
| class Window; |
| class WindowTreeClient; |
| |
| class AURA_EXPORT WindowTreeClientObserver { |
| public: |
| // Called early on in the destructor of WindowTreeClient. |
| virtual void OnWillDestroyClient(WindowTreeClient* client) {} |
| |
| // Called when a WindowMove started on |window| from |source| event. |
| virtual void OnWindowMoveStarted(Window* window, |
| const gfx::Point& cursor_location, |
| ws::mojom::MoveLoopSource source) {} |
| |
| // Called when the WindowMove ended. |
| virtual void OnWindowMoveEnded(bool success) {} |
| |
| protected: |
| virtual ~WindowTreeClientObserver() {} |
| }; |
| |
| } // namespace aura |
| |
| #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_OBSERVER_H_ |