| 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 // Called when a display is removed. |window| is the root of the display. |
| 110 virtual void OnWmDisplayRemoved(Window* window) = 0; |
| 111 |
| 109 virtual mojom::EventResult OnAccelerator(uint32_t id, const ui::Event& event); | 112 virtual mojom::EventResult OnAccelerator(uint32_t id, const ui::Event& event); |
| 110 | 113 |
| 111 virtual void OnWmPerformMoveLoop( | 114 virtual void OnWmPerformMoveLoop( |
| 112 Window* window, | 115 Window* window, |
| 113 ui::mojom::MoveLoopSource source, | 116 ui::mojom::MoveLoopSource source, |
| 114 const gfx::Point& cursor_location, | 117 const gfx::Point& cursor_location, |
| 115 const base::Callback<void(bool)>& on_done) = 0; | 118 const base::Callback<void(bool)>& on_done) = 0; |
| 116 | 119 |
| 117 virtual void OnWmCancelMoveLoop(Window* window) = 0; | 120 virtual void OnWmCancelMoveLoop(Window* window) = 0; |
| 118 | 121 |
| 119 protected: | 122 protected: |
| 120 virtual ~WindowManagerDelegate() {} | 123 virtual ~WindowManagerDelegate() {} |
| 121 }; | 124 }; |
| 122 | 125 |
| 123 } // namespace ui | 126 } // namespace ui |
| 124 | 127 |
| 125 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_ | 128 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_ |
| OLD | NEW |