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

Unified Diff: ui/views/events/event.h

Issue 10826209: gestures: Generate only either scroll-end or fling-start events at the end of a scroll gesture. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win-fix 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
Index: ui/views/events/event.h
diff --git a/ui/views/events/event.h b/ui/views/events/event.h
index 433d5cfd74c9ece7d8cd5e507db4a95ea383d53b..22572527694bddbe8bea7b6e70d96051de45696a 100644
--- a/ui/views/events/event.h
+++ b/ui/views/events/event.h
@@ -94,6 +94,11 @@ class VIEWS_EXPORT Event {
type_ == ui::ET_GESTURE_SCROLL_END;
}
+ bool IsFlingScrollEvent() const {
+ return type_ == ui::ET_SCROLL_FLING_CANCEL ||
+ type_ == ui::ET_SCROLL_FLING_START;
+ }
+
protected:
Event(ui::EventType type, int flags);
Event(const NativeEvent& native_event, ui::EventType type, int flags);

Powered by Google App Engine
This is Rietveld 408576698