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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 // windows owned by the window manager in which the client is embedded. | 99 // windows owned by the window manager in which the client is embedded. |
100 virtual void OnWmClientJankinessChanged( | 100 virtual void OnWmClientJankinessChanged( |
101 const std::set<Window*>& client_windows, | 101 const std::set<Window*>& client_windows, |
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 virtual void OnAccelerator(uint32_t id, const ui::Event& event) = 0; | 109 virtual mojom::EventResult OnAccelerator(uint32_t id, const ui::Event& event); |
110 | 110 |
111 virtual void OnWmPerformMoveLoop( | 111 virtual void OnWmPerformMoveLoop( |
112 Window* window, | 112 Window* window, |
113 ui::mojom::MoveLoopSource source, | 113 ui::mojom::MoveLoopSource source, |
114 const gfx::Point& cursor_location, | 114 const gfx::Point& cursor_location, |
115 const base::Callback<void(bool)>& on_done) = 0; | 115 const base::Callback<void(bool)>& on_done) = 0; |
116 | 116 |
117 virtual void OnWmCancelMoveLoop(Window* window) = 0; | 117 virtual void OnWmCancelMoveLoop(Window* window) = 0; |
118 | 118 |
119 protected: | 119 protected: |
120 virtual ~WindowManagerDelegate() {} | 120 virtual ~WindowManagerDelegate() {} |
121 }; | 121 }; |
122 | 122 |
123 } // namespace ui | 123 } // namespace ui |
124 | 124 |
125 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_ | 125 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_ |
OLD | NEW |