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> |
11 #include <memory> | 11 #include <memory> |
12 #include <queue> | 12 #include <queue> |
13 #include <set> | 13 #include <set> |
14 #include <string> | 14 #include <string> |
15 #include <vector> | 15 #include <vector> |
16 | 16 |
| 17 #include "base/callback.h" |
17 #include "base/containers/hash_tables.h" | 18 #include "base/containers/hash_tables.h" |
18 #include "base/macros.h" | 19 #include "base/macros.h" |
19 #include "cc/ipc/surface_id.mojom.h" | 20 #include "cc/ipc/surface_id.mojom.h" |
20 #include "components/mus/public/interfaces/window_tree.mojom.h" | 21 #include "components/mus/public/interfaces/window_tree.mojom.h" |
21 #include "components/mus/ws/access_policy_delegate.h" | 22 #include "components/mus/ws/access_policy_delegate.h" |
22 #include "components/mus/ws/ids.h" | 23 #include "components/mus/ws/ids.h" |
23 #include "components/mus/ws/user_id.h" | 24 #include "components/mus/ws/user_id.h" |
24 #include "components/mus/ws/window_tree_binding.h" | 25 #include "components/mus/ws/window_tree_binding.h" |
25 #include "mojo/public/cpp/bindings/associated_binding.h" | 26 #include "mojo/public/cpp/bindings/associated_binding.h" |
26 | 27 |
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 Id transient_window) override; | 338 Id transient_window) override; |
338 void RemoveTransientWindowFromParent(uint32_t change_id, | 339 void RemoveTransientWindowFromParent(uint32_t change_id, |
339 Id transient_window_id) override; | 340 Id transient_window_id) override; |
340 void SetModal(uint32_t change_id, Id window_id) override; | 341 void SetModal(uint32_t change_id, Id window_id) override; |
341 void ReorderWindow(uint32_t change_Id, | 342 void ReorderWindow(uint32_t change_Id, |
342 Id window_id, | 343 Id window_id, |
343 Id relative_window_id, | 344 Id relative_window_id, |
344 mojom::OrderDirection direction) override; | 345 mojom::OrderDirection direction) override; |
345 void GetWindowTree( | 346 void GetWindowTree( |
346 Id window_id, | 347 Id window_id, |
347 const mojo::Callback<void(mojo::Array<mojom::WindowDataPtr>)>& callback) | 348 const base::Callback<void(mojo::Array<mojom::WindowDataPtr>)>& callback) |
348 override; | 349 override; |
349 void SetCapture(uint32_t change_id, Id window_id) override; | 350 void SetCapture(uint32_t change_id, Id window_id) override; |
350 void ReleaseCapture(uint32_t change_id, Id window_id) override; | 351 void ReleaseCapture(uint32_t change_id, Id window_id) override; |
351 void SetEventObserver(mojom::EventMatcherPtr matcher, | 352 void SetEventObserver(mojom::EventMatcherPtr matcher, |
352 uint32_t observer_id) override; | 353 uint32_t observer_id) override; |
353 void SetWindowBounds(uint32_t change_id, | 354 void SetWindowBounds(uint32_t change_id, |
354 Id window_id, | 355 Id window_id, |
355 const gfx::Rect& bounds) override; | 356 const gfx::Rect& bounds) override; |
356 void SetWindowVisibility(uint32_t change_id, | 357 void SetWindowVisibility(uint32_t change_id, |
357 Id window_id, | 358 Id window_id, |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
473 std::unique_ptr<WaitingForTopLevelWindowInfo> | 474 std::unique_ptr<WaitingForTopLevelWindowInfo> |
474 waiting_for_top_level_window_info_; | 475 waiting_for_top_level_window_info_; |
475 | 476 |
476 DISALLOW_COPY_AND_ASSIGN(WindowTree); | 477 DISALLOW_COPY_AND_ASSIGN(WindowTree); |
477 }; | 478 }; |
478 | 479 |
479 } // namespace ws | 480 } // namespace ws |
480 } // namespace mus | 481 } // namespace mus |
481 | 482 |
482 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_H_ | 483 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_H_ |
OLD | NEW |