diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-31 21:32:52 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-31 21:32:52 +0000 |
commit | d148d3b78afa7d5bb9c8f21f086b1d28fccb8d93 (patch) | |
tree | f659e47eabf9bccee3663e2c545cd17b242ffa11 /ash/wm/frame_painter.h | |
parent | 7e1117ccfd480267ebda3e64042f01c86e803cd8 (diff) | |
download | chromium_src-d148d3b78afa7d5bb9c8f21f086b1d28fccb8d93.zip chromium_src-d148d3b78afa7d5bb9c8f21f086b1d28fccb8d93.tar.gz chromium_src-d148d3b78afa7d5bb9c8f21f086b1d28fccb8d93.tar.bz2 |
Changes the maximize button to only minimize for panels. This resulted
in a slew of renaming. Currently the icons are completely wrong for
this, but that should be fixed once we get the assets.
BUG=121221
TEST=none
R=jamescook@chromium.org
Review URL: https://chromiumcodereview.appspot.com/9958039
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130064 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/wm/frame_painter.h')
-rw-r--r-- | ash/wm/frame_painter.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/ash/wm/frame_painter.h b/ash/wm/frame_painter.h index ca6b47b..ab22165 100644 --- a/ash/wm/frame_painter.h +++ b/ash/wm/frame_painter.h @@ -54,14 +54,21 @@ class ASH_EXPORT FramePainter : public aura::WindowObserver, INACTIVE }; + // What happens when the |size_button_| is pressed. + enum SizeButtonBehavior { + SIZE_BUTTON_MINIMIZES, + SIZE_BUTTON_MAXIMIZES + }; + FramePainter(); virtual ~FramePainter(); // |frame| and buttons are used for layout and are not owned. void Init(views::Widget* frame, views::View* window_icon, - views::ImageButton* maximize_button, - views::ImageButton* close_button); + views::ImageButton* size_button, + views::ImageButton* close_button, + SizeButtonBehavior behavior); // Helpers for views::NonClientFrameView implementations. gfx::Rect GetBoundsForClientView(int top_height, @@ -128,7 +135,7 @@ class ASH_EXPORT FramePainter : public aura::WindowObserver, // Not owned views::Widget* frame_; views::View* window_icon_; // May be NULL. - views::ImageButton* maximize_button_; + views::ImageButton* size_button_; views::ImageButton* close_button_; aura::Window* window_; @@ -151,6 +158,8 @@ class ASH_EXPORT FramePainter : public aura::WindowObserver, gfx::Rect header_frame_bounds_; scoped_ptr<ui::SlideAnimation> crossfade_animation_; + SizeButtonBehavior size_button_behavior_; + DISALLOW_COPY_AND_ASSIGN(FramePainter); }; |