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

Unified Diff: ui/views/widget/widget.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/widget/widget.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/widget.cc
===================================================================
--- ui/views/widget/widget.cc (revision 151481)
+++ ui/views/widget/widget.cc (working copy)
@@ -1105,10 +1105,10 @@
return false;
case ui::ET_MOUSEWHEEL:
return GetRootView()->OnMouseWheel(
- reinterpret_cast<const MouseWheelEvent&>(event));
+ reinterpret_cast<const ui::MouseWheelEvent&>(event));
case ui::ET_SCROLL:
return GetRootView()->OnScrollEvent(
- reinterpret_cast<const ScrollEvent&>(event));
+ reinterpret_cast<const ui::ScrollEvent&>(event));
default:
return false;
}
@@ -1122,12 +1122,12 @@
is_mouse_button_pressed_ = false;
}
-ui::TouchStatus Widget::OnTouchEvent(const TouchEvent& event) {
+ui::TouchStatus Widget::OnTouchEvent(const ui::TouchEvent& event) {
ScopedEvent scoped(this, event);
return GetRootView()->OnTouchEvent(event);
}
-ui::GestureStatus Widget::OnGestureEvent(const GestureEvent& event) {
+ui::GestureStatus Widget::OnGestureEvent(const ui::GestureEvent& event) {
ScopedEvent scoped(this, event);
switch (event.type()) {
case ui::ET_GESTURE_TAP_DOWN:
« no previous file with comments | « ui/views/widget/widget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698