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

Side by Side Diff: ui/views/controls/scroll_view.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/menu/submenu_view.cc ('k') | ui/views/controls/scroll_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 UI_VIEWS_CONTROLS_SCROLL_VIEW_H_ 5 #ifndef UI_VIEWS_CONTROLS_SCROLL_VIEW_H_
6 #define UI_VIEWS_CONTROLS_SCROLL_VIEW_H_ 6 #define UI_VIEWS_CONTROLS_SCROLL_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // value is used. 72 // value is used.
73 virtual int GetScrollIncrement(ScrollBar* source, 73 virtual int GetScrollIncrement(ScrollBar* source,
74 bool is_page, 74 bool is_page,
75 bool is_positive) OVERRIDE; 75 bool is_positive) OVERRIDE;
76 76
77 // Keyboard events 77 // Keyboard events
78 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; 78 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE;
79 virtual bool OnMouseWheel(const ui::MouseWheelEvent& e) OVERRIDE; 79 virtual bool OnMouseWheel(const ui::MouseWheelEvent& e) OVERRIDE;
80 80
81 // Overridden from ui::EventHandler: 81 // Overridden from ui::EventHandler:
82 virtual ui::EventResult OnGestureEvent(ui::GestureEvent* event) OVERRIDE; 82 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE;
83 83
84 virtual std::string GetClassName() const OVERRIDE; 84 virtual std::string GetClassName() const OVERRIDE;
85 85
86 // Retrieves the vertical scrollbar width. 86 // Retrieves the vertical scrollbar width.
87 int GetScrollBarWidth() const; 87 int GetScrollBarWidth() const;
88 88
89 // Retrieves the horizontal scrollbar height. 89 // Retrieves the horizontal scrollbar height.
90 int GetScrollBarHeight() const; 90 int GetScrollBarHeight() const;
91 91
92 // Computes the visibility of both scrollbars, taking in account the view port 92 // Computes the visibility of both scrollbars, taking in account the view port
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 private: 203 private:
204 int top_margin_; 204 int top_margin_;
205 int row_height_; 205 int row_height_;
206 206
207 DISALLOW_COPY_AND_ASSIGN(FixedRowHeightScrollHelper); 207 DISALLOW_COPY_AND_ASSIGN(FixedRowHeightScrollHelper);
208 }; 208 };
209 209
210 } // namespace views 210 } // namespace views
211 211
212 #endif // UI_VIEWS_CONTROLS_SCROLL_VIEW_H_ 212 #endif // UI_VIEWS_CONTROLS_SCROLL_VIEW_H_
OLDNEW
« no previous file with comments | « ui/views/controls/menu/submenu_view.cc ('k') | ui/views/controls/scroll_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698