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_IMPL_H_ | 5 #ifndef COMPONENTS_MUS_WS_WINDOW_TREE_IMPL_H_ |
6 #define COMPONENTS_MUS_WS_WINDOW_TREE_IMPL_H_ | 6 #define COMPONENTS_MUS_WS_WINDOW_TREE_IMPL_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 bool originated_change); | 114 bool originated_change); |
115 void ProcessWindowReorder(const ServerWindow* window, | 115 void ProcessWindowReorder(const ServerWindow* window, |
116 const ServerWindow* relative_window, | 116 const ServerWindow* relative_window, |
117 mojom::OrderDirection direction, | 117 mojom::OrderDirection direction, |
118 bool originated_change); | 118 bool originated_change); |
119 void ProcessWindowDeleted(const WindowId& window, bool originated_change); | 119 void ProcessWindowDeleted(const WindowId& window, bool originated_change); |
120 void ProcessWillChangeWindowVisibility(const ServerWindow* window, | 120 void ProcessWillChangeWindowVisibility(const ServerWindow* window, |
121 bool originated_change); | 121 bool originated_change); |
122 void ProcessFocusChanged(const ServerWindow* old_focused_window, | 122 void ProcessFocusChanged(const ServerWindow* old_focused_window, |
123 const ServerWindow* new_focused_window); | 123 const ServerWindow* new_focused_window); |
| 124 void ProcessLostCapture(const ServerWindow* old_lost_capture); |
124 void ProcessTransientWindowAdded(const ServerWindow* window, | 125 void ProcessTransientWindowAdded(const ServerWindow* window, |
125 const ServerWindow* transient_window, | 126 const ServerWindow* transient_window, |
126 bool originated_change); | 127 bool originated_change); |
127 void ProcessTransientWindowRemoved(const ServerWindow* window, | 128 void ProcessTransientWindowRemoved(const ServerWindow* window, |
128 const ServerWindow* transient_window, | 129 const ServerWindow* transient_window, |
129 bool originated_change); | 130 bool originated_change); |
130 | 131 |
131 private: | 132 private: |
132 using WindowIdSet = base::hash_set<Id>; | 133 using WindowIdSet = base::hash_set<Id>; |
133 using WindowMap = std::map<ConnectionSpecificId, ServerWindow*>; | 134 using WindowMap = std::map<ConnectionSpecificId, ServerWindow*>; |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 void RemoveTransientWindowFromParent(uint32_t change_id, | 206 void RemoveTransientWindowFromParent(uint32_t change_id, |
206 Id transient_window_id) override; | 207 Id transient_window_id) override; |
207 void ReorderWindow(Id window_id, | 208 void ReorderWindow(Id window_id, |
208 Id relative_window_id, | 209 Id relative_window_id, |
209 mojom::OrderDirection direction, | 210 mojom::OrderDirection direction, |
210 const mojo::Callback<void(bool)>& callback) override; | 211 const mojo::Callback<void(bool)>& callback) override; |
211 void GetWindowTree( | 212 void GetWindowTree( |
212 Id window_id, | 213 Id window_id, |
213 const mojo::Callback<void(mojo::Array<mojom::WindowDataPtr>)>& callback) | 214 const mojo::Callback<void(mojo::Array<mojom::WindowDataPtr>)>& callback) |
214 override; | 215 override; |
| 216 void SetCapture(uint32_t change_id, Id window_id) override; |
| 217 void ReleaseCapture(uint32_t change_id, Id window_id) override; |
215 void SetWindowBounds(uint32_t change_id, | 218 void SetWindowBounds(uint32_t change_id, |
216 Id window_id, | 219 Id window_id, |
217 mojo::RectPtr bounds) override; | 220 mojo::RectPtr bounds) override; |
218 void SetWindowVisibility(Id window_id, | 221 void SetWindowVisibility(Id window_id, |
219 bool visible, | 222 bool visible, |
220 const mojo::Callback<void(bool)>& callback) override; | 223 const mojo::Callback<void(bool)>& callback) override; |
221 void SetWindowProperty(uint32_t change_id, | 224 void SetWindowProperty(uint32_t change_id, |
222 Id window_id, | 225 Id window_id, |
223 const mojo::String& name, | 226 const mojo::String& name, |
224 mojo::Array<uint8_t> value) override; | 227 mojo::Array<uint8_t> value) override; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 bool is_embed_root_; | 284 bool is_embed_root_; |
282 | 285 |
283 DISALLOW_COPY_AND_ASSIGN(WindowTreeImpl); | 286 DISALLOW_COPY_AND_ASSIGN(WindowTreeImpl); |
284 }; | 287 }; |
285 | 288 |
286 } // namespace ws | 289 } // namespace ws |
287 | 290 |
288 } // namespace mus | 291 } // namespace mus |
289 | 292 |
290 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_IMPL_H_ | 293 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_IMPL_H_ |
OLD | NEW |