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

Side by Side Diff: ui/views/controls/scroll_view.h

Issue 10825254: Remove views::KeyEvent, replacing uses of it with ui::KeyEvent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 | « 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 // Returns the amount to scroll relative to the visible bounds. This invokes 66 // Returns the amount to scroll relative to the visible bounds. This invokes
67 // either GetPageScrollIncrement or GetLineScrollIncrement to determine the 67 // either GetPageScrollIncrement or GetLineScrollIncrement to determine the
68 // amount to scroll. If the view returns 0 (or a negative value) a default 68 // amount to scroll. If the view returns 0 (or a negative value) a default
69 // value is used. 69 // value is used.
70 virtual int GetScrollIncrement(ScrollBar* source, 70 virtual int GetScrollIncrement(ScrollBar* source,
71 bool is_page, 71 bool is_page,
72 bool is_positive) OVERRIDE; 72 bool is_positive) OVERRIDE;
73 73
74 // Keyboard events 74 // Keyboard events
75 virtual bool OnKeyPressed(const KeyEvent& event) OVERRIDE; 75 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE;
76 virtual ui::GestureStatus OnGestureEvent(const GestureEvent& event) OVERRIDE; 76 virtual ui::GestureStatus OnGestureEvent(const GestureEvent& event) OVERRIDE;
77 virtual bool OnMouseWheel(const MouseWheelEvent& e) OVERRIDE; 77 virtual bool OnMouseWheel(const MouseWheelEvent& e) OVERRIDE;
78 78
79 virtual std::string GetClassName() const OVERRIDE; 79 virtual std::string GetClassName() const OVERRIDE;
80 80
81 // Retrieves the vertical scrollbar width. 81 // Retrieves the vertical scrollbar width.
82 int GetScrollBarWidth() const; 82 int GetScrollBarWidth() const;
83 83
84 // Retrieves the horizontal scrollbar height. 84 // Retrieves the horizontal scrollbar height.
85 int GetScrollBarHeight() const; 85 int GetScrollBarHeight() const;
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 private: 198 private:
199 int top_margin_; 199 int top_margin_;
200 int row_height_; 200 int row_height_;
201 201
202 DISALLOW_COPY_AND_ASSIGN(FixedRowHeightScrollHelper); 202 DISALLOW_COPY_AND_ASSIGN(FixedRowHeightScrollHelper);
203 }; 203 };
204 204
205 } // namespace views 205 } // namespace views
206 206
207 #endif // UI_VIEWS_CONTROLS_SCROLL_VIEW_H_ 207 #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