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

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: remove-webkit-hack 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/base/gestures/gesture_sequence.cc ('k') | ui/views/widget/root_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/events/event.h
diff --git a/ui/views/events/event.h b/ui/views/events/event.h
index 1a518d35be9a213a2ae99ac59d058de0bbedca48..931441d8ffe5d2c51d43b94c50bf30bbeaf75c2d 100644
--- a/ui/views/events/event.h
+++ b/ui/views/events/event.h
@@ -91,6 +91,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);
« no previous file with comments | « ui/base/gestures/gesture_sequence.cc ('k') | ui/views/widget/root_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698