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

Side by Side Diff: ash/launcher/launcher_view.h

Issue 10912063: events: Get rid of GestureStatus in favour of EventResult. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 3 months 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/launcher/launcher_tooltip_manager_unittest.cc ('k') | ash/launcher/launcher_view.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_LAUNCHER_LAUNCHER_VIEW_H_ 5 #ifndef ASH_LAUNCHER_LAUNCHER_VIEW_H_
6 #define ASH_LAUNCHER_LAUNCHER_VIEW_H_ 6 #define ASH_LAUNCHER_LAUNCHER_VIEW_H_
7 7
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 // Shows the overflow menu. 167 // Shows the overflow menu.
168 void ShowOverflowBubble(); 168 void ShowOverflowBubble();
169 169
170 // Update first launcher button's padding. This method adds padding to the 170 // Update first launcher button's padding. This method adds padding to the
171 // first button to include the leading inset. It needs to be called once on 171 // first button to include the leading inset. It needs to be called once on
172 // button creation and every time when shelf alignment is changed. 172 // button creation and every time when shelf alignment is changed.
173 void UpdateFirstButtonPadding(); 173 void UpdateFirstButtonPadding();
174 174
175 // Overridden from views::View: 175 // Overridden from views::View:
176 virtual gfx::Size GetPreferredSize() OVERRIDE; 176 virtual gfx::Size GetPreferredSize() OVERRIDE;
177 virtual ui::GestureStatus OnGestureEvent( 177 virtual ui::EventResult OnGestureEvent(
178 const ui::GestureEvent& event) OVERRIDE; 178 const ui::GestureEvent& event) OVERRIDE;
179 virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE; 179 virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE;
180 virtual FocusTraversable* GetPaneFocusTraversable() OVERRIDE; 180 virtual FocusTraversable* GetPaneFocusTraversable() OVERRIDE;
181 181
182 // Overridden from LauncherModelObserver: 182 // Overridden from LauncherModelObserver:
183 virtual void LauncherItemAdded(int model_index) OVERRIDE; 183 virtual void LauncherItemAdded(int model_index) OVERRIDE;
184 virtual void LauncherItemRemoved(int model_index, LauncherID id) OVERRIDE; 184 virtual void LauncherItemRemoved(int model_index, LauncherID id) OVERRIDE;
185 virtual void LauncherItemChanged(int model_index, 185 virtual void LauncherItemChanged(int model_index,
186 const ash::LauncherItem& old_item) OVERRIDE; 186 const ash::LauncherItem& old_item) OVERRIDE;
187 virtual void LauncherItemMoved(int start_index, int target_index) OVERRIDE; 187 virtual void LauncherItemMoved(int start_index, int target_index) OVERRIDE;
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 278
279 ShelfGestureHandler gesture_handler_; 279 ShelfGestureHandler gesture_handler_;
280 280
281 DISALLOW_COPY_AND_ASSIGN(LauncherView); 281 DISALLOW_COPY_AND_ASSIGN(LauncherView);
282 }; 282 };
283 283
284 } // namespace internal 284 } // namespace internal
285 } // namespace ash 285 } // namespace ash
286 286
287 #endif // ASH_LAUNCHER_LAUNCHER_VIEW_H_ 287 #endif // ASH_LAUNCHER_LAUNCHER_VIEW_H_
OLDNEW
« no previous file with comments | « ash/launcher/launcher_tooltip_manager_unittest.cc ('k') | ash/launcher/launcher_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698