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

Unified Diff: ui/events/event.h

Issue 395563002: Make RootView::DispatchGestureEvent() non-virtual (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed nit 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
« no previous file with comments | « chrome/browser/ui/views/frame/browser_root_view.cc ('k') | ui/events/event.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/event.h
diff --git a/ui/events/event.h b/ui/events/event.h
index 2988d471b11c1060fc2a49a896d672d52babce44..1119e36f41335aea2cbcbe95de30a3969881a851 100644
--- a/ui/events/event.h
+++ b/ui/events/event.h
@@ -184,6 +184,11 @@ class EVENTS_EXPORT Event {
return type_ == ET_MOUSEWHEEL;
}
+ // Convenience methods to cast |this| to a GestureEvent. IsGestureEvent()
+ // must be true as a precondition to calling these methods.
+ GestureEvent* AsGestureEvent();
+ const GestureEvent* AsGestureEvent() const;
+
// Returns true if the event has a valid |native_event_|.
bool HasNativeEvent() const;
« no previous file with comments | « chrome/browser/ui/views/frame/browser_root_view.cc ('k') | ui/events/event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698