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_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ | 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ |
6 #define COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ | 6 #define COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 59 |
60 // These methods take TransportIds. For windows owned by the current | 60 // These methods take TransportIds. For windows owned by the current |
61 // connection, the connection id high word can be zero. In all cases, the | 61 // connection, the connection id high word can be zero. In all cases, the |
62 // TransportId 0x1 refers to the root window. | 62 // TransportId 0x1 refers to the root window. |
63 void AddChild(Window* parent, Id child_id); | 63 void AddChild(Window* parent, Id child_id); |
64 void RemoveChild(Window* parent, Id child_id); | 64 void RemoveChild(Window* parent, Id child_id); |
65 | 65 |
66 void AddTransientWindow(Window* window, Id transient_window_id); | 66 void AddTransientWindow(Window* window, Id transient_window_id); |
67 void RemoveTransientWindowFromParent(Window* window); | 67 void RemoveTransientWindowFromParent(Window* window); |
68 | 68 |
| 69 void SetModal(Window* window); |
| 70 |
69 void Reorder(Window* window, | 71 void Reorder(Window* window, |
70 Id relative_window_id, | 72 Id relative_window_id, |
71 mojom::OrderDirection direction); | 73 mojom::OrderDirection direction); |
72 | 74 |
73 // Returns true if the specified window was created by this connection. | 75 // Returns true if the specified window was created by this connection. |
74 bool OwnsWindow(Window* window) const; | 76 bool OwnsWindow(Window* window) const; |
75 | 77 |
76 void SetBounds(Window* window, | 78 void SetBounds(Window* window, |
77 const gfx::Rect& old_bounds, | 79 const gfx::Rect& old_bounds, |
78 const gfx::Rect& bounds); | 80 const gfx::Rect& bounds); |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 scoped_ptr<mojo::AssociatedBinding<mojom::WindowManager>> | 294 scoped_ptr<mojo::AssociatedBinding<mojom::WindowManager>> |
293 window_manager_internal_; | 295 window_manager_internal_; |
294 mojom::WindowManagerClientAssociatedPtr window_manager_internal_client_; | 296 mojom::WindowManagerClientAssociatedPtr window_manager_internal_client_; |
295 | 297 |
296 DISALLOW_COPY_AND_ASSIGN(WindowTreeClientImpl); | 298 DISALLOW_COPY_AND_ASSIGN(WindowTreeClientImpl); |
297 }; | 299 }; |
298 | 300 |
299 } // namespace mus | 301 } // namespace mus |
300 | 302 |
301 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ | 303 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ |
OLD | NEW |