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

Unified Diff: chrome/browser/ui/views/frame/browser_non_client_frame_view_aura.h

Issue 9958039: Changes the maximize button to only minimize for panels. This resulted (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Spelling 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
diff --git a/chrome/browser/ui/views/frame/browser_non_client_frame_view_aura.h b/chrome/browser/ui/views/frame/browser_non_client_frame_view_aura.h
index 22aed4e80369077f68aafd2f265c3ecd3dc58389..e03c78a91d59e898e93aa7c6d3f102e1d094f4b1 100644
--- a/chrome/browser/ui/views/frame/browser_non_client_frame_view_aura.h
+++ b/chrome/browser/ui/views/frame/browser_non_client_frame_view_aura.h
@@ -81,8 +81,9 @@ class BrowserNonClientFrameViewAura : public BrowserNonClientFrameView,
// 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 @@ class BrowserNonClientFrameViewAura : public BrowserNonClientFrameView,
// 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);
};

Powered by Google App Engine
This is Rietveld 408576698