| 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 void OnWillDestroyDisplay(Display* display); | 115 void OnWillDestroyDisplay(Display* display); |
| 116 | 116 |
| 117 // These functions are synchronous variants of those defined in the mojom. The | 117 // These functions are synchronous variants of those defined in the mojom. The |
| 118 // WindowTree implementations all call into these. See the mojom for details. | 118 // WindowTree implementations all call into these. See the mojom for details. |
| 119 bool NewWindow(const ClientWindowId& client_window_id, | 119 bool NewWindow(const ClientWindowId& client_window_id, |
| 120 const std::map<std::string, std::vector<uint8_t>>& properties); | 120 const std::map<std::string, std::vector<uint8_t>>& properties); |
| 121 bool AddWindow(const ClientWindowId& parent_id, | 121 bool AddWindow(const ClientWindowId& parent_id, |
| 122 const ClientWindowId& child_id); | 122 const ClientWindowId& child_id); |
| 123 bool AddTransientWindow(const ClientWindowId& window_id, | 123 bool AddTransientWindow(const ClientWindowId& window_id, |
| 124 const ClientWindowId& transient_window_id); | 124 const ClientWindowId& transient_window_id); |
| 125 bool SetAsModal(const ClientWindowId& window_id); |
| 125 std::vector<const ServerWindow*> GetWindowTree( | 126 std::vector<const ServerWindow*> GetWindowTree( |
| 126 const ClientWindowId& window_id) const; | 127 const ClientWindowId& window_id) const; |
| 127 bool SetWindowVisibility(const ClientWindowId& window_id, bool visible); | 128 bool SetWindowVisibility(const ClientWindowId& window_id, bool visible); |
| 128 bool Embed(const ClientWindowId& window_id, | 129 bool Embed(const ClientWindowId& window_id, |
| 129 mojom::WindowTreeClientPtr client, | 130 mojom::WindowTreeClientPtr client, |
| 130 uint32_t policy_bitmask, | 131 uint32_t policy_bitmask, |
| 131 ConnectionSpecificId* connection_id); | 132 ConnectionSpecificId* connection_id); |
| 132 void DispatchInputEvent(ServerWindow* target, mojom::EventPtr event); | 133 void DispatchInputEvent(ServerWindow* target, mojom::EventPtr event); |
| 133 | 134 |
| 134 bool IsWaitingForNewTopLevelWindow(uint32_t wm_change_id); | 135 bool IsWaitingForNewTopLevelWindow(uint32_t wm_change_id); |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 mojo::Map<mojo::String, mojo::Array<uint8_t>> | 300 mojo::Map<mojo::String, mojo::Array<uint8_t>> |
| 300 transport_properties) override; | 301 transport_properties) override; |
| 301 void DeleteWindow(uint32_t change_id, Id transport_window_id) override; | 302 void DeleteWindow(uint32_t change_id, Id transport_window_id) override; |
| 302 void AddWindow(uint32_t change_id, Id parent_id, Id child_id) override; | 303 void AddWindow(uint32_t change_id, Id parent_id, Id child_id) override; |
| 303 void RemoveWindowFromParent(uint32_t change_id, Id window_id) override; | 304 void RemoveWindowFromParent(uint32_t change_id, Id window_id) override; |
| 304 void AddTransientWindow(uint32_t change_id, | 305 void AddTransientWindow(uint32_t change_id, |
| 305 Id window, | 306 Id window, |
| 306 Id transient_window) override; | 307 Id transient_window) override; |
| 307 void RemoveTransientWindowFromParent(uint32_t change_id, | 308 void RemoveTransientWindowFromParent(uint32_t change_id, |
| 308 Id transient_window_id) override; | 309 Id transient_window_id) override; |
| 310 void SetAsModal(uint32_t change_id, Id window_id) override; |
| 309 void ReorderWindow(uint32_t change_Id, | 311 void ReorderWindow(uint32_t change_Id, |
| 310 Id window_id, | 312 Id window_id, |
| 311 Id relative_window_id, | 313 Id relative_window_id, |
| 312 mojom::OrderDirection direction) override; | 314 mojom::OrderDirection direction) override; |
| 313 void GetWindowTree( | 315 void GetWindowTree( |
| 314 Id window_id, | 316 Id window_id, |
| 315 const mojo::Callback<void(mojo::Array<mojom::WindowDataPtr>)>& callback) | 317 const mojo::Callback<void(mojo::Array<mojom::WindowDataPtr>)>& callback) |
| 316 override; | 318 override; |
| 317 void SetCapture(uint32_t change_id, Id window_id) override; | 319 void SetCapture(uint32_t change_id, Id window_id) override; |
| 318 void ReleaseCapture(uint32_t change_id, Id window_id) override; | 320 void ReleaseCapture(uint32_t change_id, Id window_id) override; |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 | 421 |
| 420 scoped_ptr<WaitingForTopLevelWindowInfo> waiting_for_top_level_window_info_; | 422 scoped_ptr<WaitingForTopLevelWindowInfo> waiting_for_top_level_window_info_; |
| 421 | 423 |
| 422 DISALLOW_COPY_AND_ASSIGN(WindowTree); | 424 DISALLOW_COPY_AND_ASSIGN(WindowTree); |
| 423 }; | 425 }; |
| 424 | 426 |
| 425 } // namespace ws | 427 } // namespace ws |
| 426 } // namespace mus | 428 } // namespace mus |
| 427 | 429 |
| 428 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_H_ | 430 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_H_ |
| OLD | NEW |