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

Unified Diff: ash/wm/workspace/frame_maximize_button.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: 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 9041a9b3983bad3b26d005400e239dd2d341570e..5f42b01b9f43154cecbfdda06397e921c671db37 100644
--- a/ash/wm/workspace/frame_maximize_button.h
+++ b/ash/wm/workspace/frame_maximize_button.h
@@ -6,6 +6,7 @@
#define ASH_WM_WORKSPACE_FRAME_MAXIMIZE_BUTTON_H_
#include "ash/ash_export.h"
+#include "ash/wm/workspace/maximize_types.h"
#include "ash/wm/workspace/snap_types.h"
#include "base/memory/scoped_ptr.h"
#include "base/timer.h"
@@ -63,6 +64,10 @@ class ASH_EXPORT FrameMaximizeButton : public views::ImageButton,
virtual ui::GestureStatus OnGestureEvent(
const ui::GestureEvent& event) OVERRIDE;
+ // Toggles between maximize and restore. Note: After this call this object
+ // can be destroyed.
+ void ToggleMaximize();
sky 2012/08/27 22:18:16 ToggleMaximized
Mr4D (OOO till 08-26) 2012/08/28 01:30:25 Done.
+
// Unit test overwrite: Change the UI delay used for the bubble show up.
void set_bubble_appearance_delay_ms(int bubble_appearance_delay_ms) {
bubble_appearance_delay_ms_ = bubble_appearance_delay_ms;
@@ -117,6 +122,12 @@ class ASH_EXPORT FrameMaximizeButton : public views::ImageButton,
// Snaps the window to the current snap position.
void Snap(const internal::SnapSizer& snap_sizer);
+ // Determine the maximize type of this window.
+ MaximizeType GetMaximizeType() const;
+
+ // Maximizes the Window.
+ void Maximize();
+
// Frame that the maximize button acts on.
views::NonClientFrameView* frame_;

Powered by Google App Engine
This is Rietveld 408576698