| 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 COMPONENTS_MUS_WS_WINDOW_SERVER_H_ | 5 #ifndef COMPONENTS_MUS_WS_WINDOW_SERVER_H_ |
| 6 #define COMPONENTS_MUS_WS_WINDOW_SERVER_H_ | 6 #define COMPONENTS_MUS_WS_WINDOW_SERVER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| 11 #include <memory> | 11 #include <memory> |
| 12 #include <string> | 12 #include <string> |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "components/mus/public/cpp/surfaces/custom_surface_converter.h" | |
| 17 #include "components/mus/public/interfaces/window_manager_factory.mojom.h" | 16 #include "components/mus/public/interfaces/window_manager_factory.mojom.h" |
| 18 #include "components/mus/public/interfaces/window_tree.mojom.h" | 17 #include "components/mus/public/interfaces/window_tree.mojom.h" |
| 19 #include "components/mus/public/interfaces/window_tree_host.mojom.h" | 18 #include "components/mus/public/interfaces/window_tree_host.mojom.h" |
| 20 #include "components/mus/surfaces/surfaces_state.h" | 19 #include "components/mus/surfaces/surfaces_state.h" |
| 21 #include "components/mus/ws/display.h" | 20 #include "components/mus/ws/display.h" |
| 22 #include "components/mus/ws/display_manager_delegate.h" | 21 #include "components/mus/ws/display_manager_delegate.h" |
| 23 #include "components/mus/ws/ids.h" | 22 #include "components/mus/ws/ids.h" |
| 24 #include "components/mus/ws/operation.h" | 23 #include "components/mus/ws/operation.h" |
| 25 #include "components/mus/ws/server_window_delegate.h" | 24 #include "components/mus/ws/server_window_delegate.h" |
| 26 #include "components/mus/ws/server_window_observer.h" | 25 #include "components/mus/ws/server_window_observer.h" |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 // Updates the native cursor if the cursor is currently inside |window|. This | 230 // Updates the native cursor if the cursor is currently inside |window|. This |
| 232 // is run in response to events that change the mouse cursor properties of | 231 // is run in response to events that change the mouse cursor properties of |
| 233 // |window|. | 232 // |window|. |
| 234 void UpdateNativeCursorIfOver(ServerWindow* window); | 233 void UpdateNativeCursorIfOver(ServerWindow* window); |
| 235 | 234 |
| 236 // Overridden from ServerWindowDelegate: | 235 // Overridden from ServerWindowDelegate: |
| 237 mus::SurfacesState* GetSurfacesState() override; | 236 mus::SurfacesState* GetSurfacesState() override; |
| 238 void OnScheduleWindowPaint(ServerWindow* window) override; | 237 void OnScheduleWindowPaint(ServerWindow* window) override; |
| 239 const ServerWindow* GetRootWindow(const ServerWindow* window) const override; | 238 const ServerWindow* GetRootWindow(const ServerWindow* window) const override; |
| 240 void ScheduleSurfaceDestruction(ServerWindow* window) override; | 239 void ScheduleSurfaceDestruction(ServerWindow* window) override; |
| 241 ServerWindow* FindWindowForSurface( | |
| 242 const ServerWindow* ancestor, | |
| 243 mojom::SurfaceType surface_type, | |
| 244 const ClientWindowId& client_window_id) override; | |
| 245 | 240 |
| 246 // Overridden from ServerWindowObserver: | 241 // Overridden from ServerWindowObserver: |
| 247 void OnWindowDestroyed(ServerWindow* window) override; | 242 void OnWindowDestroyed(ServerWindow* window) override; |
| 248 void OnWillChangeWindowHierarchy(ServerWindow* window, | 243 void OnWillChangeWindowHierarchy(ServerWindow* window, |
| 249 ServerWindow* new_parent, | 244 ServerWindow* new_parent, |
| 250 ServerWindow* old_parent) override; | 245 ServerWindow* old_parent) override; |
| 251 void OnWindowHierarchyChanged(ServerWindow* window, | 246 void OnWindowHierarchyChanged(ServerWindow* window, |
| 252 ServerWindow* new_parent, | 247 ServerWindow* new_parent, |
| 253 ServerWindow* old_parent) override; | 248 ServerWindow* old_parent) override; |
| 254 void OnWindowBoundsChanged(ServerWindow* window, | 249 void OnWindowBoundsChanged(ServerWindow* window, |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 | 312 |
| 318 WindowManagerFactoryRegistry window_manager_factory_registry_; | 313 WindowManagerFactoryRegistry window_manager_factory_registry_; |
| 319 | 314 |
| 320 DISALLOW_COPY_AND_ASSIGN(WindowServer); | 315 DISALLOW_COPY_AND_ASSIGN(WindowServer); |
| 321 }; | 316 }; |
| 322 | 317 |
| 323 } // namespace ws | 318 } // namespace ws |
| 324 } // namespace mus | 319 } // namespace mus |
| 325 | 320 |
| 326 #endif // COMPONENTS_MUS_WS_WINDOW_SERVER_H_ | 321 #endif // COMPONENTS_MUS_WS_WINDOW_SERVER_H_ |
| OLD | NEW |