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

Unified Diff: chrome/browser/ui/views/ash/browser_non_client_frame_view_ash.h

Issue 10883069: Added restore functionality for maximize full/left/right (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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/ash/browser_non_client_frame_view_ash.h
diff --git a/chrome/browser/ui/views/ash/browser_non_client_frame_view_ash.h b/chrome/browser/ui/views/ash/browser_non_client_frame_view_ash.h
index 90b3ef6feb7e4f27d4a9830b3dd59f7c695acaf3..fa591255e5533fa0a3b4f97d7f04c0d29b4e5c2e 100644
--- a/chrome/browser/ui/views/ash/browser_non_client_frame_view_ash.h
+++ b/chrome/browser/ui/views/ash/browser_non_client_frame_view_ash.h
@@ -17,6 +17,7 @@ class TabIconView;
namespace ash {
class FramePainter;
+class FrameMaximizeButton;
}
namespace views {
class ImageButton;
@@ -102,6 +103,9 @@ class BrowserNonClientFrameViewAsh
// minimized. The exact behavior is determined by |size_button_minimizes_|.
views::ImageButton* size_button_;
views::ImageButton* close_button_;
+ // If NULL the |size_button_| minimizes, otherwise this button should be
+ // used for state toggling.
+ ash::FrameMaximizeButton* maximize_button_;
// For popups, the window icon.
TabIconView* window_icon_;
@@ -109,10 +113,6 @@ class BrowserNonClientFrameViewAsh
// 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(BrowserNonClientFrameViewAsh);
};

Powered by Google App Engine
This is Rietveld 408576698