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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 mojom::OrderDirection direction, | 162 mojom::OrderDirection direction, |
163 bool originated_change); | 163 bool originated_change); |
164 void ProcessWindowDeleted(const ServerWindow* window, bool originated_change); | 164 void ProcessWindowDeleted(const ServerWindow* window, bool originated_change); |
165 void ProcessWillChangeWindowVisibility(const ServerWindow* window, | 165 void ProcessWillChangeWindowVisibility(const ServerWindow* window, |
166 bool originated_change); | 166 bool originated_change); |
167 void ProcessCursorChanged(const ServerWindow* window, | 167 void ProcessCursorChanged(const ServerWindow* window, |
168 int32_t cursor_id, | 168 int32_t cursor_id, |
169 bool originated_change); | 169 bool originated_change); |
170 void ProcessFocusChanged(const ServerWindow* old_focused_window, | 170 void ProcessFocusChanged(const ServerWindow* old_focused_window, |
171 const ServerWindow* new_focused_window); | 171 const ServerWindow* new_focused_window); |
| 172 void ProcessLostCapture(const ServerWindow* old_lost_capture, |
| 173 bool originated_change); |
172 void ProcessTransientWindowAdded(const ServerWindow* window, | 174 void ProcessTransientWindowAdded(const ServerWindow* window, |
173 const ServerWindow* transient_window, | 175 const ServerWindow* transient_window, |
174 bool originated_change); | 176 bool originated_change); |
175 void ProcessTransientWindowRemoved(const ServerWindow* window, | 177 void ProcessTransientWindowRemoved(const ServerWindow* window, |
176 const ServerWindow* transient_window, | 178 const ServerWindow* transient_window, |
177 bool originated_change); | 179 bool originated_change); |
178 | 180 |
179 private: | 181 private: |
180 friend class WindowTreeTest; | 182 friend class WindowTreeTest; |
181 | 183 |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 void RemoveTransientWindowFromParent(uint32_t change_id, | 291 void RemoveTransientWindowFromParent(uint32_t change_id, |
290 Id transient_window_id) override; | 292 Id transient_window_id) override; |
291 void ReorderWindow(uint32_t change_Id, | 293 void ReorderWindow(uint32_t change_Id, |
292 Id window_id, | 294 Id window_id, |
293 Id relative_window_id, | 295 Id relative_window_id, |
294 mojom::OrderDirection direction) override; | 296 mojom::OrderDirection direction) override; |
295 void GetWindowTree( | 297 void GetWindowTree( |
296 Id window_id, | 298 Id window_id, |
297 const mojo::Callback<void(mojo::Array<mojom::WindowDataPtr>)>& callback) | 299 const mojo::Callback<void(mojo::Array<mojom::WindowDataPtr>)>& callback) |
298 override; | 300 override; |
| 301 void SetCapture(uint32_t change_id, Id window_id) override; |
| 302 void ReleaseCapture(uint32_t change_id, Id window_id) override; |
299 void SetWindowBounds(uint32_t change_id, | 303 void SetWindowBounds(uint32_t change_id, |
300 Id window_id, | 304 Id window_id, |
301 mojo::RectPtr bounds) override; | 305 mojo::RectPtr bounds) override; |
302 void SetWindowVisibility(uint32_t change_id, | 306 void SetWindowVisibility(uint32_t change_id, |
303 Id window_id, | 307 Id window_id, |
304 bool visible) override; | 308 bool visible) override; |
305 void SetWindowProperty(uint32_t change_id, | 309 void SetWindowProperty(uint32_t change_id, |
306 Id transport_window_id, | 310 Id transport_window_id, |
307 const mojo::String& name, | 311 const mojo::String& name, |
308 mojo::Array<uint8_t> value) override; | 312 mojo::Array<uint8_t> value) override; |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 | 403 |
400 scoped_ptr<WaitingForTopLevelWindowInfo> waiting_for_top_level_window_info_; | 404 scoped_ptr<WaitingForTopLevelWindowInfo> waiting_for_top_level_window_info_; |
401 | 405 |
402 DISALLOW_COPY_AND_ASSIGN(WindowTreeImpl); | 406 DISALLOW_COPY_AND_ASSIGN(WindowTreeImpl); |
403 }; | 407 }; |
404 | 408 |
405 } // namespace ws | 409 } // namespace ws |
406 } // namespace mus | 410 } // namespace mus |
407 | 411 |
408 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_IMPL_H_ | 412 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_IMPL_H_ |
OLD | NEW |