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

Unified Diff: ash/wm/workspace/phantom_window_controller.h

Issue 10823025: Adding new maximize menu according to spec (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Found some edge cases for menu destruction Created 8 years, 5 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: ash/wm/workspace/phantom_window_controller.h
diff --git a/ash/wm/workspace/phantom_window_controller.h b/ash/wm/workspace/phantom_window_controller.h
index 5510fc262bd6c71c70a1340d4f9348d422e0616f..6790fa60dc8cb278209cf0329bd08304f86056cd 100644
--- a/ash/wm/workspace/phantom_window_controller.h
+++ b/ash/wm/workspace/phantom_window_controller.h
@@ -50,6 +50,12 @@ class ASH_EXPORT PhantomWindowController : public ui::AnimationDelegate {
// Returns true if the phantom is showing.
bool IsShowing() const;
+ // Stack the phantom window above the given window upon creation, but below
sky 2012/07/31 16:11:06 How about: If set the phantom window is stacked be
Mr4D (OOO till 08-26) 2012/08/01 20:48:22 Done.
+ // this one.
+ void set_phantom_below_window(aura::Window* phantom_below_window) {
+ phantom_below_window_ = phantom_below_window;
+ }
+
// ui::AnimationDelegate overrides:
virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE;
@@ -60,6 +66,9 @@ class ASH_EXPORT PhantomWindowController : public ui::AnimationDelegate {
// Window the phantom is placed beneath.
aura::Window* window_;
+ // If set, the phantom window should get stacked below this window.
+ aura::Window* phantom_below_window_;
+
// Initially the bounds of |window_|. Each time Show() is invoked
// |start_bounds_| is then reset to the bounds of |phantom_widget_| and
// |bounds_| is set to the value passed into Show(). The animation animates

Powered by Google App Engine
This is Rietveld 408576698