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> |
11 #include <memory> | 11 #include <memory> |
12 #include <string> | 12 #include <string> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/callback_forward.h" | 15 #include "base/callback_forward.h" |
16 #include "services/ui/public/interfaces/cursor.mojom.h" | 16 #include "services/ui/public/interfaces/cursor.mojom.h" |
17 #include "services/ui/public/interfaces/event_matcher.mojom.h" | 17 #include "services/ui/public/interfaces/event_matcher.mojom.h" |
18 #include "services/ui/public/interfaces/window_manager_constants.mojom.h" | 18 #include "services/ui/public/interfaces/window_manager_constants.mojom.h" |
| 19 #include "services/ui/public/interfaces/window_tree_constants.mojom.h" |
19 #include "ui/events/mojo/event.mojom.h" | 20 #include "ui/events/mojo/event.mojom.h" |
20 | 21 |
21 namespace display { | 22 namespace display { |
22 class Display; | 23 class Display; |
23 } | 24 } |
24 | 25 |
25 namespace gfx { | 26 namespace gfx { |
26 class Insets; | 27 class Insets; |
27 class Rect; | 28 class Rect; |
28 class Vector2d; | 29 class Vector2d; |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 // 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. |
99 virtual void OnWmClientJankinessChanged( | 100 virtual void OnWmClientJankinessChanged( |
100 const std::set<Window*>& client_windows, | 101 const std::set<Window*>& client_windows, |
101 bool janky) = 0; | 102 bool janky) = 0; |
102 | 103 |
103 // 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 |
104 // the specified display. | 105 // the specified display. |
105 virtual void OnWmNewDisplay(Window* window, | 106 virtual void OnWmNewDisplay(Window* window, |
106 const display::Display& display) = 0; | 107 const display::Display& display) = 0; |
107 | 108 |
108 virtual void OnAccelerator(uint32_t id, const ui::Event& event) = 0; | 109 virtual mojom::EventResult OnAccelerator(uint32_t id, const ui::Event& event); |
109 | 110 |
110 protected: | 111 protected: |
111 virtual ~WindowManagerDelegate() {} | 112 virtual ~WindowManagerDelegate() {} |
112 }; | 113 }; |
113 | 114 |
114 } // namespace ui | 115 } // namespace ui |
115 | 116 |
116 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_ | 117 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_ |
OLD | NEW |