| 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> |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 void ProcessWindowHierarchyChanged(const ServerWindow* window, | 179 void ProcessWindowHierarchyChanged(const ServerWindow* window, |
| 180 const ServerWindow* new_parent, | 180 const ServerWindow* new_parent, |
| 181 const ServerWindow* old_parent); | 181 const ServerWindow* old_parent); |
| 182 void ProcessWindowReorder(const ServerWindow* window, | 182 void ProcessWindowReorder(const ServerWindow* window, |
| 183 const ServerWindow* relative_window, | 183 const ServerWindow* relative_window, |
| 184 const mojom::OrderDirection direction); | 184 const mojom::OrderDirection direction); |
| 185 void ProcessWindowDeleted(const ServerWindow* window); | 185 void ProcessWindowDeleted(const ServerWindow* window); |
| 186 void ProcessWillChangeWindowPredefinedCursor(ServerWindow* window, | 186 void ProcessWillChangeWindowPredefinedCursor(ServerWindow* window, |
| 187 int32_t cursor_id); | 187 int32_t cursor_id); |
| 188 | 188 |
| 189 // Sends an |event| to all WindowTrees belonging to |user_id| that might be |
| 190 // observing events. Skips |ignore_tree| if it is non-null. |
| 191 void SendToEventObservers(const ui::Event& event, |
| 192 const UserId& user_id, |
| 193 WindowTree* ignore_tree); |
| 194 |
| 189 private: | 195 private: |
| 190 friend class Operation; | 196 friend class Operation; |
| 191 | 197 |
| 192 using WindowTreeMap = std::map<ConnectionSpecificId, scoped_ptr<WindowTree>>; | 198 using WindowTreeMap = std::map<ConnectionSpecificId, scoped_ptr<WindowTree>>; |
| 193 | 199 |
| 194 struct InFlightWindowManagerChange { | 200 struct InFlightWindowManagerChange { |
| 195 // Identifies the client that initiated the change. | 201 // Identifies the client that initiated the change. |
| 196 ConnectionSpecificId connection_id; | 202 ConnectionSpecificId connection_id; |
| 197 | 203 |
| 198 // Change id supplied by the client. | 204 // Change id supplied by the client. |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 | 306 |
| 301 WindowManagerFactoryRegistry window_manager_factory_registry_; | 307 WindowManagerFactoryRegistry window_manager_factory_registry_; |
| 302 | 308 |
| 303 DISALLOW_COPY_AND_ASSIGN(WindowServer); | 309 DISALLOW_COPY_AND_ASSIGN(WindowServer); |
| 304 }; | 310 }; |
| 305 | 311 |
| 306 } // namespace ws | 312 } // namespace ws |
| 307 } // namespace mus | 313 } // namespace mus |
| 308 | 314 |
| 309 #endif // COMPONENTS_MUS_WS_WINDOW_SERVER_H_ | 315 #endif // COMPONENTS_MUS_WS_WINDOW_SERVER_H_ |
| OLD | NEW |