| 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 bool SetWindowVisibility(const ClientWindowId& window_id, bool visible); | 140 bool SetWindowVisibility(const ClientWindowId& window_id, bool visible); |
| 141 bool SetFocus(const ClientWindowId& window_id); | 141 bool SetFocus(const ClientWindowId& window_id); |
| 142 bool Embed(const ClientWindowId& window_id, | 142 bool Embed(const ClientWindowId& window_id, |
| 143 mojom::WindowTreeClientPtr client); | 143 mojom::WindowTreeClientPtr client); |
| 144 void DispatchInputEvent(ServerWindow* target, const ui::Event& event); | 144 void DispatchInputEvent(ServerWindow* target, const ui::Event& event); |
| 145 | 145 |
| 146 bool IsWaitingForNewTopLevelWindow(uint32_t wm_change_id); | 146 bool IsWaitingForNewTopLevelWindow(uint32_t wm_change_id); |
| 147 void OnWindowManagerCreatedTopLevelWindow(uint32_t wm_change_id, | 147 void OnWindowManagerCreatedTopLevelWindow(uint32_t wm_change_id, |
| 148 uint32_t client_change_id, | 148 uint32_t client_change_id, |
| 149 const ServerWindow* window); | 149 const ServerWindow* window); |
| 150 void AddActivationParent(const ClientWindowId& window_id); |
| 150 | 151 |
| 151 // Calls through to the client. | 152 // Calls through to the client. |
| 152 void OnChangeCompleted(uint32_t change_id, bool success); | 153 void OnChangeCompleted(uint32_t change_id, bool success); |
| 153 void OnAccelerator(uint32_t accelerator_id, const ui::Event& event); | 154 void OnAccelerator(uint32_t accelerator_id, const ui::Event& event); |
| 154 | 155 |
| 155 // The following methods are invoked after the corresponding change has been | 156 // The following methods are invoked after the corresponding change has been |
| 156 // processed. They do the appropriate bookkeeping and update the client as | 157 // processed. They do the appropriate bookkeeping and update the client as |
| 157 // necessary. | 158 // necessary. |
| 158 void ProcessWindowBoundsChanged(const ServerWindow* window, | 159 void ProcessWindowBoundsChanged(const ServerWindow* window, |
| 159 const gfx::Rect& old_bounds, | 160 const gfx::Rect& old_bounds, |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 | 431 |
| 431 scoped_ptr<WaitingForTopLevelWindowInfo> waiting_for_top_level_window_info_; | 432 scoped_ptr<WaitingForTopLevelWindowInfo> waiting_for_top_level_window_info_; |
| 432 | 433 |
| 433 DISALLOW_COPY_AND_ASSIGN(WindowTree); | 434 DISALLOW_COPY_AND_ASSIGN(WindowTree); |
| 434 }; | 435 }; |
| 435 | 436 |
| 436 } // namespace ws | 437 } // namespace ws |
| 437 } // namespace mus | 438 } // namespace mus |
| 438 | 439 |
| 439 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_H_ | 440 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_H_ |
| OLD | NEW |