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

Unified Diff: ui/aura/window_delegate.h

Issue 12342028: make menus, bubbles, etc. top level windows on aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: ui/aura/window_delegate.h
diff --git a/ui/aura/window_delegate.h b/ui/aura/window_delegate.h
index bcbd2a6984ccc758c48607fc853f4b7fbc981402..70db9960cab451b85c031aedc9e1b6bd7d648950 100644
--- a/ui/aura/window_delegate.h
+++ b/ui/aura/window_delegate.h
@@ -39,6 +39,10 @@ class AURA_EXPORT WindowDelegate : public ui::EventHandler {
// Returns the window's maximum size, or size 0,0 if there is no limit.
virtual gfx::Size GetMaximumSize() const = 0;
+ // Ensure the host window is at least this large so that transitions have
+ // sufficient space.
+ virtual void SetHostTransitionBounds(const gfx::Rect& bounds) = 0;
+
// Called when the Window's position and/or size changes.
virtual void OnBoundsChanged(const gfx::Rect& old_bounds,
const gfx::Rect& new_bounds) = 0;
@@ -69,6 +73,9 @@ class AURA_EXPORT WindowDelegate : public ui::EventHandler {
// Called when the window's device scale factor has changed.
virtual void OnDeviceScaleFactorChanged(float device_scale_factor) = 0;
+ // Called after the window has faded out on a hide.
+ virtual void OnWindowHidingAnimationCompleted() = 0;
+
// Called from Window's destructor before OnWindowDestroyed and before the
// children have been destroyed and the window has been removed from its
// parent.

Powered by Google App Engine
This is Rietveld 408576698