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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 mojom::OrderDirection direction, | 150 mojom::OrderDirection direction, |
151 bool originated_change); | 151 bool originated_change); |
152 void ProcessWindowDeleted(const ServerWindow* window, bool originated_change); | 152 void ProcessWindowDeleted(const ServerWindow* window, bool originated_change); |
153 void ProcessWillChangeWindowVisibility(const ServerWindow* window, | 153 void ProcessWillChangeWindowVisibility(const ServerWindow* window, |
154 bool originated_change); | 154 bool originated_change); |
155 void ProcessCursorChanged(const ServerWindow* window, | 155 void ProcessCursorChanged(const ServerWindow* window, |
156 int32_t cursor_id, | 156 int32_t cursor_id, |
157 bool originated_change); | 157 bool originated_change); |
158 void ProcessFocusChanged(const ServerWindow* old_focused_window, | 158 void ProcessFocusChanged(const ServerWindow* old_focused_window, |
159 const ServerWindow* new_focused_window); | 159 const ServerWindow* new_focused_window); |
| 160 void ProcessLostCapture(const ServerWindow* old_lost_capture); |
160 void ProcessTransientWindowAdded(const ServerWindow* window, | 161 void ProcessTransientWindowAdded(const ServerWindow* window, |
161 const ServerWindow* transient_window, | 162 const ServerWindow* transient_window, |
162 bool originated_change); | 163 bool originated_change); |
163 void ProcessTransientWindowRemoved(const ServerWindow* window, | 164 void ProcessTransientWindowRemoved(const ServerWindow* window, |
164 const ServerWindow* transient_window, | 165 const ServerWindow* transient_window, |
165 bool originated_change); | 166 bool originated_change); |
166 | 167 |
167 private: | 168 private: |
168 using WindowIdSet = base::hash_set<Id>; | 169 using WindowIdSet = base::hash_set<Id>; |
169 using WindowMap = std::map<ConnectionSpecificId, ServerWindow*>; | 170 using WindowMap = std::map<ConnectionSpecificId, ServerWindow*>; |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 void RemoveTransientWindowFromParent(uint32_t change_id, | 273 void RemoveTransientWindowFromParent(uint32_t change_id, |
273 Id transient_window_id) override; | 274 Id transient_window_id) override; |
274 void ReorderWindow(uint32_t change_Id, | 275 void ReorderWindow(uint32_t change_Id, |
275 Id window_id, | 276 Id window_id, |
276 Id relative_window_id, | 277 Id relative_window_id, |
277 mojom::OrderDirection direction) override; | 278 mojom::OrderDirection direction) override; |
278 void GetWindowTree( | 279 void GetWindowTree( |
279 Id window_id, | 280 Id window_id, |
280 const mojo::Callback<void(mojo::Array<mojom::WindowDataPtr>)>& callback) | 281 const mojo::Callback<void(mojo::Array<mojom::WindowDataPtr>)>& callback) |
281 override; | 282 override; |
| 283 void SetCapture(uint32_t change_id, Id window_id) override; |
| 284 void ReleaseCapture(uint32_t change_id, Id window_id) override; |
282 void SetWindowBounds(uint32_t change_id, | 285 void SetWindowBounds(uint32_t change_id, |
283 Id window_id, | 286 Id window_id, |
284 mojo::RectPtr bounds) override; | 287 mojo::RectPtr bounds) override; |
285 void SetWindowVisibility(uint32_t change_id, | 288 void SetWindowVisibility(uint32_t change_id, |
286 Id window_id, | 289 Id window_id, |
287 bool visible) override; | 290 bool visible) override; |
288 void SetWindowProperty(uint32_t change_id, | 291 void SetWindowProperty(uint32_t change_id, |
289 Id transport_window_id, | 292 Id transport_window_id, |
290 const mojo::String& name, | 293 const mojo::String& name, |
291 mojo::Array<uint8_t> value) override; | 294 mojo::Array<uint8_t> value) override; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 | 368 |
366 scoped_ptr<WaitingForTopLevelWindowInfo> waiting_for_top_level_window_info_; | 369 scoped_ptr<WaitingForTopLevelWindowInfo> waiting_for_top_level_window_info_; |
367 | 370 |
368 DISALLOW_COPY_AND_ASSIGN(WindowTreeImpl); | 371 DISALLOW_COPY_AND_ASSIGN(WindowTreeImpl); |
369 }; | 372 }; |
370 | 373 |
371 } // namespace ws | 374 } // namespace ws |
372 } // namespace mus | 375 } // namespace mus |
373 | 376 |
374 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_IMPL_H_ | 377 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_IMPL_H_ |
OLD | NEW |