| 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 | 146 |
| 147 // Returns the root window of the active user. | 147 // Returns the root window of the active user. |
| 148 ServerWindow* GetActiveRootWindow(); | 148 ServerWindow* GetActiveRootWindow(); |
| 149 | 149 |
| 150 private: | 150 private: |
| 151 friend class test::DisplayTestApi; | 151 friend class test::DisplayTestApi; |
| 152 | 152 |
| 153 using WindowManagerDisplayRootMap = | 153 using WindowManagerDisplayRootMap = |
| 154 std::map<UserId, WindowManagerDisplayRoot*>; | 154 std::map<UserId, WindowManagerDisplayRoot*>; |
| 155 | 155 |
| 156 // Inits the necessary state once the display is ready. | 156 // Inits the display root once the display is ready in |
| 157 // 'external window mode'. |
| 158 void InitDisplayRoot(); |
| 159 |
| 160 // Inits the necessary WindowManager state once the display is ready. |
| 157 void InitWindowManagerDisplayRoots(); | 161 void InitWindowManagerDisplayRoots(); |
| 158 | 162 |
| 159 // Creates the set of WindowManagerDisplayRoots from the | 163 // Creates the set of WindowManagerDisplayRoots from the |
| 160 // WindowManagerWindowTreeFactorySet. | 164 // WindowManagerWindowTreeFactorySet. |
| 161 void CreateWindowManagerDisplayRootsFromFactories(); | 165 void CreateWindowManagerDisplayRootsFromFactories(); |
| 162 | 166 |
| 163 void CreateWindowManagerDisplayRootFromFactory( | 167 void CreateWindowManagerDisplayRootFromFactory( |
| 164 WindowManagerWindowTreeFactory* factory); | 168 WindowManagerWindowTreeFactory* factory); |
| 165 | 169 |
| 166 // Creates the root ServerWindow for this display, where |size| is in physical | 170 // Creates the root ServerWindow for this display, where |size| is in physical |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 | 204 |
| 201 // The last cursor set. Used to track whether we need to change the cursor. | 205 // The last cursor set. Used to track whether we need to change the cursor. |
| 202 mojom::Cursor last_cursor_; | 206 mojom::Cursor last_cursor_; |
| 203 | 207 |
| 204 ServerWindowTracker activation_parents_; | 208 ServerWindowTracker activation_parents_; |
| 205 | 209 |
| 206 cc::LocalSurfaceIdAllocator allocator_; | 210 cc::LocalSurfaceIdAllocator allocator_; |
| 207 | 211 |
| 208 WindowManagerDisplayRootMap window_manager_display_root_map_; | 212 WindowManagerDisplayRootMap window_manager_display_root_map_; |
| 209 | 213 |
| 214 std::unique_ptr<WindowManagerDisplayRoot> external_mode_root_; |
| 215 |
| 210 DISALLOW_COPY_AND_ASSIGN(Display); | 216 DISALLOW_COPY_AND_ASSIGN(Display); |
| 211 }; | 217 }; |
| 212 | 218 |
| 213 } // namespace ws | 219 } // namespace ws |
| 214 } // namespace ui | 220 } // namespace ui |
| 215 | 221 |
| 216 #endif // SERVICES_UI_WS_DISPLAY_H_ | 222 #endif // SERVICES_UI_WS_DISPLAY_H_ |
| OLD | NEW |