| 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_TREE_H_ | 5 #ifndef COMPONENTS_MUS_WS_WINDOW_TREE_H_ |
| 6 #define COMPONENTS_MUS_WS_WINDOW_TREE_H_ | 6 #define COMPONENTS_MUS_WS_WINDOW_TREE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 EMBED, | 239 EMBED, |
| 240 }; | 240 }; |
| 241 | 241 |
| 242 DisplayManager* display_manager(); | 242 DisplayManager* display_manager(); |
| 243 const DisplayManager* display_manager() const; | 243 const DisplayManager* display_manager() const; |
| 244 | 244 |
| 245 // Used when this tree is the window manager. | 245 // Used when this tree is the window manager. |
| 246 Display* GetDisplayForWindowManager(); | 246 Display* GetDisplayForWindowManager(); |
| 247 WindowManagerState* GetWindowManagerStateForWindowManager(); | 247 WindowManagerState* GetWindowManagerStateForWindowManager(); |
| 248 | 248 |
| 249 // Gets the current |user_id_|'s window manager state. |
| 250 WindowManagerState* GetWindowManagerStateForUser(); |
| 251 |
| 249 bool ShouldRouteToWindowManager(const ServerWindow* window) const; | 252 bool ShouldRouteToWindowManager(const ServerWindow* window) const; |
| 250 | 253 |
| 251 ClientWindowId ClientWindowIdForWindow(const ServerWindow* window) const; | 254 ClientWindowId ClientWindowIdForWindow(const ServerWindow* window) const; |
| 252 | 255 |
| 253 // Returns true if |id| is a valid WindowId for a new window. | 256 // Returns true if |id| is a valid WindowId for a new window. |
| 254 bool IsValidIdForNewWindow(const ClientWindowId& id) const; | 257 bool IsValidIdForNewWindow(const ClientWindowId& id) const; |
| 255 | 258 |
| 256 WindowId GenerateNewWindowId(); | 259 WindowId GenerateNewWindowId(); |
| 257 | 260 |
| 258 // These functions return true if the corresponding mojom function is allowed | 261 // These functions return true if the corresponding mojom function is allowed |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 mojo::TextInputStatePtr state) override; | 380 mojo::TextInputStatePtr state) override; |
| 378 void OnWindowInputEventAck(uint32_t event_id, | 381 void OnWindowInputEventAck(uint32_t event_id, |
| 379 mojom::EventResult result) override; | 382 mojom::EventResult result) override; |
| 380 void SetClientArea( | 383 void SetClientArea( |
| 381 Id transport_window_id, | 384 Id transport_window_id, |
| 382 mojo::InsetsPtr insets, | 385 mojo::InsetsPtr insets, |
| 383 mojo::Array<mojo::RectPtr> transport_additional_client_areas) override; | 386 mojo::Array<mojo::RectPtr> transport_additional_client_areas) override; |
| 384 void GetWindowManagerClient( | 387 void GetWindowManagerClient( |
| 385 mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal) | 388 mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal) |
| 386 override; | 389 override; |
| 390 void GetCursorLocationMemory(const GetCursorLocationMemoryCallback& callback) |
| 391 override; |
| 387 | 392 |
| 388 // mojom::WindowManagerClient: | 393 // mojom::WindowManagerClient: |
| 389 void AddAccelerator(uint32_t id, | 394 void AddAccelerator(uint32_t id, |
| 390 mojom::EventMatcherPtr event_matcher, | 395 mojom::EventMatcherPtr event_matcher, |
| 391 const AddAcceleratorCallback& callback) override; | 396 const AddAcceleratorCallback& callback) override; |
| 392 void RemoveAccelerator(uint32_t id) override; | 397 void RemoveAccelerator(uint32_t id) override; |
| 393 void AddActivationParent(Id transport_window_id) override; | 398 void AddActivationParent(Id transport_window_id) override; |
| 394 void RemoveActivationParent(Id transport_window_id) override; | 399 void RemoveActivationParent(Id transport_window_id) override; |
| 395 void ActivateNextWindow() override; | 400 void ActivateNextWindow() override; |
| 396 void SetUnderlaySurfaceOffsetAndExtendedHitArea( | 401 void SetUnderlaySurfaceOffsetAndExtendedHitArea( |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 459 std::unique_ptr<WaitingForTopLevelWindowInfo> | 464 std::unique_ptr<WaitingForTopLevelWindowInfo> |
| 460 waiting_for_top_level_window_info_; | 465 waiting_for_top_level_window_info_; |
| 461 | 466 |
| 462 DISALLOW_COPY_AND_ASSIGN(WindowTree); | 467 DISALLOW_COPY_AND_ASSIGN(WindowTree); |
| 463 }; | 468 }; |
| 464 | 469 |
| 465 } // namespace ws | 470 } // namespace ws |
| 466 } // namespace mus | 471 } // namespace mus |
| 467 | 472 |
| 468 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_H_ | 473 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_H_ |
| OLD | NEW |