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

Unified Diff: ash/wm/workspace/frame_maximize_button.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: ash/wm/workspace/frame_maximize_button.h
diff --git a/ash/wm/workspace/frame_maximize_button.h b/ash/wm/workspace/frame_maximize_button.h
index 04892b89c3cad999a1045b680ff3c7da90dd7d0e..99e12f4f37ef269998e5f970e96bdda0acc68a43 100644
--- a/ash/wm/workspace/frame_maximize_button.h
+++ b/ash/wm/workspace/frame_maximize_button.h
@@ -36,11 +36,6 @@ class ASH_EXPORT FrameMaximizeButton : public views::ImageButton {
virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE;
virtual void OnMouseCaptureLost() OVERRIDE;
- // Sets is_left_right_enabled_ and updates tooltip.
- void SetIsLeftRightEnabled(bool e);
-
- void set_is_maximize_enabled(bool e) { is_maximize_enabled_ = e; }
-
protected:
// ImageButton overrides:
virtual SkBitmap GetImageToPaint() OVERRIDE;
@@ -72,9 +67,6 @@ class ASH_EXPORT FrameMaximizeButton : public views::ImageButton {
// Updates |snap_type_| based on a mouse drag.
void UpdateSnap(const gfx::Point& location);
- // Returns true if maximizing is allowed.
- bool AllowMaximize() const;
-
// Returns the type of snap based on the specified location.
SnapType SnapTypeForLocation(const gfx::Point& location) const;
@@ -98,10 +90,6 @@ class ASH_EXPORT FrameMaximizeButton : public views::ImageButton {
// should show the snap locations.
bool is_snap_enabled_;
- // Selectively enable/disable button functionality.
- bool is_left_right_enabled_;
- bool is_maximize_enabled_;
-
// Did the user drag far enough to trigger snapping?
bool exceeded_drag_threshold_;

Powered by Google App Engine
This is Rietveld 408576698