Changeset 59847 in webkit
- Timestamp:
- May 20, 2010 10:37:43 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 11 added
- 34 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r59820 r59847 1 2010-05-20 Steve Block <steveblock@google.com> 2 3 Reviewed by Jeremy Orlow. 4 5 Provide bindings for DeviceOrientation 6 https://bugs.webkit.org/show_bug.cgi?id=39210 7 8 Adds ENABLE_DEVICE_ORIENTATION to XCode project file, always disabled. 9 10 * Configurations/FeatureDefines.xcconfig: 11 1 12 2010-05-19 Gavin Barraclough <barraclough@apple.com> 2 13 -
trunk/JavaScriptCore/Configurations/FeatureDefines.xcconfig
r59174 r59847 48 48 ENABLE_DATAGRID = ; 49 49 ENABLE_DATALIST = ENABLE_DATALIST; 50 ENABLE_DEVICE_ORIENTATION = ; 50 51 ENABLE_DOM_STORAGE = ENABLE_DOM_STORAGE; 51 52 ENABLE_EVENTSOURCE = ENABLE_EVENTSOURCE; … … 79 80 ENABLE_XSLT = ENABLE_XSLT; 80 81 81 FEATURE_DEFINES = $(ENABLE_3D_CANVAS) $(ENABLE_3D_RENDERING) $(ENABLE_BLOB_SLICE) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CLIENT_BASED_GEOLOCATION) $(ENABLE_DATABASE) $(ENABLE_DATAGRID) $(ENABLE_DATALIST) $(ENABLE_D OM_STORAGE) $(ENABLE_EVENTSOURCE) $(ENABLE_FILTERS) $(ENABLE_FILE_READER) $(ENABLE_FILE_WRITER) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE) $(ENABLE_JAVASCRIPT_DEBUGGER) $(ENABLE_MATHML) $(ENABLE_NOTIFICATIONS) $(ENABLE_OFFLINE_WEB_APPLICATIONS) $(ENABLE_PROGRESS_TAG) $(ENABLE_RUBY) $(ENABLE_SANDBOX) $(ENABLE_SHARED_WORKERS) $(ENABLE_SVG) $(ENABLE_SVG_ANIMATION) $(ENABLE_SVG_AS_IMAGE) $(ENABLE_SVG_DOM_OBJC_BINDINGS) $(ENABLE_SVG_FONTS) $(ENABLE_SVG_FOREIGN_OBJECT) $(ENABLE_SVG_USE) $(ENABLE_VIDEO) $(ENABLE_WEB_SOCKETS) $(ENABLE_WML) $(ENABLE_WORKERS) $(ENABLE_XHTMLMP) $(ENABLE_XPATH) $(ENABLE_XSLT);82 FEATURE_DEFINES = $(ENABLE_3D_CANVAS) $(ENABLE_3D_RENDERING) $(ENABLE_BLOB_SLICE) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CLIENT_BASED_GEOLOCATION) $(ENABLE_DATABASE) $(ENABLE_DATAGRID) $(ENABLE_DATALIST) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DOM_STORAGE) $(ENABLE_EVENTSOURCE) $(ENABLE_FILTERS) $(ENABLE_FILE_READER) $(ENABLE_FILE_WRITER) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE) $(ENABLE_JAVASCRIPT_DEBUGGER) $(ENABLE_MATHML) $(ENABLE_NOTIFICATIONS) $(ENABLE_OFFLINE_WEB_APPLICATIONS) $(ENABLE_PROGRESS_TAG) $(ENABLE_RUBY) $(ENABLE_SANDBOX) $(ENABLE_SHARED_WORKERS) $(ENABLE_SVG) $(ENABLE_SVG_ANIMATION) $(ENABLE_SVG_AS_IMAGE) $(ENABLE_SVG_DOM_OBJC_BINDINGS) $(ENABLE_SVG_FONTS) $(ENABLE_SVG_FOREIGN_OBJECT) $(ENABLE_SVG_USE) $(ENABLE_VIDEO) $(ENABLE_WEB_SOCKETS) $(ENABLE_WML) $(ENABLE_WORKERS) $(ENABLE_XHTMLMP) $(ENABLE_XPATH) $(ENABLE_XSLT); -
trunk/LayoutTests/ChangeLog
r59840 r59847 1 2010-05-20 Steve Block <steveblock@google.com> 2 3 Reviewed by Jeremy Orlow. 4 5 Provide bindings for DeviceOrientation 6 https://bugs.webkit.org/show_bug.cgi?id=39210 7 8 Modifies existing fast/dom/Window tests to skip window.ondeviceorientation until 9 it is widely supported. 10 Adds new fast/dom/Window/window-properties-on-device-orientation.html to test 11 type and presence of window.ondeviceorientation. 12 Adds new fast/dom/DeviceOrientation directory and initial test. 13 Adds all DeviceOrientation tests to all skipped lists. 14 15 * fast/dom/DeviceOrientation: Added. 16 * fast/dom/DeviceOrientation/script-tests: Added. 17 * fast/dom/DeviceOrientation/script-tests/TEMPLATE.html: Added. 18 * fast/dom/DeviceOrientation/script-tests/window-property.js: Added. 19 (hasOnDeviceOrientationProperty): 20 * fast/dom/DeviceOrientation/window-property-expected.txt: Added. 21 * fast/dom/DeviceOrientation/window-property.html: Added. 22 * fast/dom/Window/script-tests/window-property-descriptors.js: 23 * fast/dom/Window/window-properties-on-device-orientation-expected.txt: Added. 24 * fast/dom/Window/window-properties-on-device-orientation.html: Added. 25 * fast/dom/Window/window-properties.html: 26 * platform/chromium/test_expectations.txt: 27 * platform/gtk/Skipped: 28 * platform/mac/Skipped: 29 * platform/qt/Skipped: 30 * platform/win/Skipped: 31 1 32 2010-05-20 Martin Robinson <mrobinson@webkit.org> 2 33 -
trunk/LayoutTests/fast/dom/Window/script-tests/window-property-descriptors.js
r59388 r59847 38 38 "FileError" : 1, 39 39 "FileReader" : 1, 40 "ondeviceorientation" : 1, 40 41 // Ignore this property because it only appears in debug builds and not in release. 41 42 "jscprint" : 1 -
trunk/LayoutTests/fast/dom/Window/window-properties.html
r59388 r59847 83 83 "window.Blob.prototype.slice" : 1, 84 84 "window.FileError" : 1, 85 "window.FileReader" : 1 85 "window.FileReader" : 1, 86 "window.ondeviceorientation" : 1 86 87 }; 87 88 -
trunk/LayoutTests/platform/chromium/test_expectations.txt
r59601 r59847 2839 2839 // Flaky tests 2840 2840 BUG44229 WIN LINUX : fast/loader/recursive-before-unload-crash.html = PASS TEXT 2841 2842 // DeviceOrientation API not yet implemented. 2843 BUG44654 SKIP : fast/dom/DeviceOrientation = TEXT 2844 BUG44654 SKIP : fast/dom/Window/window-properties-on-device-orientation.html = TEXT -
trunk/LayoutTests/platform/gtk/Skipped
r59796 r59847 1180 1180 fast/dom/cssTarget-crash.html 1181 1181 fast/dom/frame-loading-via-document-write.html 1182 fast/dom/DeviceOrientation/window-property.html 1182 1183 fast/dom/Geolocation/callback-exception.html 1183 1184 fast/dom/Geolocation/error.html … … 1205 1206 fast/dom/Window/webkitConvertPoint.html 1206 1207 fast/dom/Window/window-onFocus.html 1208 fast/dom/Window/window-properties-on-device-orientation.html 1207 1209 fast/dom/Window/window-resize-and-move-arguments.html 1208 1210 fast/dom/Window/window-resize.html -
trunk/LayoutTests/platform/mac/Skipped
r59712 r59847 189 189 # IndexedDB is not yet enabled. 190 190 storage/indexeddb 191 192 # This port doesn't support DeviceOrientation. 193 fast/dom/DeviceOrientation 194 fast/dom/Window/window-properties-on-device-orientation.html -
trunk/LayoutTests/platform/qt/Skipped
r59741 r59847 5089 5089 # IndexedDB is not yet enabled. 5090 5090 storage/indexeddb 5091 5092 # This port doesn't support DeviceOrientation. 5093 fast/dom/DeviceOrientation 5094 fast/dom/Window/window-properties-on-device-orientation.html -
trunk/LayoutTests/platform/win/Skipped
r59602 r59847 884 884 # IndexedDB is not yet enabled. 885 885 storage/indexeddb 886 887 # This port doesn't support DeviceOrientation. 888 fast/dom/DeviceOrientation 889 fast/dom/Window/window-properties-on-device-orientation.html -
trunk/WebCore/Android.derived.jscbindings.mk
r59010 r59847 50 50 ) 51 51 52 FEATURE_DEFINES := ANDROID_ORIENTATION_SUPPORT ENABLE_TOUCH_EVENTS=1 ENABLE_DATABASE=1 ENABLE_OFFLINE_WEB_APPLICATIONS=1 ENABLE_DOM_STORAGE=1 ENABLE_VIDEO=1 ENABLE_WORKERS=1 ENABLE_GEOLOCATION=1 ENABLE_CHANNEL_MESSAGING=1 52 FEATURE_DEFINES := ANDROID_ORIENTATION_SUPPORT ENABLE_TOUCH_EVENTS=1 ENABLE_DATABASE=1 ENABLE_OFFLINE_WEB_APPLICATIONS=1 ENABLE_DOM_STORAGE=1 ENABLE_VIDEO=1 ENABLE_WORKERS=1 ENABLE_GEOLOCATION=1 ENABLE_CHANNEL_MESSAGING=1 ENABLE_DEVICE_ORIENTATION=1 53 53 54 54 # CSS … … 104 104 $(intermediates)/dom/JSDOMCoreException.h \ 105 105 $(intermediates)/dom/JSDOMImplementation.h \ 106 $(intermediates)/dom/JSDeviceOrientationEvent.h \ 106 107 $(intermediates)/dom/JSDocument.h \ 107 108 $(intermediates)/dom/JSDocumentFragment.h \ -
trunk/WebCore/Android.derived.v8bindings.mk
r59010 r59847 31 31 $(LOCAL_PATH)/bindings/scripts/generate-bindings.pl 32 32 33 FEATURE_DEFINES := ANDROID_ORIENTATION_SUPPORT ENABLE_TOUCH_EVENTS=1 V8_BINDING ENABLE_DATABASE=1 ENABLE_OFFLINE_WEB_APPLICATIONS=1 ENABLE_DOM_STORAGE=1 ENABLE_VIDEO=1 ENABLE_WORKERS=1 ENABLE_GEOLOCATION=1 33 FEATURE_DEFINES := ANDROID_ORIENTATION_SUPPORT ENABLE_TOUCH_EVENTS=1 ENABLE_DATABASE=1 ENABLE_OFFLINE_WEB_APPLICATIONS=1 ENABLE_DOM_STORAGE=1 ENABLE_VIDEO=1 ENABLE_WORKERS=1 ENABLE_GEOLOCATION=1 ENABLE_DEVICE_ORIENTATION=1 34 FEATURE_DEFINES += V8_BINDING 34 35 35 36 # CSS … … 85 86 $(intermediates)/bindings/V8DOMCoreException.h \ 86 87 $(intermediates)/bindings/V8DOMImplementation.h \ 88 $(intermediates)/bindings/V8DeviceOrientationEvent.h \ 87 89 $(intermediates)/bindings/V8Document.h \ 88 90 $(intermediates)/bindings/V8DocumentFragment.h \ -
trunk/WebCore/Android.mk
r59724 r59847 146 146 dom/OptionElement.cpp \ 147 147 dom/OptionGroupElement.cpp \ 148 dom/DeviceOrientationEvent.cpp \ 148 149 dom/OverflowEvent.cpp \ 149 150 dom/PageTransitionEvent.cpp \ -
trunk/WebCore/ChangeLog
r59846 r59847 1 2010-05-20 Steve Block <steveblock@google.com> 2 3 Reviewed by Jeremy Orlow. 4 5 Provide bindings for DeviceOrientation 6 https://bugs.webkit.org/show_bug.cgi?id=39210 7 8 Tests: fast/dom/DeviceOrientation/window-property.html 9 fast/dom/Window/window-properties-on-device-orientation.html 10 11 Adds bindings for DeviceOrientation as defined in 12 http://dev.w3.org/geo/api/spec-source-orientation.html 13 This is guarded by ENABLE(DEVICE_ORIENTATION) which is currently disabled on 14 all platforms but Android. 15 16 * Android.derived.jscbindings.mk: 17 * Android.derived.v8bindings.mk: 18 * Android.mk: 19 * Configurations/FeatureDefines.xcconfig: 20 * DerivedSources.cpp: 21 * DerivedSources.make: 22 * GNUmakefile.am: 23 * WebCore.gypi: 24 * WebCore.pri: 25 * WebCore.pro: 26 * WebCore.xcodeproj/project.pbxproj: 27 * bindings/js/JSEventCustom.cpp: 28 (WebCore::toJS): 29 * bindings/v8/custom/V8EventCustom.cpp: 30 (WebCore::toV8): 31 * dom/DeviceOrientationEvent.cpp: Added. 32 (WebCore::DeviceOrientationEvent::DeviceOrientationEvent): 33 (WebCore::DeviceOrientationEvent::initDeviceOrientationEvent): 34 * dom/DeviceOrientationEvent.h: Added. 35 (WebCore::DeviceOrientationEvent::create): 36 (WebCore::DeviceOrientationEvent::alpha): 37 (WebCore::DeviceOrientationEvent::beta): 38 (WebCore::DeviceOrientationEvent::gamma): 39 (WebCore::DeviceOrientationEvent::isDeviceOrientationEvent): 40 * dom/DeviceOrientationEvent.idl: Added. 41 * dom/Event.cpp: 42 (WebCore::Event::isDeviceOrientationEvent): 43 * dom/Event.h: 44 * dom/EventNames.h: 45 * page/DOMWindow.h: 46 * page/DOMWindow.idl: 47 1 48 2010-05-20 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org> 2 49 -
trunk/WebCore/Configurations/FeatureDefines.xcconfig
r59174 r59847 48 48 ENABLE_DATAGRID = ; 49 49 ENABLE_DATALIST = ENABLE_DATALIST; 50 ENABLE_DEVICE_ORIENTATION = ; 50 51 ENABLE_DOM_STORAGE = ENABLE_DOM_STORAGE; 51 52 ENABLE_EVENTSOURCE = ENABLE_EVENTSOURCE; … … 79 80 ENABLE_XSLT = ENABLE_XSLT; 80 81 81 FEATURE_DEFINES = $(ENABLE_3D_CANVAS) $(ENABLE_3D_RENDERING) $(ENABLE_BLOB_SLICE) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CLIENT_BASED_GEOLOCATION) $(ENABLE_DATABASE) $(ENABLE_DATAGRID) $(ENABLE_DATALIST) $(ENABLE_D OM_STORAGE) $(ENABLE_EVENTSOURCE) $(ENABLE_FILTERS) $(ENABLE_FILE_READER) $(ENABLE_FILE_WRITER) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE) $(ENABLE_JAVASCRIPT_DEBUGGER) $(ENABLE_MATHML) $(ENABLE_NOTIFICATIONS) $(ENABLE_OFFLINE_WEB_APPLICATIONS) $(ENABLE_PROGRESS_TAG) $(ENABLE_RUBY) $(ENABLE_SANDBOX) $(ENABLE_SHARED_WORKERS) $(ENABLE_SVG) $(ENABLE_SVG_ANIMATION) $(ENABLE_SVG_AS_IMAGE) $(ENABLE_SVG_DOM_OBJC_BINDINGS) $(ENABLE_SVG_FONTS) $(ENABLE_SVG_FOREIGN_OBJECT) $(ENABLE_SVG_USE) $(ENABLE_VIDEO) $(ENABLE_WEB_SOCKETS) $(ENABLE_WML) $(ENABLE_WORKERS) $(ENABLE_XHTMLMP) $(ENABLE_XPATH) $(ENABLE_XSLT);82 FEATURE_DEFINES = $(ENABLE_3D_CANVAS) $(ENABLE_3D_RENDERING) $(ENABLE_BLOB_SLICE) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CLIENT_BASED_GEOLOCATION) $(ENABLE_DATABASE) $(ENABLE_DATAGRID) $(ENABLE_DATALIST) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DOM_STORAGE) $(ENABLE_EVENTSOURCE) $(ENABLE_FILTERS) $(ENABLE_FILE_READER) $(ENABLE_FILE_WRITER) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE) $(ENABLE_JAVASCRIPT_DEBUGGER) $(ENABLE_MATHML) $(ENABLE_NOTIFICATIONS) $(ENABLE_OFFLINE_WEB_APPLICATIONS) $(ENABLE_PROGRESS_TAG) $(ENABLE_RUBY) $(ENABLE_SANDBOX) $(ENABLE_SHARED_WORKERS) $(ENABLE_SVG) $(ENABLE_SVG_ANIMATION) $(ENABLE_SVG_AS_IMAGE) $(ENABLE_SVG_DOM_OBJC_BINDINGS) $(ENABLE_SVG_FONTS) $(ENABLE_SVG_FOREIGN_OBJECT) $(ENABLE_SVG_USE) $(ENABLE_VIDEO) $(ENABLE_WEB_SOCKETS) $(ENABLE_WML) $(ENABLE_WORKERS) $(ENABLE_XHTMLMP) $(ENABLE_XPATH) $(ENABLE_XSLT); -
trunk/WebCore/DerivedSources.cpp
r59602 r59847 70 70 #include "JSDataGridColumnList.cpp" 71 71 #include "JSDedicatedWorkerContext.cpp" 72 #include "JSDeviceOrientationEvent.cpp" 72 73 #include "JSDocument.cpp" 73 74 #include "JSDocumentFragment.cpp" -
trunk/WebCore/DerivedSources.make
r59602 r59847 118 118 DatabaseCallback \ 119 119 DatabaseSync \ 120 DeviceOrientationEvent \ 120 121 Document \ 121 122 DocumentFragment \ -
trunk/WebCore/GNUmakefile.am
r59788 r59847 139 139 WebCore/dom/DOMCoreException.idl \ 140 140 WebCore/dom/DOMImplementation.idl \ 141 WebCore/dom/DeviceOrientationEvent.idl \ 141 142 WebCore/dom/Document.idl \ 142 143 WebCore/dom/DocumentFragment.idl \ … … 766 767 WebCore/dom/DOMImplementation.cpp \ 767 768 WebCore/dom/DOMImplementation.h \ 769 WebCore/dom/DeviceOrientationEvent.cpp \ 770 WebCore/dom/DeviceOrientationEvent.h \ 768 771 WebCore/dom/Document.cpp \ 769 772 WebCore/dom/Document.h \ -
trunk/WebCore/WebCore.gypi
r59788 r59847 41 41 'dom/DOMCoreException.idl', 42 42 'dom/DOMImplementation.idl', 43 'dom/DeviceOrientationEvent.idl', 43 44 'dom/Document.idl', 44 45 'dom/DocumentFragment.idl', … … 1100 1101 'dom/DOMImplementation.cpp', 1101 1102 'dom/DOMImplementation.h', 1103 'dom/DeviceOrientationEvent.cpp', 1104 'dom/DeviceOrientationEvent.h', 1102 1105 'dom/Document.cpp', 1103 1106 'dom/Document.h', -
trunk/WebCore/WebCore.pri
r59602 r59847 261 261 dom/CompositionEvent.idl \ 262 262 dom/CustomEvent.idl \ 263 dom/DeviceOrientationEvent.idl \ 263 264 dom/DocumentFragment.idl \ 264 265 dom/Document.idl \ -
trunk/WebCore/WebCore.pro
r59788 r59847 463 463 dom/CSSMappedAttributeDeclaration.cpp \ 464 464 dom/CustomEvent.cpp \ 465 dom/DeviceOrientationEvent.cpp \ 465 466 dom/Document.cpp \ 466 467 dom/DocumentFragment.cpp \ … … 1188 1189 dom/CustomEvent.h \ 1189 1190 dom/default/PlatformMessagePortChannel.h \ 1191 dom/DeviceOrientationEvent.h \ 1190 1192 dom/DocumentFragment.h \ 1191 1193 dom/Document.h \ -
trunk/WebCore/WebCore.xcodeproj/project.pbxproj
r59788 r59847 1168 1168 5962297A1133EFE200DC4CBB /* GeolocationPositionCache.h in Headers */ = {isa = PBXBuildFile; fileRef = 596229791133EFE200DC4CBB /* GeolocationPositionCache.h */; settings = {ATTRIBUTES = (Private, ); }; }; 1169 1169 599E759011055A1F00D904FA /* Bridge.h in Headers */ = {isa = PBXBuildFile; fileRef = 599E758F11055A1F00D904FA /* Bridge.h */; settings = {ATTRIBUTES = (Private, ); }; }; 1170 59A85EA2119D68D900DEF1EF /* DeviceOrientationEvent.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 59A85EA1119D68D900DEF1EF /* DeviceOrientationEvent.cpp */; }; 1171 59A85EA4119D68EC00DEF1EF /* DeviceOrientationEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = 59A85EA3119D68EC00DEF1EF /* DeviceOrientationEvent.h */; }; 1172 59A86006119DAF7F00DEF1EF /* JSDeviceOrientationEvent.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 59A86005119DAF7F00DEF1EF /* JSDeviceOrientationEvent.cpp */; }; 1173 59A86008119DAFA100DEF1EF /* JSDeviceOrientationEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = 59A86007119DAFA100DEF1EF /* JSDeviceOrientationEvent.h */; }; 1170 1174 59A9E7B01104758800DFB4C1 /* JavaInstanceJSC.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 59A9E7AF1104758800DFB4C1 /* JavaInstanceJSC.cpp */; }; 1171 1175 59A9E7B21104759400DFB4C1 /* JavaInstanceJSC.h in Headers */ = {isa = PBXBuildFile; fileRef = 59A9E7B11104759400DFB4C1 /* JavaInstanceJSC.h */; }; … … 6770 6774 596229791133EFE200DC4CBB /* GeolocationPositionCache.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GeolocationPositionCache.h; sourceTree = "<group>"; }; 6771 6775 599E758F11055A1F00D904FA /* Bridge.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Bridge.h; path = bridge/Bridge.h; sourceTree = "<group>"; }; 6776 59A85EA1119D68D900DEF1EF /* DeviceOrientationEvent.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DeviceOrientationEvent.cpp; sourceTree = "<group>"; }; 6777 59A85EA3119D68EC00DEF1EF /* DeviceOrientationEvent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DeviceOrientationEvent.h; sourceTree = "<group>"; }; 6778 59A85EAA119D7B6E00DEF1EF /* DeviceOrientationEvent.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = DeviceOrientationEvent.idl; sourceTree = "<group>"; }; 6779 59A86005119DAF7F00DEF1EF /* JSDeviceOrientationEvent.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSDeviceOrientationEvent.cpp; sourceTree = "<group>"; }; 6780 59A86007119DAFA100DEF1EF /* JSDeviceOrientationEvent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSDeviceOrientationEvent.h; sourceTree = "<group>"; }; 6772 6781 59A9E7AF1104758800DFB4C1 /* JavaInstanceJSC.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = JavaInstanceJSC.cpp; path = jsc/JavaInstanceJSC.cpp; sourceTree = "<group>"; }; 6773 6782 59A9E7B11104759400DFB4C1 /* JavaInstanceJSC.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = JavaInstanceJSC.h; path = jsc/JavaInstanceJSC.h; sourceTree = "<group>"; }; … … 14213 14222 isa = PBXGroup; 14214 14223 children = ( 14224 59A86007119DAFA100DEF1EF /* JSDeviceOrientationEvent.h */, 14225 59A86005119DAF7F00DEF1EF /* JSDeviceOrientationEvent.cpp */, 14215 14226 65DF31D809D1C122000BE325 /* JSAttr.cpp */, 14216 14227 65DF31D909D1C123000BE325 /* JSAttr.h */, … … 16407 16418 isa = PBXGroup; 16408 16419 children = ( 16420 59A85EAA119D7B6E00DEF1EF /* DeviceOrientationEvent.idl */, 16421 59A85EA3119D68EC00DEF1EF /* DeviceOrientationEvent.h */, 16422 59A85EA1119D68D900DEF1EF /* DeviceOrientationEvent.cpp */, 16409 16423 E1C4DE6D0EA75C650023CCD6 /* ActiveDOMObject.cpp */, 16410 16424 E1C4DE680EA75C1E0023CCD6 /* ActiveDOMObject.h */, … … 19266 19280 A871038B11A2947000DBD50E /* HTML5Tokenizer.h in Headers */, 19267 19281 51327D6011A33A2B004F9D65 /* SinkDocument.h in Headers */, 19282 59A85EA4119D68EC00DEF1EF /* DeviceOrientationEvent.h in Headers */, 19283 59A86008119DAFA100DEF1EF /* JSDeviceOrientationEvent.h in Headers */, 19268 19284 ); 19269 19285 runOnlyForDeploymentPostprocessing = 0; … … 21548 21564 A871038A11A2947000DBD50E /* HTML5Tokenizer.cpp in Sources */, 21549 21565 51327D6111A33A2B004F9D65 /* SinkDocument.cpp in Sources */, 21566 59A85EA2119D68D900DEF1EF /* DeviceOrientationEvent.cpp in Sources */, 21567 59A86006119DAF7F00DEF1EF /* JSDeviceOrientationEvent.cpp in Sources */, 21550 21568 ); 21551 21569 runOnlyForDeploymentPostprocessing = 0; -
trunk/WebCore/bindings/js/JSEventCustom.cpp
r59604 r59847 33 33 #include "CompositionEvent.h" 34 34 #include "CustomEvent.h" 35 #include "DeviceOrientationEvent.h" 35 36 #include "Event.h" 36 37 #include "JSBeforeLoadEvent.h" … … 38 39 #include "JSCustomEvent.h" 39 40 #include "JSCompositionEvent.h" 41 #include "JSDeviceOrientationEvent.h" 40 42 #include "JSErrorEvent.h" 41 43 #if ENABLE(INDEXED_DATABASE) … … 172 174 else if (event->isCustomEvent()) 173 175 wrapper = CREATE_DOM_OBJECT_WRAPPER(exec, globalObject, CustomEvent, event); 176 #if ENABLE(DEVICE_ORIENTATION) 177 else if (event->isDeviceOrientationEvent()) 178 wrapper = CREATE_DOM_OBJECT_WRAPPER(exec, globalObject, DeviceOrientationEvent, event); 179 #endif 174 180 else 175 181 wrapper = CREATE_DOM_OBJECT_WRAPPER(exec, globalObject, Event, event); -
trunk/WebCore/bindings/v8/custom/V8EventCustom.cpp
r59602 r59847 41 41 #include "V8CompositionEvent.h" 42 42 #include "V8CustomEvent.h" 43 #include "V8DeviceOrientationEvent.h" 43 44 #include "V8ErrorEvent.h" 44 45 #include "V8IDBErrorEvent.h" … … 154 155 if (impl->isBeforeLoadEvent()) 155 156 return toV8(static_cast<BeforeLoadEvent*>(impl)); 157 #if ENABLE(DEVICE_ORIENTATION) 158 if (impl->isDeviceOrientationEvent()) 159 return toV8(static_cast<DeviceOrientationEvent*>(impl)); 160 #endif 156 161 if (impl->isCustomEvent()) 157 162 return toV8(static_cast<CustomEvent*>(impl)); -
trunk/WebCore/dom/Event.cpp
r59602 r59847 213 213 #endif 214 214 215 #if ENABLE(DEVICE_ORIENTATION) 216 bool Event::isDeviceOrientationEvent() const 217 { 218 return false; 219 } 220 #endif 221 215 222 bool Event::fromUserGesture() 216 223 { -
trunk/WebCore/dom/Event.h
r59602 r59847 140 140 virtual bool isTouchEvent() const; 141 141 #endif 142 #if ENABLE(DEVICE_ORIENTATION) 143 virtual bool isDeviceOrientationEvent() const; 144 #endif 142 145 bool fromUserGesture(); 143 146 -
trunk/WebCore/dom/EventNames.h
r58832 r59847 50 50 macro(cut) \ 51 51 macro(dblclick) \ 52 macro(deviceorientation) \ 52 53 macro(display) \ 53 54 macro(downloading) \ -
trunk/WebCore/page/DOMWindow.h
r58873 r59847 326 326 #endif 327 327 328 #if ENABLE(DEVICE_ORIENTATION) 329 DEFINE_ATTRIBUTE_EVENT_LISTENER(deviceorientation); 330 #endif 331 328 332 DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(webkitanimationstart, webkitAnimationStart); 329 333 DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(webkitanimationiteration, webkitAnimationIteration); -
trunk/WebCore/page/DOMWindow.idl
r59754 r59847 299 299 attribute [Conditional=TOUCH_EVENTS,EnabledAtRuntime] EventListener ontouchend; 300 300 attribute [Conditional=TOUCH_EVENTS,EnabledAtRuntime] EventListener ontouchcancel; 301 302 attribute [Conditional=DEVICE_ORIENTATION] EventListener ondeviceorientation; 301 303 302 304 // EventTarget interface -
trunk/WebKit/mac/ChangeLog
r59840 r59847 1 2010-05-20 Steve Block <steveblock@google.com> 2 3 Reviewed by Jeremy Orlow. 4 5 Provide bindings for DeviceOrientation 6 https://bugs.webkit.org/show_bug.cgi?id=39210 7 8 Adds ENABLE_DEVICE_ORIENTATION to XCode project file, always disabled. 9 10 * Configurations/FeatureDefines.xcconfig: 11 1 12 2010-05-20 Martin Robinson <mrobinson@webkit.org> 2 13 -
trunk/WebKit/mac/Configurations/FeatureDefines.xcconfig
r59174 r59847 48 48 ENABLE_DATAGRID = ; 49 49 ENABLE_DATALIST = ENABLE_DATALIST; 50 ENABLE_DEVICE_ORIENTATION = ; 50 51 ENABLE_DOM_STORAGE = ENABLE_DOM_STORAGE; 51 52 ENABLE_EVENTSOURCE = ENABLE_EVENTSOURCE; … … 79 80 ENABLE_XSLT = ENABLE_XSLT; 80 81 81 FEATURE_DEFINES = $(ENABLE_3D_CANVAS) $(ENABLE_3D_RENDERING) $(ENABLE_BLOB_SLICE) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CLIENT_BASED_GEOLOCATION) $(ENABLE_DATABASE) $(ENABLE_DATAGRID) $(ENABLE_DATALIST) $(ENABLE_D OM_STORAGE) $(ENABLE_EVENTSOURCE) $(ENABLE_FILTERS) $(ENABLE_FILE_READER) $(ENABLE_FILE_WRITER) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE) $(ENABLE_JAVASCRIPT_DEBUGGER) $(ENABLE_MATHML) $(ENABLE_NOTIFICATIONS) $(ENABLE_OFFLINE_WEB_APPLICATIONS) $(ENABLE_PROGRESS_TAG) $(ENABLE_RUBY) $(ENABLE_SANDBOX) $(ENABLE_SHARED_WORKERS) $(ENABLE_SVG) $(ENABLE_SVG_ANIMATION) $(ENABLE_SVG_AS_IMAGE) $(ENABLE_SVG_DOM_OBJC_BINDINGS) $(ENABLE_SVG_FONTS) $(ENABLE_SVG_FOREIGN_OBJECT) $(ENABLE_SVG_USE) $(ENABLE_VIDEO) $(ENABLE_WEB_SOCKETS) $(ENABLE_WML) $(ENABLE_WORKERS) $(ENABLE_XHTMLMP) $(ENABLE_XPATH) $(ENABLE_XSLT);82 FEATURE_DEFINES = $(ENABLE_3D_CANVAS) $(ENABLE_3D_RENDERING) $(ENABLE_BLOB_SLICE) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CLIENT_BASED_GEOLOCATION) $(ENABLE_DATABASE) $(ENABLE_DATAGRID) $(ENABLE_DATALIST) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DOM_STORAGE) $(ENABLE_EVENTSOURCE) $(ENABLE_FILTERS) $(ENABLE_FILE_READER) $(ENABLE_FILE_WRITER) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE) $(ENABLE_JAVASCRIPT_DEBUGGER) $(ENABLE_MATHML) $(ENABLE_NOTIFICATIONS) $(ENABLE_OFFLINE_WEB_APPLICATIONS) $(ENABLE_PROGRESS_TAG) $(ENABLE_RUBY) $(ENABLE_SANDBOX) $(ENABLE_SHARED_WORKERS) $(ENABLE_SVG) $(ENABLE_SVG_ANIMATION) $(ENABLE_SVG_AS_IMAGE) $(ENABLE_SVG_DOM_OBJC_BINDINGS) $(ENABLE_SVG_FONTS) $(ENABLE_SVG_FOREIGN_OBJECT) $(ENABLE_SVG_USE) $(ENABLE_VIDEO) $(ENABLE_WEB_SOCKETS) $(ENABLE_WML) $(ENABLE_WORKERS) $(ENABLE_XHTMLMP) $(ENABLE_XPATH) $(ENABLE_XSLT); -
trunk/WebKitLibraries/ChangeLog
r57373 r59847 1 2010-05-20 Steve Block <steveblock@google.com> 2 3 Reviewed by Jeremy Orlow. 4 5 Provide bindings for DeviceOrientation 6 https://bugs.webkit.org/show_bug.cgi?id=39210 7 8 Adds ENABLE_DEVICE_ORIENTATION to VisualStudio project files, always disabled. 9 10 * win/tools/vsprops/FeatureDefines.vsprops: 11 * win/tools/vsprops/FeatureDefinesCairo.vsprops: 12 1 13 2010-04-09 Alexey Proskuryakov <ap@apple.com> 2 14 -
trunk/WebKitLibraries/win/tools/vsprops/FeatureDefines.vsprops
r56968 r59847 10 10 <Tool 11 11 Name="VCCLCompilerTool" 12 PreprocessorDefinitions="$(ENABLE_3D_CANVAS);$(ENABLE_3D_RENDERING);$(ENABLE_BLOB_SLICE);$(ENABLE_CHANNEL_MESSAGING);$(ENABLE_CLIENT_BASED_GEOLOCATION);$(ENABLE_DATABASE);$(ENABLE_DATAGRID);$(ENABLE_DATALIST);$(ENABLE_D OM_STORAGE);$(ENABLE_EVENTSOURCE);$(ENABLE_FILTERS);$(ENABLE_FILE_READER);$(ENABLE_FILE_WRITER);$(ENABLE_GEOLOCATION);$(ENABLE_ICONDATABASE);$(ENABLE_INDEXED_DATABASE);$(ENABLE_JAVASCRIPT_DEBUGGER);$(ENABLE_MATHML);$(ENABLE_NOTIFICATIONS);$(ENABLE_OFFLINE_WEB_APPLICATIONS);$(ENABLE_RUBY);$(ENABLE_SANDBOX);$(ENABLE_SHARED_WORKERS);$(ENABLE_SVG);$(ENABLE_SVG_ANIMATION);$(ENABLE_SVG_AS_IMAGE);$(ENABLE_SVG_DOM_OBJC_BINDINGS);$(ENABLE_SVG_FONTS);$(ENABLE_SVG_FOREIGN_OBJECT);$(ENABLE_SVG_USE);$(ENABLE_VIDEO);$(ENABLE_WEB_SOCKETS);$(ENABLE_WML);$(ENABLE_WORKERS);$(ENABLE_XHTMLMP);$(ENABLE_XPATH);$(ENABLE_XSLT)"12 PreprocessorDefinitions="$(ENABLE_3D_CANVAS);$(ENABLE_3D_RENDERING);$(ENABLE_BLOB_SLICE);$(ENABLE_CHANNEL_MESSAGING);$(ENABLE_CLIENT_BASED_GEOLOCATION);$(ENABLE_DATABASE);$(ENABLE_DATAGRID);$(ENABLE_DATALIST);$(ENABLE_DEVICE_ORIENTATION);$(ENABLE_DOM_STORAGE);$(ENABLE_EVENTSOURCE);$(ENABLE_FILTERS);$(ENABLE_FILE_READER);$(ENABLE_FILE_WRITER);$(ENABLE_GEOLOCATION);$(ENABLE_ICONDATABASE);$(ENABLE_INDEXED_DATABASE);$(ENABLE_JAVASCRIPT_DEBUGGER);$(ENABLE_MATHML);$(ENABLE_NOTIFICATIONS);$(ENABLE_OFFLINE_WEB_APPLICATIONS);$(ENABLE_RUBY);$(ENABLE_SANDBOX);$(ENABLE_SHARED_WORKERS);$(ENABLE_SVG);$(ENABLE_SVG_ANIMATION);$(ENABLE_SVG_AS_IMAGE);$(ENABLE_SVG_DOM_OBJC_BINDINGS);$(ENABLE_SVG_FONTS);$(ENABLE_SVG_FOREIGN_OBJECT);$(ENABLE_SVG_USE);$(ENABLE_VIDEO);$(ENABLE_WEB_SOCKETS);$(ENABLE_WML);$(ENABLE_WORKERS);$(ENABLE_XHTMLMP);$(ENABLE_XPATH);$(ENABLE_XSLT)" 13 13 /> 14 14 <UserMacro … … 53 53 /> 54 54 <UserMacro 55 Name="ENABLE_DEVICE_ORIENTATION" 56 Value="" 57 PerformEnvironmentSet="true" 58 /> 59 <UserMacro 55 60 Name="ENABLE_DOM_STORAGE" 56 61 Value="ENABLE_DOM_STORAGE" -
trunk/WebKitLibraries/win/tools/vsprops/FeatureDefinesCairo.vsprops
r56968 r59847 10 10 <Tool 11 11 Name="VCCLCompilerTool" 12 PreprocessorDefinitions="$(ENABLE_3D_CANVAS);$(ENABLE_3D_RENDERING);$(ENABLE_BLOB_SLICE);$(ENABLE_CHANNEL_MESSAGING);$(ENABLE_CLIENT_BASED_GEOLOCATION);$(ENABLE_DATABASE);$(ENABLE_DATAGRID);$(ENABLE_DATALIST);$(ENABLE_D OM_STORAGE);$(ENABLE_EVENTSOURCE);$(ENABLE_FILTERS);$(ENABLE_FILE_READER);$(ENABLE_FILE_WRITER);$(ENABLE_GEOLOCATION);$(ENABLE_ICONDATABASE);$(ENABLE_INDEXED_DATABASE);$(ENABLE_JAVASCRIPT_DEBUGGER);$(ENABLE_MATHML);$(ENABLE_NOTIFICATIONS);$(ENABLE_OFFLINE_WEB_APPLICATIONS);$(ENABLE_SHARED_WORKERS);$(ENABLE_SVG);$(ENABLE_SVG_ANIMATION);$(ENABLE_SVG_AS_IMAGE);$(ENABLE_SVG_DOM_OBJC_BINDINGS);$(ENABLE_SVG_FONTS);$(ENABLE_SVG_FOREIGN_OBJECT);$(ENABLE_SVG_USE);$(ENABLE_VIDEO);$(ENABLE_WEB_SOCKETS);$(ENABLE_WML);$(ENABLE_WORKERS);$(ENABLE_XHTMLMP);$(ENABLE_XPATH);$(ENABLE_XSLT)"12 PreprocessorDefinitions="$(ENABLE_3D_CANVAS);$(ENABLE_3D_RENDERING);$(ENABLE_BLOB_SLICE);$(ENABLE_CHANNEL_MESSAGING);$(ENABLE_CLIENT_BASED_GEOLOCATION);$(ENABLE_DATABASE);$(ENABLE_DATAGRID);$(ENABLE_DATALIST);$(ENABLE_DEVICE_ORIENTATION);$(ENABLE_DOM_STORAGE);$(ENABLE_EVENTSOURCE);$(ENABLE_FILTERS);$(ENABLE_FILE_READER);$(ENABLE_FILE_WRITER);$(ENABLE_GEOLOCATION);$(ENABLE_ICONDATABASE);$(ENABLE_INDEXED_DATABASE);$(ENABLE_JAVASCRIPT_DEBUGGER);$(ENABLE_MATHML);$(ENABLE_NOTIFICATIONS);$(ENABLE_OFFLINE_WEB_APPLICATIONS);$(ENABLE_SHARED_WORKERS);$(ENABLE_SVG);$(ENABLE_SVG_ANIMATION);$(ENABLE_SVG_AS_IMAGE);$(ENABLE_SVG_DOM_OBJC_BINDINGS);$(ENABLE_SVG_FONTS);$(ENABLE_SVG_FOREIGN_OBJECT);$(ENABLE_SVG_USE);$(ENABLE_VIDEO);$(ENABLE_WEB_SOCKETS);$(ENABLE_WML);$(ENABLE_WORKERS);$(ENABLE_XHTMLMP);$(ENABLE_XPATH);$(ENABLE_XSLT)" 13 13 /> 14 14 <UserMacro … … 50 50 Name="ENABLE_DATALIST" 51 51 Value="ENABLE_DATALIST" 52 PerformEnvironmentSet="true" 53 /> 54 <UserMacro 55 Name="ENABLE_DEVICE_ORIENTATION" 56 Value="" 52 57 PerformEnvironmentSet="true" 53 58 />
Note: See TracChangeset
for help on using the changeset viewer.