OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef ASH_WM_WORKSPACE_FRAME_MAXIMIZE_BUTTON_H_ | 5 #ifndef ASH_WM_WORKSPACE_FRAME_MAXIMIZE_BUTTON_H_ |
6 #define ASH_WM_WORKSPACE_FRAME_MAXIMIZE_BUTTON_H_ | 6 #define ASH_WM_WORKSPACE_FRAME_MAXIMIZE_BUTTON_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ash/wm/workspace/maximize_bubble_frame_state.h" | 9 #include "ash/wm/workspace/maximize_bubble_frame_state.h" |
10 #include "ash/wm/workspace/snap_types.h" | 10 #include "ash/wm/workspace/snap_types.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 59 |
60 // ImageButton overrides: | 60 // ImageButton overrides: |
61 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; | 61 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; |
62 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; | 62 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; |
63 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; | 63 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; |
64 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE; | 64 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE; |
65 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; | 65 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; |
66 virtual void OnMouseCaptureLost() OVERRIDE; | 66 virtual void OnMouseCaptureLost() OVERRIDE; |
67 | 67 |
68 // ui::EventHandler overrides: | 68 // ui::EventHandler overrides: |
69 virtual ui::EventResult OnGestureEvent(ui::GestureEvent* event) OVERRIDE; | 69 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; |
70 | 70 |
71 // Unit test overwrite: Change the UI delay used for the bubble show up. | 71 // Unit test overwrite: Change the UI delay used for the bubble show up. |
72 void set_bubble_appearance_delay_ms(int bubble_appearance_delay_ms) { | 72 void set_bubble_appearance_delay_ms(int bubble_appearance_delay_ms) { |
73 bubble_appearance_delay_ms_ = bubble_appearance_delay_ms; | 73 bubble_appearance_delay_ms_ = bubble_appearance_delay_ms; |
74 } | 74 } |
75 | 75 |
76 // Unit test accessor for the maximize bubble. | 76 // Unit test accessor for the maximize bubble. |
77 MaximizeBubbleController* maximizer() { return maximizer_.get(); } | 77 MaximizeBubbleController* maximizer() { return maximizer_.get(); } |
78 | 78 |
79 // Unit test to see if phantom window is open. | 79 // Unit test to see if phantom window is open. |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 | 164 |
165 // The delay of the bubble appearance. | 165 // The delay of the bubble appearance. |
166 int bubble_appearance_delay_ms_; | 166 int bubble_appearance_delay_ms_; |
167 | 167 |
168 DISALLOW_COPY_AND_ASSIGN(FrameMaximizeButton); | 168 DISALLOW_COPY_AND_ASSIGN(FrameMaximizeButton); |
169 }; | 169 }; |
170 | 170 |
171 } // namespace ash | 171 } // namespace ash |
172 | 172 |
173 #endif // ASH_WM_WORKSPACE_FRAME_MAXIMIZE_BUTTON_H_ | 173 #endif // ASH_WM_WORKSPACE_FRAME_MAXIMIZE_BUTTON_H_ |
OLD | NEW |