| 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 // Inits the necessary state once the display is ready. | 156 // Inits the necessary state once the display is ready. |
| 157 void InitWindowManagerDisplayRootsIfNecessary(); | 157 void InitWindowManagerDisplayRootsIfNecessary(); |
| 158 | 158 |
| 159 // Creates the set of WindowManagerDisplayRoots from the | 159 // Creates the set of WindowManagerDisplayRoots from the |
| 160 // WindowManagerWindowTreeFactorySet. | 160 // WindowManagerWindowTreeFactorySet. |
| 161 void CreateWindowManagerDisplayRootsFromFactories(); | 161 void CreateWindowManagerDisplayRootsFromFactories(); |
| 162 | 162 |
| 163 void CreateWindowManagerDisplayRootFromFactory( | 163 void CreateWindowManagerDisplayRootFromFactory( |
| 164 WindowManagerWindowTreeFactory* factory); | 164 WindowManagerWindowTreeFactory* factory); |
| 165 | 165 |
| 166 // Creates the root ServerWindow for this display. The root window will have | 166 // Creates the root ServerWindow for this display, where |size| is in physical |
| 167 // |size| in DIP. | 167 // pixels. |
| 168 void CreateRootWindow(const gfx::Size& size); | 168 void CreateRootWindow(const gfx::Size& size); |
| 169 | 169 |
| 170 // PlatformDisplayDelegate: | 170 // PlatformDisplayDelegate: |
| 171 ServerWindow* GetRootWindow() override; | 171 ServerWindow* GetRootWindow() override; |
| 172 bool IsInHighContrastMode() override; | 172 bool IsInHighContrastMode() override; |
| 173 void OnEvent(const ui::Event& event) override; | 173 void OnEvent(const ui::Event& event) override; |
| 174 void OnNativeCaptureLost() override; | 174 void OnNativeCaptureLost() override; |
| 175 | 175 |
| 176 // FocusControllerDelegate: | 176 // FocusControllerDelegate: |
| 177 bool CanHaveActiveChildren(ServerWindow* window) const override; | 177 bool CanHaveActiveChildren(ServerWindow* window) const override; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 205 | 205 |
| 206 WindowManagerDisplayRootMap window_manager_display_root_map_; | 206 WindowManagerDisplayRootMap window_manager_display_root_map_; |
| 207 | 207 |
| 208 DISALLOW_COPY_AND_ASSIGN(Display); | 208 DISALLOW_COPY_AND_ASSIGN(Display); |
| 209 }; | 209 }; |
| 210 | 210 |
| 211 } // namespace ws | 211 } // namespace ws |
| 212 } // namespace ui | 212 } // namespace ui |
| 213 | 213 |
| 214 #endif // SERVICES_UI_WS_DISPLAY_H_ | 214 #endif // SERVICES_UI_WS_DISPLAY_H_ |
| OLD | NEW |