Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: ash/wm/workspace/frame_maximize_button.h

Issue 11280290: events: Change gesture-event handler in EventHandler to not return any values. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/wm/user_activity_detector_unittest.cc ('k') | ash/wm/workspace/frame_maximize_button.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « ash/wm/user_activity_detector_unittest.cc ('k') | ash/wm/workspace/frame_maximize_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698