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 SERVICES_UI_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_ | 5 #ifndef SERVICES_UI_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_ |
6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_ | 6 #define SERVICES_UI_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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 bool janky) = 0; | 102 bool janky) = 0; |
103 | 103 |
104 // Called when a display is added. |window| is the root of the window tree for | 104 // Called when a display is added. |window| is the root of the window tree for |
105 // the specified display. | 105 // the specified display. |
106 virtual void OnWmNewDisplay(Window* window, | 106 virtual void OnWmNewDisplay(Window* window, |
107 const display::Display& display) = 0; | 107 const display::Display& display) = 0; |
108 | 108 |
109 // Called when a display is removed. |window| is the root of the display. | 109 // Called when a display is removed. |window| is the root of the display. |
110 virtual void OnWmDisplayRemoved(Window* window) = 0; | 110 virtual void OnWmDisplayRemoved(Window* window) = 0; |
111 | 111 |
| 112 // Called when a display is modified. |
| 113 virtual void OnWmDisplayModified(const display::Display& display) = 0; |
| 114 |
112 virtual mojom::EventResult OnAccelerator(uint32_t id, const ui::Event& event); | 115 virtual mojom::EventResult OnAccelerator(uint32_t id, const ui::Event& event); |
113 | 116 |
114 virtual void OnWmPerformMoveLoop( | 117 virtual void OnWmPerformMoveLoop( |
115 Window* window, | 118 Window* window, |
116 ui::mojom::MoveLoopSource source, | 119 ui::mojom::MoveLoopSource source, |
117 const gfx::Point& cursor_location, | 120 const gfx::Point& cursor_location, |
118 const base::Callback<void(bool)>& on_done) = 0; | 121 const base::Callback<void(bool)>& on_done) = 0; |
119 | 122 |
120 virtual void OnWmCancelMoveLoop(Window* window) = 0; | 123 virtual void OnWmCancelMoveLoop(Window* window) = 0; |
121 | 124 |
122 protected: | 125 protected: |
123 virtual ~WindowManagerDelegate() {} | 126 virtual ~WindowManagerDelegate() {} |
124 }; | 127 }; |
125 | 128 |
126 } // namespace ui | 129 } // namespace ui |
127 | 130 |
128 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_ | 131 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_ |
OLD | NEW |