summaryrefslogtreecommitdiffstats
path: root/WebCore/bindings/v8
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2010-02-16 14:06:01 +0000
committerBen Murdoch <benm@google.com>2010-02-16 14:21:22 +0000
commit1f60005350357f5b696dc1bf5343fd2d7d90ff72 (patch)
treea2ce407c5bed92ca5f9ca5b1e9665fd3ac10e194 /WebCore/bindings/v8
parentbf14be70295513b8076f3fa47a268a7e42b2c478 (diff)
downloadexternal_webkit-1f60005350357f5b696dc1bf5343fd2d7d90ff72.zip
external_webkit-1f60005350357f5b696dc1bf5343fd2d7d90ff72.tar.gz
external_webkit-1f60005350357f5b696dc1bf5343fd2d7d90ff72.tar.bz2
Add toV8 conversion for touch event type.
Change-Id: I91cd4224ee4df8de105dca179b42ee1428ab288d
Diffstat (limited to 'WebCore/bindings/v8')
-rw-r--r--WebCore/bindings/v8/custom/V8EventCustom.cpp8
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())