diff options
author | Feng Qian <fqian@google.com> | 2009-06-29 22:39:49 -0700 |
---|---|---|
committer | Feng Qian <fqian@google.com> | 2009-06-29 22:46:19 -0700 |
commit | 67bf3b454483a7d8c1636969f4bb26c90c1ca8a2 (patch) | |
tree | 4f27cc18297008b2716c5f66959dae49a4ffbb46 /V8Binding/binding | |
parent | 706f458abee90f0fbf6aaf234e85f7788ea3beac (diff) | |
download | external_webkit-67bf3b454483a7d8c1636969f4bb26c90c1ca8a2.zip external_webkit-67bf3b454483a7d8c1636969f4bb26c90c1ca8a2.tar.gz external_webkit-67bf3b454483a7d8c1636969f4bb26c90c1ca8a2.tar.bz2 |
Fix TouchEvent binding.
TouchEvent was treated as generic UIEvent, which does not have 'touches' property. That's why maps api demo does not work. This CL treats TouchEvent properly in the binding code.
Diffstat (limited to 'V8Binding/binding')
-rw-r--r-- | V8Binding/binding/v8_proxy.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/V8Binding/binding/v8_proxy.cpp b/V8Binding/binding/v8_proxy.cpp index c9e7058..c68837d 100644 --- a/V8Binding/binding/v8_proxy.cpp +++ b/V8Binding/binding/v8_proxy.cpp @@ -2952,6 +2952,10 @@ v8::Handle<v8::Value> V8Proxy::EventToV8Object(Event* event) type = V8ClassIndex::MOUSEEVENT; else if (event->isWheelEvent()) type = V8ClassIndex::WHEELEVENT; +#if PLATFORM(ANDROID) // ENABLE(TOUCH_EVENTS) + else if (event->isTouchEvent()) + type = V8ClassIndex::TOUCHEVENT; +#endif #if ENABLE(SVG) else if (event->isSVGZoomEvent()) type = V8ClassIndex::SVGZOOMEVENT; |