| 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 121 |
| 122 // These functions are synchronous variants of those defined in the mojom. The | 122 // These functions are synchronous variants of those defined in the mojom. The |
| 123 // WindowTree implementations all call into these. See the mojom for details. | 123 // WindowTree implementations all call into these. See the mojom for details. |
| 124 bool SetCapture(const ClientWindowId& client_window_id); | 124 bool SetCapture(const ClientWindowId& client_window_id); |
| 125 bool NewWindow(const ClientWindowId& client_window_id, | 125 bool NewWindow(const ClientWindowId& client_window_id, |
| 126 const std::map<std::string, std::vector<uint8_t>>& properties); | 126 const std::map<std::string, std::vector<uint8_t>>& properties); |
| 127 bool AddWindow(const ClientWindowId& parent_id, | 127 bool AddWindow(const ClientWindowId& parent_id, |
| 128 const ClientWindowId& child_id); | 128 const ClientWindowId& child_id); |
| 129 bool AddTransientWindow(const ClientWindowId& window_id, | 129 bool AddTransientWindow(const ClientWindowId& window_id, |
| 130 const ClientWindowId& transient_window_id); | 130 const ClientWindowId& transient_window_id); |
| 131 bool SetModal(const ClientWindowId& window_id); |
| 131 std::vector<const ServerWindow*> GetWindowTree( | 132 std::vector<const ServerWindow*> GetWindowTree( |
| 132 const ClientWindowId& window_id) const; | 133 const ClientWindowId& window_id) const; |
| 133 bool SetWindowVisibility(const ClientWindowId& window_id, bool visible); | 134 bool SetWindowVisibility(const ClientWindowId& window_id, bool visible); |
| 134 bool Embed(const ClientWindowId& window_id, | 135 bool Embed(const ClientWindowId& window_id, |
| 135 mojom::WindowTreeClientPtr client, | 136 mojom::WindowTreeClientPtr client, |
| 136 uint32_t policy_bitmask, | 137 uint32_t policy_bitmask, |
| 137 ConnectionSpecificId* connection_id); | 138 ConnectionSpecificId* connection_id); |
| 138 void DispatchInputEvent(ServerWindow* target, mojom::EventPtr event); | 139 void DispatchInputEvent(ServerWindow* target, mojom::EventPtr event); |
| 139 | 140 |
| 140 bool IsWaitingForNewTopLevelWindow(uint32_t wm_change_id); | 141 bool IsWaitingForNewTopLevelWindow(uint32_t wm_change_id); |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 mojo::Map<mojo::String, mojo::Array<uint8_t>> | 306 mojo::Map<mojo::String, mojo::Array<uint8_t>> |
| 306 transport_properties) override; | 307 transport_properties) override; |
| 307 void DeleteWindow(uint32_t change_id, Id transport_window_id) override; | 308 void DeleteWindow(uint32_t change_id, Id transport_window_id) override; |
| 308 void AddWindow(uint32_t change_id, Id parent_id, Id child_id) override; | 309 void AddWindow(uint32_t change_id, Id parent_id, Id child_id) override; |
| 309 void RemoveWindowFromParent(uint32_t change_id, Id window_id) override; | 310 void RemoveWindowFromParent(uint32_t change_id, Id window_id) override; |
| 310 void AddTransientWindow(uint32_t change_id, | 311 void AddTransientWindow(uint32_t change_id, |
| 311 Id window, | 312 Id window, |
| 312 Id transient_window) override; | 313 Id transient_window) override; |
| 313 void RemoveTransientWindowFromParent(uint32_t change_id, | 314 void RemoveTransientWindowFromParent(uint32_t change_id, |
| 314 Id transient_window_id) override; | 315 Id transient_window_id) override; |
| 316 void SetModal(uint32_t change_id, Id window_id) override; |
| 315 void ReorderWindow(uint32_t change_Id, | 317 void ReorderWindow(uint32_t change_Id, |
| 316 Id window_id, | 318 Id window_id, |
| 317 Id relative_window_id, | 319 Id relative_window_id, |
| 318 mojom::OrderDirection direction) override; | 320 mojom::OrderDirection direction) override; |
| 319 void GetWindowTree( | 321 void GetWindowTree( |
| 320 Id window_id, | 322 Id window_id, |
| 321 const mojo::Callback<void(mojo::Array<mojom::WindowDataPtr>)>& callback) | 323 const mojo::Callback<void(mojo::Array<mojom::WindowDataPtr>)>& callback) |
| 322 override; | 324 override; |
| 323 void SetCapture(uint32_t change_id, Id window_id) override; | 325 void SetCapture(uint32_t change_id, Id window_id) override; |
| 324 void ReleaseCapture(uint32_t change_id, Id window_id) override; | 326 void ReleaseCapture(uint32_t change_id, Id window_id) override; |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 | 427 |
| 426 scoped_ptr<WaitingForTopLevelWindowInfo> waiting_for_top_level_window_info_; | 428 scoped_ptr<WaitingForTopLevelWindowInfo> waiting_for_top_level_window_info_; |
| 427 | 429 |
| 428 DISALLOW_COPY_AND_ASSIGN(WindowTree); | 430 DISALLOW_COPY_AND_ASSIGN(WindowTree); |
| 429 }; | 431 }; |
| 430 | 432 |
| 431 } // namespace ws | 433 } // namespace ws |
| 432 } // namespace mus | 434 } // namespace mus |
| 433 | 435 |
| 434 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_H_ | 436 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_H_ |
| OLD | NEW |