| 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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 ServerWindow* window, | 213 ServerWindow* window, |
| 214 WindowTree* initiator, | 214 WindowTree* initiator, |
| 215 const gfx::Rect& revert_bounds); | 215 const gfx::Rect& revert_bounds); |
| 216 void EndMoveLoop(); | 216 void EndMoveLoop(); |
| 217 uint32_t GetCurrentMoveLoopChangeId(); | 217 uint32_t GetCurrentMoveLoopChangeId(); |
| 218 ServerWindow* GetCurrentMoveLoopWindow(); | 218 ServerWindow* GetCurrentMoveLoopWindow(); |
| 219 WindowTree* GetCurrentMoveLoopInitiator(); | 219 WindowTree* GetCurrentMoveLoopInitiator(); |
| 220 gfx::Rect GetCurrentMoveLoopRevertBounds(); | 220 gfx::Rect GetCurrentMoveLoopRevertBounds(); |
| 221 bool in_move_loop() const { return !!current_move_loop_; } | 221 bool in_move_loop() const { return !!current_move_loop_; } |
| 222 | 222 |
| 223 void OnFirstDisplayReady(); | 223 void OnDisplayReady(Display* display, bool is_first); |
| 224 void OnNoMoreDisplays(); | 224 void OnNoMoreDisplays(); |
| 225 WindowManagerState* GetWindowManagerStateForUser(const UserId& user_id); | 225 WindowManagerState* GetWindowManagerStateForUser(const UserId& user_id); |
| 226 | 226 |
| 227 // ServerWindowDelegate: | 227 // ServerWindowDelegate: |
| 228 ui::SurfacesState* GetSurfacesState() override; | 228 ui::SurfacesState* GetSurfacesState() override; |
| 229 | 229 |
| 230 // UserDisplayManagerDelegate: | 230 // UserDisplayManagerDelegate: |
| 231 bool GetFrameDecorationsForUser( | 231 bool GetFrameDecorationsForUser( |
| 232 const UserId& user_id, | 232 const UserId& user_id, |
| 233 mojom::FrameDecorationValuesPtr* values) override; | 233 mojom::FrameDecorationValuesPtr* values) override; |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 std::map<UserId, bool> high_contrast_mode_; | 359 std::map<UserId, bool> high_contrast_mode_; |
| 360 | 360 |
| 361 // Maps from window manager change id to the client that initiated the | 361 // Maps from window manager change id to the client that initiated the |
| 362 // request. | 362 // request. |
| 363 InFlightWindowManagerChangeMap in_flight_wm_change_map_; | 363 InFlightWindowManagerChangeMap in_flight_wm_change_map_; |
| 364 | 364 |
| 365 // Next id supplied to the window manager. | 365 // Next id supplied to the window manager. |
| 366 uint32_t next_wm_change_id_; | 366 uint32_t next_wm_change_id_; |
| 367 | 367 |
| 368 std::unique_ptr<GpuServiceProxy> gpu_proxy_; | 368 std::unique_ptr<GpuServiceProxy> gpu_proxy_; |
| 369 scoped_refptr<gpu::GpuChannelHost> gpu_channel_; |
| 369 base::Callback<void(ServerWindow*)> window_paint_callback_; | 370 base::Callback<void(ServerWindow*)> window_paint_callback_; |
| 370 | 371 |
| 371 UserActivityMonitorMap activity_monitor_map_; | 372 UserActivityMonitorMap activity_monitor_map_; |
| 372 UserClipboardMap clipboard_map_; | 373 UserClipboardMap clipboard_map_; |
| 373 | 374 |
| 374 WindowManagerWindowTreeFactorySet window_manager_window_tree_factory_set_; | 375 WindowManagerWindowTreeFactorySet window_manager_window_tree_factory_set_; |
| 375 | 376 |
| 376 DISALLOW_COPY_AND_ASSIGN(WindowServer); | 377 DISALLOW_COPY_AND_ASSIGN(WindowServer); |
| 377 }; | 378 }; |
| 378 | 379 |
| 379 } // namespace ws | 380 } // namespace ws |
| 380 } // namespace ui | 381 } // namespace ui |
| 381 | 382 |
| 382 #endif // SERVICES_UI_WS_WINDOW_SERVER_H_ | 383 #endif // SERVICES_UI_WS_WINDOW_SERVER_H_ |
| OLD | NEW |