| 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 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 namespace ui { | 31 namespace ui { |
| 32 namespace ws { | 32 namespace ws { |
| 33 | 33 |
| 34 class AccessPolicy; | 34 class AccessPolicy; |
| 35 class Display; | 35 class Display; |
| 36 class DisplayManager; | 36 class DisplayManager; |
| 37 class GpuHost; | 37 class GpuHost; |
| 38 class ServerWindow; | 38 class ServerWindow; |
| 39 class UserActivityMonitor; | 39 class UserActivityMonitor; |
| 40 class WindowManagerDisplayRoot; |
| 40 class WindowManagerState; | 41 class WindowManagerState; |
| 41 class WindowServerDelegate; | 42 class WindowServerDelegate; |
| 42 class WindowTree; | 43 class WindowTree; |
| 43 class WindowTreeBinding; | 44 class WindowTreeBinding; |
| 44 | 45 |
| 45 // WindowServer manages the set of clients of the window server (all the | 46 // WindowServer manages the set of clients of the window server (all the |
| 46 // WindowTrees) as well as providing the root of the hierarchy. | 47 // WindowTrees) as well as providing the root of the hierarchy. |
| 47 class WindowServer : public ServerWindowDelegate, | 48 class WindowServer : public ServerWindowDelegate, |
| 48 public ServerWindowObserver, | 49 public ServerWindowObserver, |
| 49 public GpuHostDelegate, | 50 public GpuHostDelegate, |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 // Updates the native cursor by figuring out what window is under the mouse | 277 // Updates the native cursor by figuring out what window is under the mouse |
| 277 // cursor. This is run in response to events that change the bounds or window | 278 // cursor. This is run in response to events that change the bounds or window |
| 278 // hierarchy. | 279 // hierarchy. |
| 279 void UpdateNativeCursorFromMouseLocation(ServerWindow* window); | 280 void UpdateNativeCursorFromMouseLocation(ServerWindow* window); |
| 280 | 281 |
| 281 // Updates the native cursor if the cursor is currently inside |window|. This | 282 // Updates the native cursor if the cursor is currently inside |window|. This |
| 282 // is run in response to events that change the mouse cursor properties of | 283 // is run in response to events that change the mouse cursor properties of |
| 283 // |window|. | 284 // |window|. |
| 284 void UpdateNativeCursorIfOver(ServerWindow* window); | 285 void UpdateNativeCursorIfOver(ServerWindow* window); |
| 285 | 286 |
| 287 void OnCursorUpdated(WindowManagerDisplayRoot* display_root); |
| 288 |
| 286 bool IsUserInHighContrastMode(const UserId& user) const; | 289 bool IsUserInHighContrastMode(const UserId& user) const; |
| 287 | 290 |
| 288 // Finds the parent client that will embed |surface_id| and claims ownership | 291 // Finds the parent client that will embed |surface_id| and claims ownership |
| 289 // of the temporary reference. If no parent client is found then tell GPU to | 292 // of the temporary reference. If no parent client is found then tell GPU to |
| 290 // immediately drop the temporary reference. |window| is the ServerWindow | 293 // immediately drop the temporary reference. |window| is the ServerWindow |
| 291 // that corresponds to |surface_id|. | 294 // that corresponds to |surface_id|. |
| 292 void HandleTemporaryReferenceForNewSurface(const cc::SurfaceId& surface_id, | 295 void HandleTemporaryReferenceForNewSurface(const cc::SurfaceId& surface_id, |
| 293 ServerWindow* window); | 296 ServerWindow* window); |
| 294 | 297 |
| 295 // Overridden from ServerWindowDelegate: | 298 // Overridden from ServerWindowDelegate: |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 frame_sink_manager_client_binding_; | 391 frame_sink_manager_client_binding_; |
| 389 cc::mojom::FrameSinkManagerPtr frame_sink_manager_; | 392 cc::mojom::FrameSinkManagerPtr frame_sink_manager_; |
| 390 | 393 |
| 391 DISALLOW_COPY_AND_ASSIGN(WindowServer); | 394 DISALLOW_COPY_AND_ASSIGN(WindowServer); |
| 392 }; | 395 }; |
| 393 | 396 |
| 394 } // namespace ws | 397 } // namespace ws |
| 395 } // namespace ui | 398 } // namespace ui |
| 396 | 399 |
| 397 #endif // SERVICES_UI_WS_WINDOW_SERVER_H_ | 400 #endif // SERVICES_UI_WS_WINDOW_SERVER_H_ |
| OLD | NEW |