Chromium Code Reviews| 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/basictypes.h" | 8 #include "base/basictypes.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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 75 // Invoked when SetBounds() is invoked on |window|. |old_bounds| and | 75 // Invoked when SetBounds() is invoked on |window|. |old_bounds| and |
| 76 // |new_bounds| are in parent coordinates. | 76 // |new_bounds| are in parent coordinates. |
| 77 virtual void OnWindowBoundsChanged(Window* window, | 77 virtual void OnWindowBoundsChanged(Window* window, |
| 78 const gfx::Rect& old_bounds, | 78 const gfx::Rect& old_bounds, |
| 79 const gfx::Rect& new_bounds) {} | 79 const gfx::Rect& new_bounds) {} |
| 80 | 80 |
| 81 // Invoked when SetTransform() is invoked on |window|. | 81 // Invoked when SetTransform() is invoked on |window|. |
| 82 virtual void OnWindowTransforming(Window* window) {} | 82 virtual void OnWindowTransforming(Window* window) {} |
| 83 virtual void OnWindowTransformed(Window* window) {} | 83 virtual void OnWindowTransformed(Window* window) {} |
| 84 | 84 |
| 85 // Invoked when SetTransform() is invoked on an |ancestor| of the |window| | |
| 86 // being observed. Note that this will also be invoked on the |ancestor| | |
| 87 // observers. | |
| 88 virtual void OnAncestorWindowTransformed(Window* window, Window* ancestor) {} | |
|
sky
2014/09/10 15:13:27
Can you swap the order of these and rename ancesto
mohsen
2014/09/10 15:48:59
Done.
| |
| 89 | |
| 85 // Invoked when |window|'s position among its siblings in the stacking order | 90 // Invoked when |window|'s position among its siblings in the stacking order |
| 86 // has changed. | 91 // has changed. |
| 87 virtual void OnWindowStackingChanged(Window* window) {} | 92 virtual void OnWindowStackingChanged(Window* window) {} |
| 88 | 93 |
| 89 // Invoked when a region of |window| has damage from a new delegated frame. | 94 // Invoked when a region of |window| has damage from a new delegated frame. |
| 90 virtual void OnDelegatedFrameDamage(Window* window, | 95 virtual void OnDelegatedFrameDamage(Window* window, |
| 91 const gfx::Rect& damage_rect_in_dip) {} | 96 const gfx::Rect& damage_rect_in_dip) {} |
| 92 | 97 |
| 93 // Invoked when the Window is being destroyed (i.e. from the start of its | 98 // Invoked when the Window is being destroyed (i.e. from the start of its |
| 94 // destructor). This is called before the window is removed from its parent. | 99 // destructor). This is called before the window is removed from its parent. |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 131 // Tracks the number of windows being observed to track down | 136 // Tracks the number of windows being observed to track down |
| 132 // http://crbug.com/365364. | 137 // http://crbug.com/365364. |
| 133 int observing_; | 138 int observing_; |
| 134 | 139 |
| 135 DISALLOW_COPY_AND_ASSIGN(WindowObserver); | 140 DISALLOW_COPY_AND_ASSIGN(WindowObserver); |
| 136 }; | 141 }; |
| 137 | 142 |
| 138 } // namespace aura | 143 } // namespace aura |
| 139 | 144 |
| 140 #endif // UI_AURA_WINDOW_OBSERVER_H_ | 145 #endif // UI_AURA_WINDOW_OBSERVER_H_ |
| OLD | NEW |