| 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 current_operation_->source_tree_id() == client_id; | 116 current_operation_->source_tree_id() == client_id; |
| 117 } | 117 } |
| 118 | 118 |
| 119 // Invoked when a client messages a client about the change. This is used | 119 // Invoked when a client messages a client about the change. This is used |
| 120 // to avoid sending ServerChangeIdAdvanced() unnecessarily. | 120 // to avoid sending ServerChangeIdAdvanced() unnecessarily. |
| 121 void OnTreeMessagedClient(ClientSpecificId id); | 121 void OnTreeMessagedClient(ClientSpecificId id); |
| 122 | 122 |
| 123 // Returns true if OnTreeMessagedClient() was invoked for id. | 123 // Returns true if OnTreeMessagedClient() was invoked for id. |
| 124 bool DidTreeMessageClient(ClientSpecificId id) const; | 124 bool DidTreeMessageClient(ClientSpecificId id) const; |
| 125 | 125 |
| 126 // Returns the WindowTree that has |id| as a root. | 126 // Returns the WindowTree that has |window| as a root. |
| 127 WindowTree* GetTreeWithRoot(const ServerWindow* window) { | 127 WindowTree* GetTreeWithRoot(const ServerWindow* window) { |
| 128 return const_cast<WindowTree*>( | 128 return const_cast<WindowTree*>( |
| 129 const_cast<const WindowServer*>(this)->GetTreeWithRoot(window)); | 129 const_cast<const WindowServer*>(this)->GetTreeWithRoot(window)); |
| 130 } | 130 } |
| 131 const WindowTree* GetTreeWithRoot(const ServerWindow* window) const; | 131 const WindowTree* GetTreeWithRoot(const ServerWindow* window) const; |
| 132 | 132 |
| 133 UserActivityMonitor* GetUserActivityMonitorForUser(const UserId& user_id); | 133 UserActivityMonitor* GetUserActivityMonitorForUser(const UserId& user_id); |
| 134 | 134 |
| 135 WindowManagerWindowTreeFactorySet* window_manager_window_tree_factory_set() { | 135 WindowManagerWindowTreeFactorySet* window_manager_window_tree_factory_set() { |
| 136 return &window_manager_window_tree_factory_set_; | 136 return &window_manager_window_tree_factory_set_; |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 // State for rendering into a Surface. | 379 // State for rendering into a Surface. |
| 380 cc::mojom::DisplayCompositorPtr display_compositor_; | 380 cc::mojom::DisplayCompositorPtr display_compositor_; |
| 381 | 381 |
| 382 DISALLOW_COPY_AND_ASSIGN(WindowServer); | 382 DISALLOW_COPY_AND_ASSIGN(WindowServer); |
| 383 }; | 383 }; |
| 384 | 384 |
| 385 } // namespace ws | 385 } // namespace ws |
| 386 } // namespace ui | 386 } // namespace ui |
| 387 | 387 |
| 388 #endif // SERVICES_UI_WS_WINDOW_SERVER_H_ | 388 #endif // SERVICES_UI_WS_WINDOW_SERVER_H_ |
| OLD | NEW |