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 5d6f69b1877a26388313caddc828ff9ca735cfe9..afcd07148fae79b165c4a5dda63ae35d61069727 100644 |
--- a/ash/wm/workspace/frame_maximize_button.h |
+++ b/ash/wm/workspace/frame_maximize_button.h |
@@ -63,6 +63,17 @@ class ASH_EXPORT FrameMaximizeButton : public views::ImageButton, |
virtual ui::GestureStatus OnGestureEvent( |
const views::GestureEvent& event) OVERRIDE; |
+ // 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; |
+ } |
+ |
+ // Unit test accessor for the maximize bubble. |
+ MaximizeBubbleController* maximizer() { return maximizer_.get(); } |
+ |
+ // Unit test to see if phantom window is open. |
+ bool phantom_window_open() { return phantom_window_.get() != NULL; } |
+ |
private: |
class EscapeEventFilter; |
@@ -136,6 +147,9 @@ class ASH_EXPORT FrameMaximizeButton : public views::ImageButton, |
scoped_ptr<MaximizeBubbleController> maximizer_; |
+ // The delay of the bubble appearance. |
+ int bubble_appearance_delay_ms_; |
+ |
DISALLOW_COPY_AND_ASSIGN(FrameMaximizeButton); |
}; |