| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; | 67 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; |
| 68 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; | 68 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; |
| 69 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; | 69 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; |
| 70 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE; | 70 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE; |
| 71 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; | 71 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; |
| 72 virtual void OnMouseCaptureLost() OVERRIDE; | 72 virtual void OnMouseCaptureLost() OVERRIDE; |
| 73 | 73 |
| 74 // ui::EventHandler overrides: | 74 // ui::EventHandler overrides: |
| 75 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; | 75 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; |
| 76 | 76 |
| 77 // views::View overwrite: |
| 78 virtual void SetVisible(bool visible) OVERRIDE; |
| 79 |
| 77 // Unit test overwrite: Change the UI delay used for the bubble show up. | 80 // Unit test overwrite: Change the UI delay used for the bubble show up. |
| 78 void set_bubble_appearance_delay_ms(int bubble_appearance_delay_ms) { | 81 void set_bubble_appearance_delay_ms(int bubble_appearance_delay_ms) { |
| 79 bubble_appearance_delay_ms_ = bubble_appearance_delay_ms; | 82 bubble_appearance_delay_ms_ = bubble_appearance_delay_ms; |
| 80 } | 83 } |
| 81 | 84 |
| 82 // Unit test accessor for the maximize bubble. | 85 // Unit test accessor for the maximize bubble. |
| 83 MaximizeBubbleController* maximizer() { return maximizer_.get(); } | 86 MaximizeBubbleController* maximizer() { return maximizer_.get(); } |
| 84 | 87 |
| 85 // Unit test to see if phantom window is open. | 88 // Unit test to see if phantom window is open. |
| 86 bool phantom_window_open() { return phantom_window_.get() != NULL; } | 89 bool phantom_window_open() { return phantom_window_.get() != NULL; } |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 | 174 |
| 172 // The delay of the bubble appearance. | 175 // The delay of the bubble appearance. |
| 173 int bubble_appearance_delay_ms_; | 176 int bubble_appearance_delay_ms_; |
| 174 | 177 |
| 175 DISALLOW_COPY_AND_ASSIGN(FrameMaximizeButton); | 178 DISALLOW_COPY_AND_ASSIGN(FrameMaximizeButton); |
| 176 }; | 179 }; |
| 177 | 180 |
| 178 } // namespace ash | 181 } // namespace ash |
| 179 | 182 |
| 180 #endif // ASH_WM_WORKSPACE_FRAME_MAXIMIZE_BUTTON_H_ | 183 #endif // ASH_WM_WORKSPACE_FRAME_MAXIMIZE_BUTTON_H_ |
| OLD | NEW |