| 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 WindowTree* GetCurrentDragLoopInitiator(); | 222 WindowTree* GetCurrentDragLoopInitiator(); |
| 223 bool in_drag_loop() const { return !!current_drag_loop_; } | 223 bool in_drag_loop() const { return !!current_drag_loop_; } |
| 224 | 224 |
| 225 void OnDisplayReady(Display* display, bool is_first); | 225 void OnDisplayReady(Display* display, bool is_first); |
| 226 void OnDisplayDestroyed(Display* display); | 226 void OnDisplayDestroyed(Display* display); |
| 227 void OnNoMoreDisplays(); | 227 void OnNoMoreDisplays(); |
| 228 WindowManagerState* GetWindowManagerStateForUser(const UserId& user_id); | 228 WindowManagerState* GetWindowManagerStateForUser(const UserId& user_id); |
| 229 | 229 |
| 230 // ServerWindowDelegate: | 230 // ServerWindowDelegate: |
| 231 cc::mojom::DisplayCompositor* GetDisplayCompositor() override; | 231 cc::mojom::DisplayCompositor* GetDisplayCompositor() override; |
| 232 mojo::AssociatedGroup* GetDisplayCompositorAssociatedGroup() override; | |
| 233 | 232 |
| 234 // UserDisplayManagerDelegate: | 233 // UserDisplayManagerDelegate: |
| 235 bool GetFrameDecorationsForUser( | 234 bool GetFrameDecorationsForUser( |
| 236 const UserId& user_id, | 235 const UserId& user_id, |
| 237 mojom::FrameDecorationValuesPtr* values) override; | 236 mojom::FrameDecorationValuesPtr* values) override; |
| 238 | 237 |
| 239 private: | 238 private: |
| 240 struct CurrentMoveLoopState; | 239 struct CurrentMoveLoopState; |
| 241 struct CurrentDragLoopState; | 240 struct CurrentDragLoopState; |
| 242 friend class Operation; | 241 friend class Operation; |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 // State for rendering into a Surface. | 379 // State for rendering into a Surface. |
| 381 cc::mojom::DisplayCompositorPtr display_compositor_; | 380 cc::mojom::DisplayCompositorPtr display_compositor_; |
| 382 | 381 |
| 383 DISALLOW_COPY_AND_ASSIGN(WindowServer); | 382 DISALLOW_COPY_AND_ASSIGN(WindowServer); |
| 384 }; | 383 }; |
| 385 | 384 |
| 386 } // namespace ws | 385 } // namespace ws |
| 387 } // namespace ui | 386 } // namespace ui |
| 388 | 387 |
| 389 #endif // SERVICES_UI_WS_WINDOW_SERVER_H_ | 388 #endif // SERVICES_UI_WS_WINDOW_SERVER_H_ |
| OLD | NEW |