| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 // Initializes the display root ServerWindow and PlatformDisplay. Adds this to | 65 // Initializes the display root ServerWindow and PlatformDisplay. Adds this to |
| 66 // DisplayManager as a pending display, until accelerated widget is available. | 66 // DisplayManager as a pending display, until accelerated widget is available. |
| 67 void Init(const PlatformDisplayInitParams& init_params, | 67 void Init(const PlatformDisplayInitParams& init_params, |
| 68 std::unique_ptr<DisplayBinding> binding); | 68 std::unique_ptr<DisplayBinding> binding); |
| 69 | 69 |
| 70 int64_t GetId() const; | 70 int64_t GetId() const; |
| 71 | 71 |
| 72 DisplayManager* display_manager(); | 72 DisplayManager* display_manager(); |
| 73 const DisplayManager* display_manager() const; | 73 const DisplayManager* display_manager() const; |
| 74 | 74 |
| 75 PlatformDisplay* platform_display() { return platform_display_.get(); } | 75 PlatformDisplay* platform_display() { return platform_display_; } |
| 76 | 76 |
| 77 // Returns a display::Display corresponding to this ws::Display. | 77 // Returns a display::Display corresponding to this ws::Display. |
| 78 display::Display ToDisplay() const; | 78 display::Display ToDisplay() const; |
| 79 | 79 |
| 80 // Returns the size of the display in physical pixels. | 80 // Returns the size of the display in physical pixels. |
| 81 gfx::Size GetSize() const; | 81 gfx::Size GetSize() const; |
| 82 | 82 |
| 83 WindowServer* window_server() { return window_server_; } | 83 WindowServer* window_server() { return window_server_; } |
| 84 | 84 |
| 85 // Returns the root of the Display. The root's children are the roots | 85 // Returns the root of the Display. The root's children are the roots |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 // UserIdTrackerObserver: | 187 // UserIdTrackerObserver: |
| 188 void OnUserIdRemoved(const UserId& id) override; | 188 void OnUserIdRemoved(const UserId& id) override; |
| 189 | 189 |
| 190 // WindowManagerWindowTreeFactorySetObserver: | 190 // WindowManagerWindowTreeFactorySetObserver: |
| 191 void OnWindowManagerWindowTreeFactoryReady( | 191 void OnWindowManagerWindowTreeFactoryReady( |
| 192 WindowManagerWindowTreeFactory* factory) override; | 192 WindowManagerWindowTreeFactory* factory) override; |
| 193 | 193 |
| 194 std::unique_ptr<DisplayBinding> binding_; | 194 std::unique_ptr<DisplayBinding> binding_; |
| 195 WindowServer* const window_server_; | 195 WindowServer* const window_server_; |
| 196 std::unique_ptr<ServerWindow> root_; | 196 std::unique_ptr<ServerWindow> root_; |
| 197 std::unique_ptr<PlatformDisplay> platform_display_; | 197 PlatformDisplay* platform_display_; |
| 198 std::unique_ptr<FocusController> focus_controller_; | 198 std::unique_ptr<FocusController> focus_controller_; |
| 199 | 199 |
| 200 // The last cursor set. Used to track whether we need to change the cursor. | 200 // The last cursor set. Used to track whether we need to change the cursor. |
| 201 mojom::Cursor last_cursor_; | 201 mojom::Cursor last_cursor_; |
| 202 | 202 |
| 203 ServerWindowTracker activation_parents_; | 203 ServerWindowTracker activation_parents_; |
| 204 | 204 |
| 205 WindowManagerDisplayRootMap window_manager_display_root_map_; | 205 WindowManagerDisplayRootMap window_manager_display_root_map_; |
| 206 | 206 |
| 207 DISALLOW_COPY_AND_ASSIGN(Display); | 207 DISALLOW_COPY_AND_ASSIGN(Display); |
| 208 }; | 208 }; |
| 209 | 209 |
| 210 } // namespace ws | 210 } // namespace ws |
| 211 } // namespace ui | 211 } // namespace ui |
| 212 | 212 |
| 213 #endif // SERVICES_UI_WS_DISPLAY_H_ | 213 #endif // SERVICES_UI_WS_DISPLAY_H_ |
| OLD | NEW |