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

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

Issue 1403893003: Plumb gesture source value through Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Convert more tests (related to CL) to use Touchscreen. Created 5 years, 2 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: third_party/WebKit/Source/core/events/GestureEvent.h
diff --git a/third_party/WebKit/Source/core/events/GestureEvent.h b/third_party/WebKit/Source/core/events/GestureEvent.h
index f45a6e22505414d406798a388ec7b770cc12f6cb..767aa2a4044537ce1d0dee7e482e2fd476d98595 100644
--- a/third_party/WebKit/Source/core/events/GestureEvent.h
+++ b/third_party/WebKit/Source/core/events/GestureEvent.h
@@ -33,6 +33,12 @@
namespace blink {
+enum GestureSource {
+ GestureSourceUninitialized,
+ GestureSourceTouchpad,
+ GestureSourceTouchscreen
+};
+
class CORE_EXPORT GestureEvent final : public MouseRelatedEvent {
public:
~GestureEvent() override { }
@@ -49,6 +55,7 @@ public:
float velocityY() const { return m_velocityY; }
bool inertial() const { return m_inertial; }
+ GestureSource source() const { return m_source; }
int resendingPluginId() const { return m_resendingPluginId; }
PassRefPtrWillBeRawPtr<EventDispatchMediator> createMediator() override;
@@ -57,7 +64,7 @@ public:
private:
GestureEvent();
- GestureEvent(const AtomicString& type, PassRefPtrWillBeRawPtr<AbstractView>, int screenX, int screenY, int clientX, int clientY, PlatformEvent::Modifiers, float deltaX, float deltaY, float velocityX, float velocityY, bool inertial, double uiTimeStamp, int resendingPluginId);
+ GestureEvent(const AtomicString& type, PassRefPtrWillBeRawPtr<AbstractView>, int screenX, int screenY, int clientX, int clientY, PlatformEvent::Modifiers, float deltaX, float deltaY, float velocityX, float velocityY, bool inertial, double uiTimeStamp, int resendingPluginId, GestureSource);
float m_deltaX;
float m_deltaY;
@@ -65,6 +72,7 @@ private:
float m_velocityY;
bool m_inertial;
+ GestureSource m_source;
int m_resendingPluginId;
};
« no previous file with comments | « content/renderer/input/input_handler_proxy_unittest.cc ('k') | third_party/WebKit/Source/core/events/GestureEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698