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_WINDOW_H_ | 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_WINDOW_H_ |
6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_H_ | 6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 | 165 |
166 void AddChild(Window* child); | 166 void AddChild(Window* child); |
167 void RemoveChild(Window* child); | 167 void RemoveChild(Window* child); |
168 const Children& children() const { return children_; } | 168 const Children& children() const { return children_; } |
169 | 169 |
170 void Reorder(Window* relative, mojom::OrderDirection direction); | 170 void Reorder(Window* relative, mojom::OrderDirection direction); |
171 void MoveToFront(); | 171 void MoveToFront(); |
172 void MoveToBack(); | 172 void MoveToBack(); |
173 | 173 |
174 // Returns true if |child| is this or a descendant of this. | 174 // Returns true if |child| is this or a descendant of this. |
175 bool Contains(Window* child) const; | 175 bool Contains(const Window* child) const; |
176 | 176 |
177 void AddTransientWindow(Window* transient_window); | 177 void AddTransientWindow(Window* transient_window); |
178 void RemoveTransientWindow(Window* transient_window); | 178 void RemoveTransientWindow(Window* transient_window); |
179 | 179 |
180 // TODO(fsamuel): Figure out if we want to refactor transient window | 180 // TODO(fsamuel): Figure out if we want to refactor transient window |
181 // management into a separate class. | 181 // management into a separate class. |
182 // Transient tree. | 182 // Transient tree. |
183 Window* transient_parent() { return transient_parent_; } | 183 Window* transient_parent() { return transient_parent_; } |
184 const Window* transient_parent() const { return transient_parent_; } | 184 const Window* transient_parent() const { return transient_parent_; } |
185 const Children& transient_children() const { return transient_children_; } | 185 const Children& transient_children() const { return transient_children_; } |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 }; | 331 }; |
332 | 332 |
333 std::map<const void*, Value> prop_map_; | 333 std::map<const void*, Value> prop_map_; |
334 | 334 |
335 DISALLOW_COPY_AND_ASSIGN(Window); | 335 DISALLOW_COPY_AND_ASSIGN(Window); |
336 }; | 336 }; |
337 | 337 |
338 } // namespace mus | 338 } // namespace mus |
339 | 339 |
340 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_H_ | 340 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_H_ |
OLD | NEW |