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

Unified Diff: ui/views/controls/slider.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/controls/slider.h ('k') | ui/views/controls/table/table_view_views.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/slider.cc
===================================================================
--- ui/views/controls/slider.cc (revision 150588)
+++ ui/views/controls/slider.cc (working copy)
@@ -14,6 +14,7 @@
#include "third_party/skia/include/core/SkPaint.h"
#include "ui/base/accessibility/accessible_view_state.h"
#include "ui/base/animation/slide_animation.h"
+#include "ui/base/event.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/point.h"
@@ -239,7 +240,7 @@
listener_->SliderDragEnded(this);
}
-bool Slider::OnKeyPressed(const views::KeyEvent& event) {
+bool Slider::OnKeyPressed(const ui::KeyEvent& event) {
if (orientation_ == HORIZONTAL) {
if (event.key_code() == ui::VKEY_LEFT) {
SetValueInternal(value_ - keyboard_increment_, VALUE_CHANGED_BY_USER);
« no previous file with comments | « ui/views/controls/slider.h ('k') | ui/views/controls/table/table_view_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698