| 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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 // hierarchy. | 276 // hierarchy. |
| 277 void UpdateNativeCursorFromMouseLocation(ServerWindow* window); | 277 void UpdateNativeCursorFromMouseLocation(ServerWindow* window); |
| 278 | 278 |
| 279 // Updates the native cursor if the cursor is currently inside |window|. This | 279 // Updates the native cursor if the cursor is currently inside |window|. This |
| 280 // is run in response to events that change the mouse cursor properties of | 280 // is run in response to events that change the mouse cursor properties of |
| 281 // |window|. | 281 // |window|. |
| 282 void UpdateNativeCursorIfOver(ServerWindow* window); | 282 void UpdateNativeCursorIfOver(ServerWindow* window); |
| 283 | 283 |
| 284 bool IsUserInHighContrastMode(const UserId& user) const; | 284 bool IsUserInHighContrastMode(const UserId& user) const; |
| 285 | 285 |
| 286 // Finds the parent client that will embed |surface_id| and claims ownership |
| 287 // of the temporary reference. If no parent client is found then tell GPU to |
| 288 // immediately drop the temporary reference. |window| is the ServerWindow |
| 289 // that corresponds to |surface_id|. |
| 290 void HandleTemporaryReferenceForNewSurface(const cc::SurfaceId& surface_id, |
| 291 ServerWindow* window); |
| 292 |
| 286 // Overridden from ServerWindowDelegate: | 293 // Overridden from ServerWindowDelegate: |
| 287 ServerWindow* GetRootWindow(const ServerWindow* window) override; | 294 ServerWindow* GetRootWindow(const ServerWindow* window) override; |
| 288 | 295 |
| 289 // Overridden from ServerWindowObserver: | 296 // Overridden from ServerWindowObserver: |
| 290 void OnWindowDestroyed(ServerWindow* window) override; | 297 void OnWindowDestroyed(ServerWindow* window) override; |
| 291 void OnWillChangeWindowHierarchy(ServerWindow* window, | 298 void OnWillChangeWindowHierarchy(ServerWindow* window, |
| 292 ServerWindow* new_parent, | 299 ServerWindow* new_parent, |
| 293 ServerWindow* old_parent) override; | 300 ServerWindow* old_parent) override; |
| 294 void OnWindowHierarchyChanged(ServerWindow* window, | 301 void OnWindowHierarchyChanged(ServerWindow* window, |
| 295 ServerWindow* new_parent, | 302 ServerWindow* new_parent, |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 // State for rendering into a Surface. | 386 // State for rendering into a Surface. |
| 380 cc::mojom::DisplayCompositorPtr display_compositor_; | 387 cc::mojom::DisplayCompositorPtr display_compositor_; |
| 381 | 388 |
| 382 DISALLOW_COPY_AND_ASSIGN(WindowServer); | 389 DISALLOW_COPY_AND_ASSIGN(WindowServer); |
| 383 }; | 390 }; |
| 384 | 391 |
| 385 } // namespace ws | 392 } // namespace ws |
| 386 } // namespace ui | 393 } // namespace ui |
| 387 | 394 |
| 388 #endif // SERVICES_UI_WS_WINDOW_SERVER_H_ | 395 #endif // SERVICES_UI_WS_WINDOW_SERVER_H_ |
| OLD | NEW |