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

Side by Side Diff: ui/views/controls/scrollbar/base_scroll_bar.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 | « ui/views/controls/scroll_view.cc ('k') | ui/views/controls/scrollbar/base_scroll_bar.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 UI_VIEWS_CONTROLS_SCROLLBAR_BASE_SCROLL_BAR_H_ 5 #ifndef UI_VIEWS_CONTROLS_SCROLLBAR_BASE_SCROLL_BAR_H_
6 #define UI_VIEWS_CONTROLS_SCROLLBAR_BASE_SCROLL_BAR_H_ 6 #define UI_VIEWS_CONTROLS_SCROLLBAR_BASE_SCROLL_BAR_H_
7 7
8 #include "ui/views/animation/scroll_animator.h" 8 #include "ui/views/animation/scroll_animator.h"
9 #include "ui/views/context_menu_controller.h" 9 #include "ui/views/context_menu_controller.h"
10 #include "ui/views/controls/button/image_button.h" 10 #include "ui/views/controls/button/image_button.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // View overrides: 60 // View overrides:
61 virtual gfx::Size GetPreferredSize() OVERRIDE = 0; 61 virtual gfx::Size GetPreferredSize() OVERRIDE = 0;
62 virtual void Layout() OVERRIDE = 0; 62 virtual void Layout() OVERRIDE = 0;
63 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; 63 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE;
64 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; 64 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE;
65 virtual void OnMouseCaptureLost() OVERRIDE; 65 virtual void OnMouseCaptureLost() OVERRIDE;
66 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; 66 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE;
67 virtual bool OnMouseWheel(const ui::MouseWheelEvent& event) OVERRIDE; 67 virtual bool OnMouseWheel(const ui::MouseWheelEvent& event) OVERRIDE;
68 68
69 // ui::EventHandler overrides: 69 // ui::EventHandler overrides:
70 virtual ui::EventResult OnGestureEvent(ui::GestureEvent* event) OVERRIDE; 70 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE;
71 71
72 // ScrollBar overrides: 72 // ScrollBar overrides:
73 virtual void Update(int viewport_size, 73 virtual void Update(int viewport_size,
74 int content_size, 74 int content_size,
75 int contents_scroll_offset) OVERRIDE; 75 int contents_scroll_offset) OVERRIDE;
76 virtual int GetLayoutSize() const OVERRIDE = 0; 76 virtual int GetLayoutSize() const OVERRIDE = 0;
77 virtual int GetPosition() const OVERRIDE; 77 virtual int GetPosition() const OVERRIDE;
78 78
79 // ScrollDelegate overrides: 79 // ScrollDelegate overrides:
80 virtual void OnScroll(float dx, float dy) OVERRIDE; 80 virtual void OnScroll(float dx, float dy) OVERRIDE;
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 163
164 scoped_ptr<MenuRunner> menu_runner_; 164 scoped_ptr<MenuRunner> menu_runner_;
165 scoped_ptr<ScrollAnimator> scroll_animator_; 165 scoped_ptr<ScrollAnimator> scroll_animator_;
166 166
167 DISALLOW_COPY_AND_ASSIGN(BaseScrollBar); 167 DISALLOW_COPY_AND_ASSIGN(BaseScrollBar);
168 }; 168 };
169 169
170 } // namespace views 170 } // namespace views
171 171
172 #endif // UI_VIEWS_CONTROLS_SCROLLBAR_BASE_SCROLL_BAR_H_ 172 #endif // UI_VIEWS_CONTROLS_SCROLLBAR_BASE_SCROLL_BAR_H_
OLDNEW
« no previous file with comments | « ui/views/controls/scroll_view.cc ('k') | ui/views/controls/scrollbar/base_scroll_bar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698