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_OBSERVER_H_ | 5 #ifndef UI_AURA_WINDOW_OBSERVER_H_ |
6 #define UI_AURA_WINDOW_OBSERVER_H_ | 6 #define UI_AURA_WINDOW_OBSERVER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
10 #include "ui/aura/aura_export.h" | 10 #include "ui/aura/aura_export.h" |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 // Invoked when SetBounds() is invoked on |window|. |old_bounds| and | 81 // Invoked when SetBounds() is invoked on |window|. |old_bounds| and |
82 // |new_bounds| are in parent coordinates. | 82 // |new_bounds| are in parent coordinates. |
83 virtual void OnWindowBoundsChanged(Window* window, | 83 virtual void OnWindowBoundsChanged(Window* window, |
84 const gfx::Rect& old_bounds, | 84 const gfx::Rect& old_bounds, |
85 const gfx::Rect& new_bounds) {} | 85 const gfx::Rect& new_bounds) {} |
86 | 86 |
87 // Invoked when SetTransform() is invoked on |window|. | 87 // Invoked when SetTransform() is invoked on |window|. |
88 virtual void OnWindowTransforming(Window* window) {} | 88 virtual void OnWindowTransforming(Window* window) {} |
89 virtual void OnWindowTransformed(Window* window) {} | 89 virtual void OnWindowTransformed(Window* window) {} |
90 | 90 |
91 // Invoked when SetTransform() is invoked on an ancestor of the window being | |
92 // observed (including the window itself). | |
93 virtual void OnAncestorWindowTransformed(Window* source, Window* window) {} | |
94 | |
95 // Invoked when |window|'s position among its siblings in the stacking order | 91 // Invoked when |window|'s position among its siblings in the stacking order |
96 // has changed. | 92 // has changed. |
97 virtual void OnWindowStackingChanged(Window* window) {} | 93 virtual void OnWindowStackingChanged(Window* window) {} |
98 | 94 |
99 // Invoked when a region of |window| has damage from a new delegated frame. | 95 // Invoked when a region of |window| has damage from a new delegated frame. |
100 virtual void OnDelegatedFrameDamage(Window* window, | 96 virtual void OnDelegatedFrameDamage(Window* window, |
101 const gfx::Rect& damage_rect_in_dip) {} | 97 const gfx::Rect& damage_rect_in_dip) {} |
102 | 98 |
103 // Invoked when the Window is being destroyed (i.e. from the start of its | 99 // Invoked when the Window is being destroyed (i.e. from the start of its |
104 // destructor). This is called before the window is removed from its parent. | 100 // destructor). This is called before the window is removed from its parent. |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 // Tracks the number of windows being observed to track down | 141 // Tracks the number of windows being observed to track down |
146 // http://crbug.com/365364. | 142 // http://crbug.com/365364. |
147 int observing_; | 143 int observing_; |
148 | 144 |
149 DISALLOW_COPY_AND_ASSIGN(WindowObserver); | 145 DISALLOW_COPY_AND_ASSIGN(WindowObserver); |
150 }; | 146 }; |
151 | 147 |
152 } // namespace aura | 148 } // namespace aura |
153 | 149 |
154 #endif // UI_AURA_WINDOW_OBSERVER_H_ | 150 #endif // UI_AURA_WINDOW_OBSERVER_H_ |
OLD | NEW |