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

Unified Diff: ash/wm/frame_painter.h

Issue 9956063: Merge 130064 - Changes the maximize button to only minimize for panels. This resulted (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1084/src/
Patch Set: Created 8 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
« no previous file with comments | « ash/wm/custom_frame_view_ash.cc ('k') | ash/wm/frame_painter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/frame_painter.h
===================================================================
--- ash/wm/frame_painter.h (revision 130125)
+++ ash/wm/frame_painter.h (working copy)
@@ -54,14 +54,21 @@
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 @@
// 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 @@
gfx::Rect header_frame_bounds_;
scoped_ptr<ui::SlideAnimation> crossfade_animation_;
+ SizeButtonBehavior size_button_behavior_;
+
DISALLOW_COPY_AND_ASSIGN(FramePainter);
};
« no previous file with comments | « ash/wm/custom_frame_view_ash.cc ('k') | ash/wm/frame_painter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698