| Index: Source/WebKit/chromium/src/WebInputEventConversion.cpp
|
| diff --git a/Source/WebKit/chromium/src/WebInputEventConversion.cpp b/Source/WebKit/chromium/src/WebInputEventConversion.cpp
|
| index 539c4be5eec1d36b2ed536159067f94602ea2325..33248f26bd69cb503677129b46391b038c3dfeed 100644
|
| --- a/Source/WebKit/chromium/src/WebInputEventConversion.cpp
|
| +++ b/Source/WebKit/chromium/src/WebInputEventConversion.cpp
|
| @@ -325,6 +325,7 @@ bool PlatformKeyboardEventBuilder::isCharacterKey() const
|
| return true;
|
| }
|
|
|
| +#if ENABLE(TOUCH_EVENTS)
|
| inline PlatformEvent::Type toPlatformTouchEventType(const WebInputEvent::Type type)
|
| {
|
| switch (type) {
|
| @@ -406,6 +407,7 @@ PlatformTouchEventBuilder::PlatformTouchEventBuilder(Widget* widget, const WebTo
|
| for (unsigned i = 0; i < event.touchesLength; ++i)
|
| m_touchPoints.append(PlatformTouchPointBuilder(widget, event.touches[i]));
|
| }
|
| +#endif
|
|
|
| static int getWebInputModifiers(const UIEventWithKeyState& event)
|
| {
|
| @@ -575,6 +577,8 @@ WebKeyboardEventBuilder::WebKeyboardEventBuilder(const KeyboardEvent& event)
|
| memcpy(keyIdentifier, event.keyIdentifier().ascii().data(), event.keyIdentifier().length());
|
| }
|
|
|
| +#if ENABLE(TOUCH_EVENTS)
|
| +
|
| static void addTouchPoints(const Widget* widget, const AtomicString& touchType, TouchList* touches, WebTouchPoint* touchPoints, unsigned* touchPointsLength, const WebCore::RenderObject* renderObject)
|
| {
|
| unsigned numberOfTouches = std::min(touches->length(), static_cast<unsigned>(WebTouchEvent::touchesLengthCap));
|
| @@ -620,6 +624,8 @@ WebTouchEventBuilder::WebTouchEventBuilder(const Widget* widget, const WebCore::
|
| addTouchPoints(widget, event.type(), event.targetTouches(), targetTouches, &targetTouchesLength, renderObject);
|
| }
|
|
|
| +#endif // ENABLE(TOUCH_EVENTS)
|
| +
|
| WebGestureEventBuilder::WebGestureEventBuilder(const Widget* widget, const WebCore::RenderObject* renderObject, const GestureEvent& event)
|
| {
|
| if (event.type() == eventNames().gesturetapEvent)
|
|
|