| Index: third_party/WebKit/Source/web/WebInputEventConversion.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebInputEventConversion.cpp b/third_party/WebKit/Source/web/WebInputEventConversion.cpp
|
| index 96061fa86542a3ec8d4c6b69a52ecbc6c3c6c8d9..0f70d98234bc3f5bf94bce029b191efee363c2a0 100644
|
| --- a/third_party/WebKit/Source/web/WebInputEventConversion.cpp
|
| +++ b/third_party/WebKit/Source/web/WebInputEventConversion.cpp
|
| @@ -254,6 +254,16 @@ PlatformGestureEventBuilder::PlatformGestureEventBuilder(Widget* widget, const W
|
| m_globalPosition = IntPoint(e.globalX, e.globalY);
|
| m_timestamp = e.timeStampSeconds;
|
| m_modifiers = e.modifiers;
|
| + switch (e.sourceDevice) {
|
| + case WebGestureDeviceUninitialized:
|
| + m_source = PlatformGestureSourceUninitialized;
|
| + break;
|
| + case WebGestureDeviceTouchpad:
|
| + m_source = PlatformGestureSourceTouchpad;
|
| + break;
|
| + case WebGestureDeviceTouchscreen:
|
| + m_source = PlatformGestureSourceTouchscreen;
|
| + }
|
| }
|
|
|
| // MakePlatformKeyboardEvent --------------------------------------------------
|
| @@ -704,6 +714,17 @@ WebGestureEventBuilder::WebGestureEventBuilder(const LayoutObject* layoutObject,
|
| IntPoint localPoint = convertAbsoluteLocationForLayoutObject(event.absoluteLocation(), *layoutObject);
|
| x = localPoint.x();
|
| y = localPoint.y();
|
| +
|
| + switch (event.source()) {
|
| + case GestureSourceUninitialized:
|
| + sourceDevice = WebGestureDeviceUninitialized;
|
| + break;
|
| + case GestureSourceTouchpad:
|
| + sourceDevice = WebGestureDeviceTouchpad;
|
| + break;
|
| + case GestureSourceTouchscreen:
|
| + sourceDevice = WebGestureDeviceTouchscreen;
|
| + }
|
| }
|
|
|
| } // namespace blink
|
|
|