| 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 SERVICES_UI_PUBLIC_CPP_WINDOW_H_ | 5 #ifndef SERVICES_UI_PUBLIC_CPP_WINDOW_H_ |
| 6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_H_ | 6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 void NotifyWindowVisibilityChangedUp(Window* target); | 325 void NotifyWindowVisibilityChangedUp(Window* target); |
| 326 | 326 |
| 327 // Returns true if embed is allowed for this node. If embedding is allowed all | 327 // Returns true if embed is allowed for this node. If embedding is allowed all |
| 328 // the children are removed. | 328 // the children are removed. |
| 329 bool PrepareForEmbed(); | 329 bool PrepareForEmbed(); |
| 330 | 330 |
| 331 void RemoveTransientWindowImpl(Window* child); | 331 void RemoveTransientWindowImpl(Window* child); |
| 332 static void ReorderWithoutNotification(Window* window, | 332 static void ReorderWithoutNotification(Window* window, |
| 333 Window* relative, | 333 Window* relative, |
| 334 mojom::OrderDirection direction); | 334 mojom::OrderDirection direction); |
| 335 // Returns true if the order actually changed. |
| 335 static bool ReorderImpl(Window* window, | 336 static bool ReorderImpl(Window* window, |
| 336 Window* relative, | 337 Window* relative, |
| 337 mojom::OrderDirection direction, | 338 mojom::OrderDirection direction, |
| 338 OrderChangedNotifier* notifier); | 339 OrderChangedNotifier* notifier); |
| 339 | 340 |
| 340 // Returns a pointer to the stacking target that can be used by | 341 // Returns a pointer to the stacking target that can be used by |
| 341 // RestackTransientDescendants. | 342 // RestackTransientDescendants. |
| 342 static Window** GetStackingTarget(Window* window); | 343 static Window** GetStackingTarget(Window* window); |
| 343 | 344 |
| 344 WindowTreeClient* client_; | 345 WindowTreeClient* client_; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 }; | 392 }; |
| 392 | 393 |
| 393 std::map<const void*, Value> prop_map_; | 394 std::map<const void*, Value> prop_map_; |
| 394 | 395 |
| 395 DISALLOW_COPY_AND_ASSIGN(Window); | 396 DISALLOW_COPY_AND_ASSIGN(Window); |
| 396 }; | 397 }; |
| 397 | 398 |
| 398 } // namespace ui | 399 } // namespace ui |
| 399 | 400 |
| 400 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_H_ | 401 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_H_ |
| OLD | NEW |