| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |window|'s position among its siblings in the stacking order | 85 // Invoked when |window|'s position among its siblings in the stacking order |
| 86 // has changed. | 86 // has changed. |
| 87 virtual void OnWindowStackingChanged(Window* window) {} | 87 virtual void OnWindowStackingChanged(Window* window) {} |
| 88 | 88 |
| 89 // Invoked when a region of |window| is scheduled to be redrawn. | 89 // Invoked when a region of |window| has damage from a new delegated frame. |
| 90 virtual void OnWindowPaintScheduled(Window* window, | 90 virtual void OnDelegatedFrameDamage(Window* window, |
| 91 const gfx::Rect& region) {} | 91 const gfx::Rect& damage_rect_in_dip) {} |
| 92 | 92 |
| 93 // Invoked when the Window is being destroyed (i.e. from the start of its | 93 // 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. | 94 // destructor). This is called before the window is removed from its parent. |
| 95 virtual void OnWindowDestroying(Window* window) {} | 95 virtual void OnWindowDestroying(Window* window) {} |
| 96 | 96 |
| 97 // Invoked when the Window has been destroyed (i.e. at the end of | 97 // Invoked when the Window has been destroyed (i.e. at the end of |
| 98 // its destructor). This is called after the window is removed from | 98 // its destructor). This is called after the window is removed from |
| 99 // its parent. Window automatically removes its WindowObservers | 99 // its parent. Window automatically removes its WindowObservers |
| 100 // before calling this method, so the following code is no op. | 100 // before calling this method, so the following code is no op. |
| 101 // | 101 // |
| (...skipping 29 matching lines...) Expand all Loading... |
| 131 // Tracks the number of windows being observed to track down | 131 // Tracks the number of windows being observed to track down |
| 132 // http://crbug.com/365364. | 132 // http://crbug.com/365364. |
| 133 int observing_; | 133 int observing_; |
| 134 | 134 |
| 135 DISALLOW_COPY_AND_ASSIGN(WindowObserver); | 135 DISALLOW_COPY_AND_ASSIGN(WindowObserver); |
| 136 }; | 136 }; |
| 137 | 137 |
| 138 } // namespace aura | 138 } // namespace aura |
| 139 | 139 |
| 140 #endif // UI_AURA_WINDOW_OBSERVER_H_ | 140 #endif // UI_AURA_WINDOW_OBSERVER_H_ |
| OLD | NEW |