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_WS_DISPLAY_H_ | 5 #ifndef SERVICES_UI_WS_DISPLAY_H_ |
6 #define SERVICES_UI_WS_DISPLAY_H_ | 6 #define SERVICES_UI_WS_DISPLAY_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 void CreateWindowManagerDisplayRootFromFactory( | 159 void CreateWindowManagerDisplayRootFromFactory( |
160 WindowManagerWindowTreeFactory* factory); | 160 WindowManagerWindowTreeFactory* factory); |
161 | 161 |
162 // Creates the root ServerWindow for this display, where |size| is in physical | 162 // Creates the root ServerWindow for this display, where |size| is in physical |
163 // pixels. | 163 // pixels. |
164 void CreateRootWindow(const gfx::Size& size); | 164 void CreateRootWindow(const gfx::Size& size); |
165 | 165 |
166 // PlatformDisplayDelegate: | 166 // PlatformDisplayDelegate: |
167 display::Display GetDisplay() override; | 167 display::Display GetDisplay() override; |
168 ServerWindow* GetRootWindow() override; | 168 ServerWindow* GetRootWindow() override; |
| 169 ServerWindow* GetActiveRootWindow() override; |
169 void OnAcceleratedWidgetAvailable() override; | 170 void OnAcceleratedWidgetAvailable() override; |
170 bool IsInHighContrastMode() override; | 171 bool IsInHighContrastMode() override; |
171 void OnEvent(const ui::Event& event) override; | 172 void OnEvent(const ui::Event& event) override; |
172 void OnNativeCaptureLost() override; | 173 void OnNativeCaptureLost() override; |
173 | 174 |
174 // FocusControllerDelegate: | 175 // FocusControllerDelegate: |
175 bool CanHaveActiveChildren(ServerWindow* window) const override; | 176 bool CanHaveActiveChildren(ServerWindow* window) const override; |
176 | 177 |
177 // FocusControllerObserver: | 178 // FocusControllerObserver: |
178 void OnActivationChanged(ServerWindow* old_active_window, | 179 void OnActivationChanged(ServerWindow* old_active_window, |
(...skipping 22 matching lines...) Expand all Loading... |
201 | 202 |
202 WindowManagerDisplayRootMap window_manager_display_root_map_; | 203 WindowManagerDisplayRootMap window_manager_display_root_map_; |
203 | 204 |
204 DISALLOW_COPY_AND_ASSIGN(Display); | 205 DISALLOW_COPY_AND_ASSIGN(Display); |
205 }; | 206 }; |
206 | 207 |
207 } // namespace ws | 208 } // namespace ws |
208 } // namespace ui | 209 } // namespace ui |
209 | 210 |
210 #endif // SERVICES_UI_WS_DISPLAY_H_ | 211 #endif // SERVICES_UI_WS_DISPLAY_H_ |
OLD | NEW |