diff options
author | Ben Murdoch <benm@google.com> | 2010-02-16 15:39:31 +0000 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2010-02-18 12:32:09 +0000 |
commit | 605792ded8a6f75c07543f477e8724d187b34070 (patch) | |
tree | 5a71f4f9cf753141c6becd1479c95d06d1029525 /WebCore/bindings | |
parent | 2e837c8b6511f85209518f832e340662218eb3dc (diff) | |
download | external_webkit-605792ded8a6f75c07543f477e8724d187b34070.zip external_webkit-605792ded8a6f75c07543f477e8724d187b34070.tar.gz external_webkit-605792ded8a6f75c07543f477e8724d187b34070.tar.bz2 |
Update V8 Bindings for touch to match what's upstream, landed in http://trac.webkit.org.changeset/54950
Change-Id: I7da830fcd1d996a23e3f9ca61fa668a99ad80431
Diffstat (limited to 'WebCore/bindings')
-rw-r--r-- | WebCore/bindings/v8/DOMObjectsInclude.h | 12 | ||||
-rw-r--r-- | WebCore/bindings/v8/DerivedSourcesAllInOne.cpp | 3 | ||||
-rw-r--r-- | WebCore/bindings/v8/V8Index.h | 12 | ||||
-rw-r--r-- | WebCore/bindings/v8/custom/V8EventCustom.cpp | 3 |
4 files changed, 15 insertions, 15 deletions
diff --git a/WebCore/bindings/v8/DOMObjectsInclude.h b/WebCore/bindings/v8/DOMObjectsInclude.h index 8f1b43d..6cffa27 100644 --- a/WebCore/bindings/v8/DOMObjectsInclude.h +++ b/WebCore/bindings/v8/DOMObjectsInclude.h @@ -243,12 +243,6 @@ #if PLATFORM(ANDROID) #include "Connection.h" -// TODO: Upstream TOUCH_EVENTS guard. -#if ENABLE(TOUCH_EVENTS) -#include "Touch.h" -#include "TouchList.h" -#include "TouchEvent.h" -#endif #endif #if ENABLE(WEB_SOCKETS) @@ -292,6 +286,12 @@ #include "InspectorFrontendHost.h" #endif // INSPECTOR +#if ENABLE(TOUCH_EVENTS) +#include "Touch.h" +#include "TouchEvent.h" +#include "TouchList.h" +#endif + namespace WebCore { // A helper class for undetectable document.all diff --git a/WebCore/bindings/v8/DerivedSourcesAllInOne.cpp b/WebCore/bindings/v8/DerivedSourcesAllInOne.cpp index 9658b19..b626499 100644 --- a/WebCore/bindings/v8/DerivedSourcesAllInOne.cpp +++ b/WebCore/bindings/v8/DerivedSourcesAllInOne.cpp @@ -219,6 +219,9 @@ #include "bindings/V8TextEvent.cpp" #include "bindings/V8TextMetrics.cpp" #include "bindings/V8TimeRanges.cpp" +#include "bindings/V8Touch.cpp" +#include "bindings/V8TouchEvent.cpp" +#include "bindings/V8TouchList.cpp" #include "bindings/V8TreeWalker.cpp" #include "bindings/V8UIEvent.cpp" #include "bindings/V8ValidityState.cpp" diff --git a/WebCore/bindings/v8/V8Index.h b/WebCore/bindings/v8/V8Index.h index bd1c45c..e5521bb 100644 --- a/WebCore/bindings/v8/V8Index.h +++ b/WebCore/bindings/v8/V8Index.h @@ -526,24 +526,24 @@ static const int v8DefaultWrapperInternalFieldCount = 2; V(GEOPOSITION, Geoposition) \ V(POSITIONERROR, PositionError) -#if PLATFORM(ANDROID) -// TODO: Upstream this guard. #if ENABLE(TOUCH_EVENTS) #define DOM_OBJECT_TOUCH_EVENT_TYPES(V) \ - V(TOUCHLIST, TouchList) \ - V(TOUCHEVENT, TouchEvent) \ V(TOUCH, Touch) + V(TOUCHEVENT, TouchEvent) \ + V(TOUCHLIST, TouchList) \ #else #define DOM_OBJECT_TOUCH_EVENT_TYPES(V) #endif + +#if PLATFORM(ANDROID) #define DOM_OBJECT_CONNECTION_TYPES(V) \ V(CONNECTION, Connection) -#endif -#if PLATFORM(ANDROID) #define DOM_OBJECT_VOIDCALLBACK_TYPES(V) \ V(VOIDCALLBACK, VoidCallback) #else +// We don't plan to upstream CONNECTION as it's only temporary, so we +// don't need a default here. #define DOM_OBJECT_VOIDCALLBACK_TYPES(V) #endif diff --git a/WebCore/bindings/v8/custom/V8EventCustom.cpp b/WebCore/bindings/v8/custom/V8EventCustom.cpp index 2a5049b..79bddc0 100644 --- a/WebCore/bindings/v8/custom/V8EventCustom.cpp +++ b/WebCore/bindings/v8/custom/V8EventCustom.cpp @@ -105,13 +105,10 @@ 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()) |