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

Unified Diff: chrome/browser/ui/views/frame/browser_non_client_frame_view_aura.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
Index: chrome/browser/ui/views/frame/browser_non_client_frame_view_aura.h
===================================================================
--- chrome/browser/ui/views/frame/browser_non_client_frame_view_aura.h (revision 130125)
+++ chrome/browser/ui/views/frame/browser_non_client_frame_view_aura.h (working copy)
@@ -81,8 +81,9 @@
// theme image, or the bitmap for |fallback_bitmap_id| if not.
SkBitmap* GetCustomBitmap(int bitmap_id, int fallback_bitmap_id) const;
- // Window controls.
- views::ImageButton* maximize_button_;
+ // Window controls. The |size_button_| either toggles maximized or toggles
+ // minimized. The exact behavior is determined by |size_button_minimizes_|.
+ views::ImageButton* size_button_;
views::ImageButton* close_button_;
// For popups, the window icon.
@@ -91,6 +92,10 @@
// Painter for the frame header.
scoped_ptr<ash::FramePainter> frame_painter_;
+ // If true the |size_button_| minimizes, otherwise it toggles between
+ // maximized and restored.
+ bool size_button_minimizes_;
+
DISALLOW_COPY_AND_ASSIGN(BrowserNonClientFrameViewAura);
};
« no previous file with comments | « ash/wm/workspace/frame_maximize_button.cc ('k') | chrome/browser/ui/views/frame/browser_non_client_frame_view_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698