OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_ | 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_ |
6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_ | 6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 mojom::EventMatcherPtr event_matcher, | 49 mojom::EventMatcherPtr event_matcher, |
50 const base::Callback<void(bool)>& callback) = 0; | 50 const base::Callback<void(bool)>& callback) = 0; |
51 virtual void RemoveAccelerator(uint32_t id) = 0; | 51 virtual void RemoveAccelerator(uint32_t id) = 0; |
52 virtual void AddActivationParent(Window* window) = 0; | 52 virtual void AddActivationParent(Window* window) = 0; |
53 virtual void RemoveActivationParent(Window* window) = 0; | 53 virtual void RemoveActivationParent(Window* window) = 0; |
54 virtual void ActivateNextWindow() = 0; | 54 virtual void ActivateNextWindow() = 0; |
55 virtual void SetUnderlaySurfaceOffsetAndExtendedHitArea( | 55 virtual void SetUnderlaySurfaceOffsetAndExtendedHitArea( |
56 Window* window, | 56 Window* window, |
57 const gfx::Vector2d& offset, | 57 const gfx::Vector2d& offset, |
58 const gfx::Insets& hit_area) = 0; | 58 const gfx::Insets& hit_area) = 0; |
| 59 virtual void OnWmMoveLoopCompleted(uint32_t change_id, |
| 60 bool completed) = 0; |
59 | 61 |
60 protected: | 62 protected: |
61 virtual ~WindowManagerClient() {} | 63 virtual ~WindowManagerClient() {} |
62 }; | 64 }; |
63 | 65 |
64 // Used by clients implementing a window manager. | 66 // Used by clients implementing a window manager. |
65 // TODO(sky): this should be called WindowManager, but that's rather confusing | 67 // TODO(sky): this should be called WindowManager, but that's rather confusing |
66 // currently. | 68 // currently. |
67 class WindowManagerDelegate { | 69 class WindowManagerDelegate { |
68 public: | 70 public: |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 const std::set<Window*>& client_windows, | 102 const std::set<Window*>& client_windows, |
101 bool janky) = 0; | 103 bool janky) = 0; |
102 | 104 |
103 // Called when a display is added. |window| is the root of the window tree for | 105 // Called when a display is added. |window| is the root of the window tree for |
104 // the specified display. | 106 // the specified display. |
105 virtual void OnWmNewDisplay(Window* window, | 107 virtual void OnWmNewDisplay(Window* window, |
106 const display::Display& display) = 0; | 108 const display::Display& display) = 0; |
107 | 109 |
108 virtual void OnAccelerator(uint32_t id, const ui::Event& event) = 0; | 110 virtual void OnAccelerator(uint32_t id, const ui::Event& event) = 0; |
109 | 111 |
| 112 virtual void OnWmPerformMoveLoop(uint32_t change_id, |
| 113 uint32_t window_id, |
| 114 const gfx::Point& cursor_location) = 0; |
| 115 |
| 116 virtual void OnWmCancelMoveLoop(uint32_t window_id) = 0; |
| 117 |
110 protected: | 118 protected: |
111 virtual ~WindowManagerDelegate() {} | 119 virtual ~WindowManagerDelegate() {} |
112 }; | 120 }; |
113 | 121 |
114 } // namespace mus | 122 } // namespace mus |
115 | 123 |
116 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_ | 124 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_ |
OLD | NEW |