| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SERVER_H_ | 5 #ifndef SERVICES_UI_WS_WINDOW_SERVER_H_ |
| 6 #define SERVICES_UI_WS_WINDOW_SERVER_H_ | 6 #define SERVICES_UI_WS_WINDOW_SERVER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 WindowTree* GetCurrentDragLoopInitiator(); | 221 WindowTree* GetCurrentDragLoopInitiator(); |
| 222 bool in_drag_loop() const { return !!current_drag_loop_; } | 222 bool in_drag_loop() const { return !!current_drag_loop_; } |
| 223 | 223 |
| 224 void OnDisplayReady(Display* display, bool is_first); | 224 void OnDisplayReady(Display* display, bool is_first); |
| 225 void OnDisplayDestroyed(Display* display); | 225 void OnDisplayDestroyed(Display* display); |
| 226 void OnNoMoreDisplays(); | 226 void OnNoMoreDisplays(); |
| 227 WindowManagerState* GetWindowManagerStateForUser(const UserId& user_id); | 227 WindowManagerState* GetWindowManagerStateForUser(const UserId& user_id); |
| 228 | 228 |
| 229 // ServerWindowDelegate: | 229 // ServerWindowDelegate: |
| 230 cc::mojom::DisplayCompositor* GetDisplayCompositor() override; | 230 cc::mojom::DisplayCompositor* GetDisplayCompositor() override; |
| 231 const cc::SurfaceId& GetRootSurfaceId() const override; | |
| 232 | 231 |
| 233 // UserDisplayManagerDelegate: | 232 // UserDisplayManagerDelegate: |
| 234 bool GetFrameDecorationsForUser( | 233 bool GetFrameDecorationsForUser( |
| 235 const UserId& user_id, | 234 const UserId& user_id, |
| 236 mojom::FrameDecorationValuesPtr* values) override; | 235 mojom::FrameDecorationValuesPtr* values) override; |
| 237 | 236 |
| 238 private: | 237 private: |
| 239 struct CurrentMoveLoopState; | 238 struct CurrentMoveLoopState; |
| 240 struct CurrentDragLoopState; | 239 struct CurrentDragLoopState; |
| 241 friend class Operation; | 240 friend class Operation; |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 void OnTransientWindowAdded(ServerWindow* window, | 321 void OnTransientWindowAdded(ServerWindow* window, |
| 323 ServerWindow* transient_child) override; | 322 ServerWindow* transient_child) override; |
| 324 void OnTransientWindowRemoved(ServerWindow* window, | 323 void OnTransientWindowRemoved(ServerWindow* window, |
| 325 ServerWindow* transient_child) override; | 324 ServerWindow* transient_child) override; |
| 326 | 325 |
| 327 // GpuHostDelegate: | 326 // GpuHostDelegate: |
| 328 void OnGpuServiceInitialized() override; | 327 void OnGpuServiceInitialized() override; |
| 329 | 328 |
| 330 // cc::mojom::DisplayCompositorClient: | 329 // cc::mojom::DisplayCompositorClient: |
| 331 void OnSurfaceCreated(const cc::SurfaceInfo& surface_info) override; | 330 void OnSurfaceCreated(const cc::SurfaceInfo& surface_info) override; |
| 332 void OnDisplayCompositorCreated( | |
| 333 const cc::SurfaceId& root_surface_id) override; | |
| 334 | 331 |
| 335 // UserIdTrackerObserver: | 332 // UserIdTrackerObserver: |
| 336 void OnActiveUserIdChanged(const UserId& previously_active_id, | 333 void OnActiveUserIdChanged(const UserId& previously_active_id, |
| 337 const UserId& active_id) override; | 334 const UserId& active_id) override; |
| 338 void OnUserIdAdded(const UserId& id) override; | 335 void OnUserIdAdded(const UserId& id) override; |
| 339 void OnUserIdRemoved(const UserId& id) override; | 336 void OnUserIdRemoved(const UserId& id) override; |
| 340 | 337 |
| 341 UserIdTracker user_id_tracker_; | 338 UserIdTracker user_id_tracker_; |
| 342 | 339 |
| 343 WindowServerDelegate* delegate_; | 340 WindowServerDelegate* delegate_; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 // State for rendering into a Surface. | 378 // State for rendering into a Surface. |
| 382 cc::mojom::DisplayCompositorPtr display_compositor_; | 379 cc::mojom::DisplayCompositorPtr display_compositor_; |
| 383 | 380 |
| 384 DISALLOW_COPY_AND_ASSIGN(WindowServer); | 381 DISALLOW_COPY_AND_ASSIGN(WindowServer); |
| 385 }; | 382 }; |
| 386 | 383 |
| 387 } // namespace ws | 384 } // namespace ws |
| 388 } // namespace ui | 385 } // namespace ui |
| 389 | 386 |
| 390 #endif // SERVICES_UI_WS_WINDOW_SERVER_H_ | 387 #endif // SERVICES_UI_WS_WINDOW_SERVER_H_ |
| OLD | NEW |