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