Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(372)

Side by Side Diff: ui/aura/window_observer.h

Issue 558203002: Propagate window transformed notification to child hierarchy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/aura/window.cc ('k') | ui/aura/window_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 being
86 // observed (including the window itself).
87 virtual void OnAncestorWindowTransformed(Window* source, Window* window) {}
88
85 // Invoked when |window|'s position among its siblings in the stacking order 89 // Invoked when |window|'s position among its siblings in the stacking order
86 // has changed. 90 // has changed.
87 virtual void OnWindowStackingChanged(Window* window) {} 91 virtual void OnWindowStackingChanged(Window* window) {}
88 92
89 // Invoked when a region of |window| has damage from a new delegated frame. 93 // Invoked when a region of |window| has damage from a new delegated frame.
90 virtual void OnDelegatedFrameDamage(Window* window, 94 virtual void OnDelegatedFrameDamage(Window* window,
91 const gfx::Rect& damage_rect_in_dip) {} 95 const gfx::Rect& damage_rect_in_dip) {}
92 96
93 // Invoked when the Window is being destroyed (i.e. from the start of its 97 // 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. 98 // destructor). This is called before the window is removed from its parent.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 // Tracks the number of windows being observed to track down 135 // Tracks the number of windows being observed to track down
132 // http://crbug.com/365364. 136 // http://crbug.com/365364.
133 int observing_; 137 int observing_;
134 138
135 DISALLOW_COPY_AND_ASSIGN(WindowObserver); 139 DISALLOW_COPY_AND_ASSIGN(WindowObserver);
136 }; 140 };
137 141
138 } // namespace aura 142 } // namespace aura
139 143
140 #endif // UI_AURA_WINDOW_OBSERVER_H_ 144 #endif // UI_AURA_WINDOW_OBSERVER_H_
OLDNEW
« no previous file with comments | « ui/aura/window.cc ('k') | ui/aura/window_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698