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

Unified Diff: ui/views/view.cc

Issue 10824295: Rid the world of the last of views::Event types: TouchEvent, GestureEvent, MouseWheelEvent, ScrollE… (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/view.h ('k') | ui/views/view_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/view.cc
===================================================================
--- ui/views/view.cc (revision 151481)
+++ ui/views/view.cc (working copy)
@@ -825,11 +825,11 @@
void View::OnMouseExited(const ui::MouseEvent& event) {
}
-ui::TouchStatus View::OnTouchEvent(const TouchEvent& event) {
+ui::TouchStatus View::OnTouchEvent(const ui::TouchEvent& event) {
return ui::TOUCH_STATUS_UNKNOWN;
}
-ui::GestureStatus View::OnGestureEvent(const GestureEvent& event) {
+ui::GestureStatus View::OnGestureEvent(const ui::GestureEvent& event) {
return ui::GESTURE_STATUS_UNKNOWN;
}
@@ -847,11 +847,11 @@
return false;
}
-bool View::OnMouseWheel(const MouseWheelEvent& event) {
+bool View::OnMouseWheel(const ui::MouseWheelEvent& event) {
return false;
}
-bool View::OnScrollEvent(const ScrollEvent& event) {
+bool View::OnScrollEvent(const ui::ScrollEvent& event) {
return false;
}
@@ -1014,17 +1014,17 @@
return false;
}
-void View::OnDragEntered(const DropTargetEvent& event) {
+void View::OnDragEntered(const ui::DropTargetEvent& event) {
}
-int View::OnDragUpdated(const DropTargetEvent& event) {
+int View::OnDragUpdated(const ui::DropTargetEvent& event) {
return ui::DragDropTypes::DRAG_NONE;
}
void View::OnDragExited() {
}
-int View::OnPerformDrop(const DropTargetEvent& event) {
+int View::OnPerformDrop(const ui::DropTargetEvent& event) {
return ui::DragDropTypes::DRAG_NONE;
}
@@ -1959,13 +1959,13 @@
// WARNING: we may have been deleted.
}
-ui::TouchStatus View::ProcessTouchEvent(const TouchEvent& event) {
+ui::TouchStatus View::ProcessTouchEvent(const ui::TouchEvent& event) {
// TODO(rjkroege): Implement a grab scheme similar to as as is found in
// MousePressed.
return OnTouchEvent(event);
}
-ui::GestureStatus View::ProcessGestureEvent(const GestureEvent& event) {
+ui::GestureStatus View::ProcessGestureEvent(const ui::GestureEvent& event) {
if (context_menu_controller_ &&
(event.type() == ui::ET_GESTURE_LONG_PRESS ||
event.type() == ui::ET_GESTURE_TWO_FINGER_TAP)) {
« no previous file with comments | « ui/views/view.h ('k') | ui/views/view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698