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

Unified Diff: ui/views/widget/root_view.cc

Issue 395563002: Make RootView::DispatchGestureEvent() non-virtual (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: static_cast encapsulated Created 6 years, 5 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
« ui/views/widget/root_view.h ('K') | « ui/views/widget/root_view.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/root_view.cc
diff --git a/ui/views/widget/root_view.cc b/ui/views/widget/root_view.cc
index c7166e22e8c2894df63cb278485413735bfd5a3f..5b196aa665cd6e71c632ff02715271180fad9e81 100644
--- a/ui/views/widget/root_view.cc
+++ b/ui/views/widget/root_view.cc
@@ -262,7 +262,7 @@ ui::EventDispatchDetails RootView::OnEventFromSource(ui::Event* event) {
else if (event->IsTouchEvent())
NOTREACHED() << "Touch events should not be sent to RootView.";
else if (event->IsGestureEvent())
- DispatchGestureEvent(static_cast<ui::GestureEvent*>(event));
+ DispatchGestureEvent(event->AsGestureEvent());
else if (event->IsMouseEvent())
NOTREACHED() << "Should not be called with a MouseEvent.";
else
« ui/views/widget/root_view.h ('K') | « ui/views/widget/root_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698