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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 void StartDragLoop(uint32_t change_id, | 216 void StartDragLoop(uint32_t change_id, |
217 ServerWindow* window, | 217 ServerWindow* window, |
218 WindowTree* initiator); | 218 WindowTree* initiator); |
219 void EndDragLoop(); | 219 void EndDragLoop(); |
220 uint32_t GetCurrentDragLoopChangeId(); | 220 uint32_t GetCurrentDragLoopChangeId(); |
221 ServerWindow* GetCurrentDragLoopWindow(); | 221 ServerWindow* GetCurrentDragLoopWindow(); |
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 OnNoMoreDisplays(); | 227 void OnNoMoreDisplays(); |
227 WindowManagerState* GetWindowManagerStateForUser(const UserId& user_id); | 228 WindowManagerState* GetWindowManagerStateForUser(const UserId& user_id); |
228 | 229 |
229 // ServerWindowDelegate: | 230 // ServerWindowDelegate: |
230 cc::mojom::DisplayCompositor* GetDisplayCompositor() override; | 231 cc::mojom::DisplayCompositor* GetDisplayCompositor() override; |
231 const cc::SurfaceId& GetRootSurfaceId() const override; | 232 const cc::SurfaceId& GetRootSurfaceId() const override; |
232 | 233 |
233 // UserDisplayManagerDelegate: | 234 // UserDisplayManagerDelegate: |
234 bool GetFrameDecorationsForUser( | 235 bool GetFrameDecorationsForUser( |
235 const UserId& user_id, | 236 const UserId& user_id, |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 // State for rendering into a Surface. | 382 // State for rendering into a Surface. |
382 cc::mojom::DisplayCompositorPtr display_compositor_; | 383 cc::mojom::DisplayCompositorPtr display_compositor_; |
383 | 384 |
384 DISALLOW_COPY_AND_ASSIGN(WindowServer); | 385 DISALLOW_COPY_AND_ASSIGN(WindowServer); |
385 }; | 386 }; |
386 | 387 |
387 } // namespace ws | 388 } // namespace ws |
388 } // namespace ui | 389 } // namespace ui |
389 | 390 |
390 #endif // SERVICES_UI_WS_WINDOW_SERVER_H_ | 391 #endif // SERVICES_UI_WS_WINDOW_SERVER_H_ |
OLD | NEW |