diff options
Diffstat (limited to 'WebCore')
-rw-r--r-- | WebCore/bindings/v8/custom/V8EventCustom.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/WebCore/bindings/v8/custom/V8EventCustom.cpp b/WebCore/bindings/v8/custom/V8EventCustom.cpp index a13603e..2a5049b 100644 --- a/WebCore/bindings/v8/custom/V8EventCustom.cpp +++ b/WebCore/bindings/v8/custom/V8EventCustom.cpp @@ -51,6 +51,7 @@ #include "V8SVGZoomEvent.h" #include "V8StorageEvent.h" #include "V8TextEvent.h" +#include "V8TouchEvent.h" #include "V8UIEvent.h" #include "V8WebKitAnimationEvent.h" #include "V8WebKitTransitionEvent.h" @@ -104,6 +105,13 @@ v8::Handle<v8::Value> toV8(Event* impl) #endif if (impl->isCompositionEvent()) return toV8(static_cast<CompositionEvent*>(impl)); +#if PLATFORM(ANDROID) +// TODO(benm): upstream this to webkit.org +#if ENABLE(TOUCH_EVENTS) + if (impl->isTouchEvent()) + return toV8(static_cast<TouchEvent*>(impl)); +#endif +#endif return toV8(static_cast<UIEvent*>(impl)); } if (impl->isMutationEvent()) |