OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_AURA_WINDOW_H_ | 5 #ifndef UI_AURA_WINDOW_H_ |
6 #define UI_AURA_WINDOW_H_ | 6 #define UI_AURA_WINDOW_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 // Notifies this window and its parent hierarchy. | 421 // Notifies this window and its parent hierarchy. |
422 void NotifyWindowHierarchyChangeUp( | 422 void NotifyWindowHierarchyChangeUp( |
423 const WindowObserver::HierarchyChangeParams& params); | 423 const WindowObserver::HierarchyChangeParams& params); |
424 // Notifies this window's observers. | 424 // Notifies this window's observers. |
425 void NotifyWindowHierarchyChangeAtReceiver( | 425 void NotifyWindowHierarchyChangeAtReceiver( |
426 const WindowObserver::HierarchyChangeParams& params); | 426 const WindowObserver::HierarchyChangeParams& params); |
427 | 427 |
428 // Methods implementing visibility change notifications. See WindowObserver | 428 // Methods implementing visibility change notifications. See WindowObserver |
429 // for more details. | 429 // for more details. |
430 void NotifyWindowVisibilityChanged(aura::Window* target, bool visible); | 430 void NotifyWindowVisibilityChanged(aura::Window* target, bool visible); |
431 // Notifies this window's observers. | 431 // Notifies this window's observers. Returns false if |this| was deleted |
432 void NotifyWindowVisibilityChangedAtReceiver(aura::Window* target, | 432 // during the call (by an observer), otherwise true. |
| 433 bool NotifyWindowVisibilityChangedAtReceiver(aura::Window* target, |
433 bool visible); | 434 bool visible); |
434 // Notifies this window and its child hierarchy. | 435 // Notifies this window and its child hierarchy. Returns false if |
435 void NotifyWindowVisibilityChangedDown(aura::Window* target, bool visible); | 436 // |this| was deleted during the call (by an observer), otherwise |
| 437 // true. |
| 438 bool NotifyWindowVisibilityChangedDown(aura::Window* target, bool visible); |
436 // Notifies this window and its parent hierarchy. | 439 // Notifies this window and its parent hierarchy. |
437 void NotifyWindowVisibilityChangedUp(aura::Window* target, bool visible); | 440 void NotifyWindowVisibilityChangedUp(aura::Window* target, bool visible); |
438 | 441 |
439 // Invoked from the closure returned by PrepareForLayerBoundsChange() after | 442 // Invoked from the closure returned by PrepareForLayerBoundsChange() after |
440 // the bounds of the layer has changed. |old_bounds| is the previous bounds of | 443 // the bounds of the layer has changed. |old_bounds| is the previous bounds of |
441 // the layer, and |contained_mouse| is true if the mouse was previously within | 444 // the layer, and |contained_mouse| is true if the mouse was previously within |
442 // the window's bounds. | 445 // the window's bounds. |
443 void OnLayerBoundsChanged(const gfx::Rect& old_bounds, bool contained_mouse); | 446 void OnLayerBoundsChanged(const gfx::Rect& old_bounds, bool contained_mouse); |
444 | 447 |
445 // Overridden from ui::LayerDelegate: | 448 // Overridden from ui::LayerDelegate: |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
513 }; | 516 }; |
514 | 517 |
515 std::map<const void*, Value> prop_map_; | 518 std::map<const void*, Value> prop_map_; |
516 | 519 |
517 DISALLOW_COPY_AND_ASSIGN(Window); | 520 DISALLOW_COPY_AND_ASSIGN(Window); |
518 }; | 521 }; |
519 | 522 |
520 } // namespace aura | 523 } // namespace aura |
521 | 524 |
522 #endif // UI_AURA_WINDOW_H_ | 525 #endif // UI_AURA_WINDOW_H_ |
OLD | NEW |