| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_WINDOW_MANAGER_DISPLAY_ROOT_H_ | 5 #ifndef SERVICES_UI_WS_WINDOW_MANAGER_DISPLAY_ROOT_H_ |
| 6 #define SERVICES_UI_WS_WINDOW_MANAGER_DISPLAY_ROOT_H_ | 6 #define SERVICES_UI_WS_WINDOW_MANAGER_DISPLAY_ROOT_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 | 11 |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "cc/surfaces/surface_id_allocator.h" |
| 13 | 14 |
| 14 namespace ui { | 15 namespace ui { |
| 15 namespace ws { | 16 namespace ws { |
| 16 | 17 |
| 17 class Display; | 18 class Display; |
| 18 class ServerWindow; | 19 class ServerWindow; |
| 19 class WindowManagerState; | 20 class WindowManagerState; |
| 20 class WindowServer; | 21 class WindowServer; |
| 21 | 22 |
| 22 // Owns the root window of a window manager for one display. Each window manager | 23 // Owns the root window of a window manager for one display. Each window manager |
| (...skipping 19 matching lines...) Expand all Loading... |
| 42 friend class Display; | 43 friend class Display; |
| 43 friend class WindowManagerState; | 44 friend class WindowManagerState; |
| 44 | 45 |
| 45 WindowServer* window_server(); | 46 WindowServer* window_server(); |
| 46 | 47 |
| 47 Display* display_; | 48 Display* display_; |
| 48 // Root ServerWindow of this WindowManagerDisplayRoot. |root_| has a parent, | 49 // Root ServerWindow of this WindowManagerDisplayRoot. |root_| has a parent, |
| 49 // the root ServerWindow of the Display. | 50 // the root ServerWindow of the Display. |
| 50 std::unique_ptr<ServerWindow> root_; | 51 std::unique_ptr<ServerWindow> root_; |
| 51 WindowManagerState* window_manager_state_ = nullptr; | 52 WindowManagerState* window_manager_state_ = nullptr; |
| 53 cc::SurfaceIdAllocator allocator_; |
| 52 | 54 |
| 53 DISALLOW_COPY_AND_ASSIGN(WindowManagerDisplayRoot); | 55 DISALLOW_COPY_AND_ASSIGN(WindowManagerDisplayRoot); |
| 54 }; | 56 }; |
| 55 | 57 |
| 56 } // namespace ws | 58 } // namespace ws |
| 57 } // namespace ui | 59 } // namespace ui |
| 58 | 60 |
| 59 #endif // SERVICES_UI_WS_WINDOW_MANAGER_DISPLAY_ROOT_H_ | 61 #endif // SERVICES_UI_WS_WINDOW_MANAGER_DISPLAY_ROOT_H_ |
| OLD | NEW |