diff options
author | skuhne@chromium.org <skuhne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-30 19:27:24 +0000 |
---|---|---|
committer | skuhne@chromium.org <skuhne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-30 19:27:24 +0000 |
commit | 0383e464c9ebd06cf865f560cece048566d0aecb (patch) | |
tree | 2a0861a974a73f337dc34cb107ef980eea4ac865 /ash/wm/maximize_bubble_controller.h | |
parent | bf830c2a80551f5bfbe764e3a32c17580c8ff756 (diff) | |
download | chromium_src-0383e464c9ebd06cf865f560cece048566d0aecb.zip chromium_src-0383e464c9ebd06cf865f560cece048566d0aecb.tar.gz chromium_src-0383e464c9ebd06cf865f560cece048566d0aecb.tar.bz2 |
Added restore functionality for maximize full/left/right
BUG=141725
TEST=unit test
Review URL: https://chromiumcodereview.appspot.com/10883069
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154226 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/wm/maximize_bubble_controller.h')
-rw-r--r-- | ash/wm/maximize_bubble_controller.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ash/wm/maximize_bubble_controller.h b/ash/wm/maximize_bubble_controller.h index ab9083d..7328ea2 100644 --- a/ash/wm/maximize_bubble_controller.h +++ b/ash/wm/maximize_bubble_controller.h @@ -6,6 +6,7 @@ #define ASH_WM_MAXIMIZE_BUBBLE_CONTROLLER_H_ #include "ash/ash_export.h" +#include "ash/wm/workspace/maximize_bubble_frame_state.h" #include "ash/wm/workspace/snap_types.h" #include "base/memory/scoped_ptr.h" @@ -31,7 +32,7 @@ class ASH_EXPORT MaximizeBubbleController { class Bubble; MaximizeBubbleController(FrameMaximizeButton* frame_maximize_button, - bool is_maximized, + MaximizeBubbleFrameState maximize_type, int appearance_delay_ms); // Called from the outside to destroy the interface to the UI visuals. // The visuals will then delete when possible (maybe asynchronously). @@ -61,7 +62,7 @@ class ASH_EXPORT MaximizeBubbleController { } // The status of the associated window: Maximized or normal. - bool is_maximized() const { return is_maximized_; } + MaximizeBubbleFrameState maximize_type() const { return maximize_type_; } // A unit test function to return buttons of the sub menu. |state| can be // either SNAP_LEFT, SNAP_RIGHT or SNAP_MINIMIZE. @@ -83,8 +84,8 @@ class ASH_EXPORT MaximizeBubbleController { // The bubble menu. Bubble* bubble_; - // If true the owning window is maximized. - const bool is_maximized_; + // The current maximize state of the owning window. + const MaximizeBubbleFrameState maximize_type_; // The timer for the delayed creation of the menu. scoped_ptr<base::Timer> timer_; |