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

Unified Diff: Source/core/events/GestureEvent.h

Issue 1308313005: Modify gesture event types for WebView-tag scroll bubbling. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add comment to explain |resendingPluginId|. Created 5 years, 3 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 | « Source/core/events/EventTypeNames.in ('k') | Source/core/events/GestureEvent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/GestureEvent.h
diff --git a/Source/core/events/GestureEvent.h b/Source/core/events/GestureEvent.h
index b12d217c489d1b67bdaeed0f7077645d759d3016..fe110b7ec1e6ce272707fbd2309a09b1f7bca51b 100644
--- a/Source/core/events/GestureEvent.h
+++ b/Source/core/events/GestureEvent.h
@@ -45,6 +45,11 @@ public:
float deltaX() const { return m_deltaX; }
float deltaY() const { return m_deltaY; }
+ float velocityX() const { return m_velocityX; }
+ float velocityY() const { return m_velocityY; }
+ bool inertial() const { return m_inertial; }
+
+ int resendingPluginId() const { return m_resendingPluginId; }
PassRefPtrWillBeRawPtr<EventDispatchMediator> createMediator() override;
@@ -52,10 +57,15 @@ public:
private:
GestureEvent();
- GestureEvent(const AtomicString& type, PassRefPtrWillBeRawPtr<AbstractView>, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, float deltaX, float deltaY, double uiTimeStamp);
+ GestureEvent(const AtomicString& type, PassRefPtrWillBeRawPtr<AbstractView>, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, float deltaX, float deltaY, float velocityX, float velocityY, bool inertial, double uiTimeStamp, int resendingPluginId);
float m_deltaX;
float m_deltaY;
+ float m_velocityX;
+ float m_velocityY;
+ bool m_inertial;
+
+ int m_resendingPluginId;
};
class GestureEventDispatchMediator final : public EventDispatchMediator {
« no previous file with comments | « Source/core/events/EventTypeNames.in ('k') | Source/core/events/GestureEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698