diff options
author | skuhne@chromium.org <skuhne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-14 23:33:43 +0000 |
---|---|---|
committer | skuhne@chromium.org <skuhne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-14 23:33:43 +0000 |
commit | 145d67fc623f958ff07b1f40e9208ba8f0757b0a (patch) | |
tree | 41bde91b870b7bf2d81d2322c758632fc28b1478 /ash/wm/maximize_bubble_controller.h | |
parent | 708d0cce7d55778a3527c6c6ea60ebaac1d6ec10 (diff) | |
download | chromium_src-145d67fc623f958ff07b1f40e9208ba8f0757b0a.zip chromium_src-145d67fc623f958ff07b1f40e9208ba8f0757b0a.tar.gz chromium_src-145d67fc623f958ff07b1f40e9208ba8f0757b0a.tar.bz2 |
Adding unit tests for maximize menu
BUG=141635
TEST=Unittest
Review URL: https://chromiumcodereview.appspot.com/10825327
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151604 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/wm/maximize_bubble_controller.h')
-rw-r--r-- | ash/wm/maximize_bubble_controller.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/ash/wm/maximize_bubble_controller.h b/ash/wm/maximize_bubble_controller.h index 5712a3c..ab9083d 100644 --- a/ash/wm/maximize_bubble_controller.h +++ b/ash/wm/maximize_bubble_controller.h @@ -9,12 +9,16 @@ #include "ash/wm/workspace/snap_types.h" #include "base/memory/scoped_ptr.h" +namespace aura { +class Window; +} + namespace base { class Timer; } -namespace aura { -class Window; +namespace views { +class CustomButton; } namespace ash { @@ -27,7 +31,8 @@ class ASH_EXPORT MaximizeBubbleController { class Bubble; MaximizeBubbleController(FrameMaximizeButton* frame_maximize_button, - bool is_maximized); + bool is_maximized, + 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). virtual ~MaximizeBubbleController(); @@ -58,6 +63,10 @@ class ASH_EXPORT MaximizeBubbleController { // The status of the associated window: Maximized or normal. bool is_maximized() const { return is_maximized_; } + // A unit test function to return buttons of the sub menu. |state| can be + // either SNAP_LEFT, SNAP_RIGHT or SNAP_MINIMIZE. + views::CustomButton* GetButtonForUnitTest(SnapType state); + protected: // Called from the the Bubble class to destroy itself: It tells the owning // object that it will destroy itself asynchronously. The owner will then @@ -80,6 +89,9 @@ class ASH_EXPORT MaximizeBubbleController { // The timer for the delayed creation of the menu. scoped_ptr<base::Timer> timer_; + // The appearance delay in ms (delay and fade in & fade out delay). + const int appearance_delay_ms_; + DISALLOW_COPY_AND_ASSIGN(MaximizeBubbleController); }; |