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

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: Added a comment 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|
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
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_
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