Changeset 59847 in webkit


Ignore:
Timestamp:
May 20, 2010 10:37:43 AM (14 years ago)
Author:
steveblock@google.com
Message:

2010-05-20 Steve Block <steveblock@google.com>

Reviewed by Jeremy Orlow.

Provide bindings for DeviceOrientation
https://bugs.webkit.org/show_bug.cgi?id=39210

Adds ENABLE_DEVICE_ORIENTATION to XCode project file, always disabled.

  • Configurations/FeatureDefines.xcconfig:

2010-05-20 Steve Block <steveblock@google.com>

Reviewed by Jeremy Orlow.

Provide bindings for DeviceOrientation
https://bugs.webkit.org/show_bug.cgi?id=39210

Adds ENABLE_DEVICE_ORIENTATION to VisualStudio project files, always disabled.

  • win/tools/vsprops/FeatureDefines.vsprops:
  • win/tools/vsprops/FeatureDefinesCairo.vsprops:

2010-05-20 Steve Block <steveblock@google.com>

Reviewed by Jeremy Orlow.

Provide bindings for DeviceOrientation
https://bugs.webkit.org/show_bug.cgi?id=39210

Adds ENABLE_DEVICE_ORIENTATION to XCode project file, always disabled.

  • Configurations/FeatureDefines.xcconfig:

2010-05-20 Steve Block <steveblock@google.com>

Reviewed by Jeremy Orlow.

Provide bindings for DeviceOrientation
https://bugs.webkit.org/show_bug.cgi?id=39210

Tests: fast/dom/DeviceOrientation/window-property.html

fast/dom/Window/window-properties-on-device-orientation.html

Adds bindings for DeviceOrientation as defined in
http://dev.w3.org/geo/api/spec-source-orientation.html
This is guarded by ENABLE(DEVICE_ORIENTATION) which is currently disabled on
all platforms but Android.

  • Android.derived.jscbindings.mk:
  • Android.derived.v8bindings.mk:
  • Android.mk:
  • Configurations/FeatureDefines.xcconfig:
  • DerivedSources.cpp:
  • DerivedSources.make:
  • GNUmakefile.am:
  • WebCore.gypi:
  • WebCore.pri:
  • WebCore.pro:
  • WebCore.xcodeproj/project.pbxproj:
  • bindings/js/JSEventCustom.cpp: (WebCore::toJS):
  • bindings/v8/custom/V8EventCustom.cpp: (WebCore::toV8):
  • dom/DeviceOrientationEvent.cpp: Added. (WebCore::DeviceOrientationEvent::DeviceOrientationEvent): (WebCore::DeviceOrientationEvent::initDeviceOrientationEvent):
  • dom/DeviceOrientationEvent.h: Added. (WebCore::DeviceOrientationEvent::create): (WebCore::DeviceOrientationEvent::alpha): (WebCore::DeviceOrientationEvent::beta): (WebCore::DeviceOrientationEvent::gamma): (WebCore::DeviceOrientationEvent::isDeviceOrientationEvent):
  • dom/DeviceOrientationEvent.idl: Added.
  • dom/Event.cpp: (WebCore::Event::isDeviceOrientationEvent):
  • dom/Event.h:
  • dom/EventNames.h:
  • page/DOMWindow.h:
  • page/DOMWindow.idl:

2010-05-20 Steve Block <steveblock@google.com>

Reviewed by Jeremy Orlow.

Provide bindings for DeviceOrientation
https://bugs.webkit.org/show_bug.cgi?id=39210

Modifies existing fast/dom/Window tests to skip window.ondeviceorientation until
it is widely supported.
Adds new fast/dom/Window/window-properties-on-device-orientation.html to test
type and presence of window.ondeviceorientation.
Adds new fast/dom/DeviceOrientation directory and initial test.
Adds all DeviceOrientation tests to all skipped lists.

  • fast/dom/DeviceOrientation: Added.
  • fast/dom/DeviceOrientation/script-tests: Added.
  • fast/dom/DeviceOrientation/script-tests/TEMPLATE.html: Added.
  • fast/dom/DeviceOrientation/script-tests/window-property.js: Added. (hasOnDeviceOrientationProperty):
  • fast/dom/DeviceOrientation/window-property-expected.txt: Added.
  • fast/dom/DeviceOrientation/window-property.html: Added.
  • fast/dom/Window/script-tests/window-property-descriptors.js:
  • fast/dom/Window/window-properties-on-device-orientation-expected.txt: Added.
  • fast/dom/Window/window-properties-on-device-orientation.html: Added.
  • fast/dom/Window/window-properties.html:
  • platform/chromium/test_expectations.txt:
  • platform/gtk/Skipped:
  • platform/mac/Skipped:
  • platform/qt/Skipped:
  • platform/win/Skipped:
Location:
trunk
Files:
11 added
34 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r59820 r59847  
     12010-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
    1122010-05-19  Gavin Barraclough  <barraclough@apple.com>
    213
  • trunk/JavaScriptCore/Configurations/FeatureDefines.xcconfig

    r59174 r59847  
    4848ENABLE_DATAGRID = ;
    4949ENABLE_DATALIST = ENABLE_DATALIST;
     50ENABLE_DEVICE_ORIENTATION = ;
    5051ENABLE_DOM_STORAGE = ENABLE_DOM_STORAGE;
    5152ENABLE_EVENTSOURCE = ENABLE_EVENTSOURCE;
     
    7980ENABLE_XSLT = ENABLE_XSLT;
    8081
    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_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);
     82FEATURE_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  
     12010-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
    1322010-05-20  Martin Robinson  <mrobinson@webkit.org>
    233
  • trunk/LayoutTests/fast/dom/Window/script-tests/window-property-descriptors.js

    r59388 r59847  
    3838    "FileError" : 1,
    3939    "FileReader" : 1,
     40    "ondeviceorientation" : 1,
    4041    // Ignore this property because it only appears in debug builds and not in release.
    4142    "jscprint" : 1
  • trunk/LayoutTests/fast/dom/Window/window-properties.html

    r59388 r59847  
    8383    "window.Blob.prototype.slice" : 1,
    8484    "window.FileError" : 1,
    85     "window.FileReader" : 1
     85    "window.FileReader" : 1,
     86    "window.ondeviceorientation" : 1
    8687};
    8788
  • trunk/LayoutTests/platform/chromium/test_expectations.txt

    r59601 r59847  
    28392839// Flaky tests
    28402840BUG44229 WIN LINUX : fast/loader/recursive-before-unload-crash.html = PASS TEXT
     2841
     2842// DeviceOrientation API not yet implemented.
     2843BUG44654 SKIP : fast/dom/DeviceOrientation = TEXT
     2844BUG44654 SKIP : fast/dom/Window/window-properties-on-device-orientation.html = TEXT
  • trunk/LayoutTests/platform/gtk/Skipped

    r59796 r59847  
    11801180fast/dom/cssTarget-crash.html
    11811181fast/dom/frame-loading-via-document-write.html
     1182fast/dom/DeviceOrientation/window-property.html
    11821183fast/dom/Geolocation/callback-exception.html
    11831184fast/dom/Geolocation/error.html
     
    12051206fast/dom/Window/webkitConvertPoint.html
    12061207fast/dom/Window/window-onFocus.html
     1208fast/dom/Window/window-properties-on-device-orientation.html
    12071209fast/dom/Window/window-resize-and-move-arguments.html
    12081210fast/dom/Window/window-resize.html
  • trunk/LayoutTests/platform/mac/Skipped

    r59712 r59847  
    189189# IndexedDB is not yet enabled.
    190190storage/indexeddb
     191
     192# This port doesn't support DeviceOrientation.
     193fast/dom/DeviceOrientation
     194fast/dom/Window/window-properties-on-device-orientation.html
  • trunk/LayoutTests/platform/qt/Skipped

    r59741 r59847  
    50895089# IndexedDB is not yet enabled.
    50905090storage/indexeddb
     5091
     5092# This port doesn't support DeviceOrientation.
     5093fast/dom/DeviceOrientation
     5094fast/dom/Window/window-properties-on-device-orientation.html
  • trunk/LayoutTests/platform/win/Skipped

    r59602 r59847  
    884884# IndexedDB is not yet enabled.
    885885storage/indexeddb
     886
     887# This port doesn't support DeviceOrientation.
     888fast/dom/DeviceOrientation
     889fast/dom/Window/window-properties-on-device-orientation.html
  • trunk/WebCore/Android.derived.jscbindings.mk

    r59010 r59847  
    5050                )
    5151
    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
     52FEATURE_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
    5353
    5454# CSS
     
    104104    $(intermediates)/dom/JSDOMCoreException.h \
    105105    $(intermediates)/dom/JSDOMImplementation.h \
     106    $(intermediates)/dom/JSDeviceOrientationEvent.h \
    106107    $(intermediates)/dom/JSDocument.h \
    107108    $(intermediates)/dom/JSDocumentFragment.h \
  • trunk/WebCore/Android.derived.v8bindings.mk

    r59010 r59847  
    3131        $(LOCAL_PATH)/bindings/scripts/generate-bindings.pl
    3232
    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
     33FEATURE_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
     34FEATURE_DEFINES += V8_BINDING
    3435
    3536# CSS
     
    8586    $(intermediates)/bindings/V8DOMCoreException.h \
    8687    $(intermediates)/bindings/V8DOMImplementation.h \
     88    $(intermediates)/bindings/V8DeviceOrientationEvent.h \
    8789    $(intermediates)/bindings/V8Document.h \
    8890    $(intermediates)/bindings/V8DocumentFragment.h \
  • trunk/WebCore/Android.mk

    r59724 r59847  
    146146        dom/OptionElement.cpp \
    147147        dom/OptionGroupElement.cpp \
     148        dom/DeviceOrientationEvent.cpp \
    148149        dom/OverflowEvent.cpp \
    149150        dom/PageTransitionEvent.cpp \
  • trunk/WebCore/ChangeLog

    r59846 r59847  
     12010-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
    1482010-05-20  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
    249
  • trunk/WebCore/Configurations/FeatureDefines.xcconfig

    r59174 r59847  
    4848ENABLE_DATAGRID = ;
    4949ENABLE_DATALIST = ENABLE_DATALIST;
     50ENABLE_DEVICE_ORIENTATION = ;
    5051ENABLE_DOM_STORAGE = ENABLE_DOM_STORAGE;
    5152ENABLE_EVENTSOURCE = ENABLE_EVENTSOURCE;
     
    7980ENABLE_XSLT = ENABLE_XSLT;
    8081
    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_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);
     82FEATURE_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  
    7070#include "JSDataGridColumnList.cpp"
    7171#include "JSDedicatedWorkerContext.cpp"
     72#include "JSDeviceOrientationEvent.cpp"
    7273#include "JSDocument.cpp"
    7374#include "JSDocumentFragment.cpp"
  • trunk/WebCore/DerivedSources.make

    r59602 r59847  
    118118    DatabaseCallback \
    119119    DatabaseSync \
     120    DeviceOrientationEvent \
    120121    Document \
    121122    DocumentFragment \
  • trunk/WebCore/GNUmakefile.am

    r59788 r59847  
    139139        WebCore/dom/DOMCoreException.idl \
    140140        WebCore/dom/DOMImplementation.idl \
     141        WebCore/dom/DeviceOrientationEvent.idl \
    141142        WebCore/dom/Document.idl \
    142143        WebCore/dom/DocumentFragment.idl \
     
    766767        WebCore/dom/DOMImplementation.cpp \
    767768        WebCore/dom/DOMImplementation.h \
     769        WebCore/dom/DeviceOrientationEvent.cpp \
     770        WebCore/dom/DeviceOrientationEvent.h \
    768771        WebCore/dom/Document.cpp \
    769772        WebCore/dom/Document.h \
  • trunk/WebCore/WebCore.gypi

    r59788 r59847  
    4141            'dom/DOMCoreException.idl',
    4242            'dom/DOMImplementation.idl',
     43            'dom/DeviceOrientationEvent.idl',
    4344            'dom/Document.idl',
    4445            'dom/DocumentFragment.idl',
     
    11001101            'dom/DOMImplementation.cpp',
    11011102            'dom/DOMImplementation.h',
     1103            'dom/DeviceOrientationEvent.cpp',
     1104            'dom/DeviceOrientationEvent.h',
    11021105            'dom/Document.cpp',
    11031106            'dom/Document.h',
  • trunk/WebCore/WebCore.pri

    r59602 r59847  
    261261    dom/CompositionEvent.idl \
    262262    dom/CustomEvent.idl \
     263    dom/DeviceOrientationEvent.idl \
    263264    dom/DocumentFragment.idl \
    264265    dom/Document.idl \
  • trunk/WebCore/WebCore.pro

    r59788 r59847  
    463463    dom/CSSMappedAttributeDeclaration.cpp \
    464464    dom/CustomEvent.cpp \
     465    dom/DeviceOrientationEvent.cpp \
    465466    dom/Document.cpp \
    466467    dom/DocumentFragment.cpp \
     
    11881189    dom/CustomEvent.h \
    11891190    dom/default/PlatformMessagePortChannel.h \
     1191    dom/DeviceOrientationEvent.h \
    11901192    dom/DocumentFragment.h \
    11911193    dom/Document.h \
  • trunk/WebCore/WebCore.xcodeproj/project.pbxproj

    r59788 r59847  
    11681168                5962297A1133EFE200DC4CBB /* GeolocationPositionCache.h in Headers */ = {isa = PBXBuildFile; fileRef = 596229791133EFE200DC4CBB /* GeolocationPositionCache.h */; settings = {ATTRIBUTES = (Private, ); }; };
    11691169                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 */; };
    11701174                59A9E7B01104758800DFB4C1 /* JavaInstanceJSC.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 59A9E7AF1104758800DFB4C1 /* JavaInstanceJSC.cpp */; };
    11711175                59A9E7B21104759400DFB4C1 /* JavaInstanceJSC.h in Headers */ = {isa = PBXBuildFile; fileRef = 59A9E7B11104759400DFB4C1 /* JavaInstanceJSC.h */; };
     
    67706774                596229791133EFE200DC4CBB /* GeolocationPositionCache.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GeolocationPositionCache.h; sourceTree = "<group>"; };
    67716775                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>"; };
    67726781                59A9E7AF1104758800DFB4C1 /* JavaInstanceJSC.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = JavaInstanceJSC.cpp; path = jsc/JavaInstanceJSC.cpp; sourceTree = "<group>"; };
    67736782                59A9E7B11104759400DFB4C1 /* JavaInstanceJSC.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = JavaInstanceJSC.h; path = jsc/JavaInstanceJSC.h; sourceTree = "<group>"; };
     
    1421314222                        isa = PBXGroup;
    1421414223                        children = (
     14224                                59A86007119DAFA100DEF1EF /* JSDeviceOrientationEvent.h */,
     14225                                59A86005119DAF7F00DEF1EF /* JSDeviceOrientationEvent.cpp */,
    1421514226                                65DF31D809D1C122000BE325 /* JSAttr.cpp */,
    1421614227                                65DF31D909D1C123000BE325 /* JSAttr.h */,
     
    1640716418                        isa = PBXGroup;
    1640816419                        children = (
     16420                                59A85EAA119D7B6E00DEF1EF /* DeviceOrientationEvent.idl */,
     16421                                59A85EA3119D68EC00DEF1EF /* DeviceOrientationEvent.h */,
     16422                                59A85EA1119D68D900DEF1EF /* DeviceOrientationEvent.cpp */,
    1640916423                                E1C4DE6D0EA75C650023CCD6 /* ActiveDOMObject.cpp */,
    1641016424                                E1C4DE680EA75C1E0023CCD6 /* ActiveDOMObject.h */,
     
    1926619280                                A871038B11A2947000DBD50E /* HTML5Tokenizer.h in Headers */,
    1926719281                                51327D6011A33A2B004F9D65 /* SinkDocument.h in Headers */,
     19282                                59A85EA4119D68EC00DEF1EF /* DeviceOrientationEvent.h in Headers */,
     19283                                59A86008119DAFA100DEF1EF /* JSDeviceOrientationEvent.h in Headers */,
    1926819284                        );
    1926919285                        runOnlyForDeploymentPostprocessing = 0;
     
    2154821564                                A871038A11A2947000DBD50E /* HTML5Tokenizer.cpp in Sources */,
    2154921565                                51327D6111A33A2B004F9D65 /* SinkDocument.cpp in Sources */,
     21566                                59A85EA2119D68D900DEF1EF /* DeviceOrientationEvent.cpp in Sources */,
     21567                                59A86006119DAF7F00DEF1EF /* JSDeviceOrientationEvent.cpp in Sources */,
    2155021568                        );
    2155121569                        runOnlyForDeploymentPostprocessing = 0;
  • trunk/WebCore/bindings/js/JSEventCustom.cpp

    r59604 r59847  
    3333#include "CompositionEvent.h"
    3434#include "CustomEvent.h"
     35#include "DeviceOrientationEvent.h"
    3536#include "Event.h"
    3637#include "JSBeforeLoadEvent.h"
     
    3839#include "JSCustomEvent.h"
    3940#include "JSCompositionEvent.h"
     41#include "JSDeviceOrientationEvent.h"
    4042#include "JSErrorEvent.h"
    4143#if ENABLE(INDEXED_DATABASE)
     
    172174    else if (event->isCustomEvent())
    173175        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
    174180    else
    175181        wrapper = CREATE_DOM_OBJECT_WRAPPER(exec, globalObject, Event, event);
  • trunk/WebCore/bindings/v8/custom/V8EventCustom.cpp

    r59602 r59847  
    4141#include "V8CompositionEvent.h"
    4242#include "V8CustomEvent.h"
     43#include "V8DeviceOrientationEvent.h"
    4344#include "V8ErrorEvent.h"
    4445#include "V8IDBErrorEvent.h"
     
    154155    if (impl->isBeforeLoadEvent())
    155156        return toV8(static_cast<BeforeLoadEvent*>(impl));
     157#if ENABLE(DEVICE_ORIENTATION)
     158    if (impl->isDeviceOrientationEvent())
     159        return toV8(static_cast<DeviceOrientationEvent*>(impl));
     160#endif
    156161    if (impl->isCustomEvent())
    157162        return toV8(static_cast<CustomEvent*>(impl));
  • trunk/WebCore/dom/Event.cpp

    r59602 r59847  
    213213#endif
    214214
     215#if ENABLE(DEVICE_ORIENTATION)
     216bool Event::isDeviceOrientationEvent() const
     217{
     218    return false;
     219}
     220#endif
     221
    215222bool Event::fromUserGesture()
    216223{
  • trunk/WebCore/dom/Event.h

    r59602 r59847  
    140140        virtual bool isTouchEvent() const;
    141141#endif
     142#if ENABLE(DEVICE_ORIENTATION)
     143        virtual bool isDeviceOrientationEvent() const;
     144#endif
    142145        bool fromUserGesture();
    143146       
  • trunk/WebCore/dom/EventNames.h

    r58832 r59847  
    5050    macro(cut) \
    5151    macro(dblclick) \
     52    macro(deviceorientation) \
    5253    macro(display) \
    5354    macro(downloading) \
  • trunk/WebCore/page/DOMWindow.h

    r58873 r59847  
    326326#endif
    327327
     328#if ENABLE(DEVICE_ORIENTATION)
     329        DEFINE_ATTRIBUTE_EVENT_LISTENER(deviceorientation);
     330#endif
     331
    328332        DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(webkitanimationstart, webkitAnimationStart);
    329333        DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(webkitanimationiteration, webkitAnimationIteration);
  • trunk/WebCore/page/DOMWindow.idl

    r59754 r59847  
    299299        attribute [Conditional=TOUCH_EVENTS,EnabledAtRuntime] EventListener ontouchend;
    300300        attribute [Conditional=TOUCH_EVENTS,EnabledAtRuntime] EventListener ontouchcancel;
     301
     302        attribute [Conditional=DEVICE_ORIENTATION] EventListener ondeviceorientation;
    301303
    302304        // EventTarget interface
  • trunk/WebKit/mac/ChangeLog

    r59840 r59847  
     12010-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
    1122010-05-20  Martin Robinson  <mrobinson@webkit.org>
    213
  • trunk/WebKit/mac/Configurations/FeatureDefines.xcconfig

    r59174 r59847  
    4848ENABLE_DATAGRID = ;
    4949ENABLE_DATALIST = ENABLE_DATALIST;
     50ENABLE_DEVICE_ORIENTATION = ;
    5051ENABLE_DOM_STORAGE = ENABLE_DOM_STORAGE;
    5152ENABLE_EVENTSOURCE = ENABLE_EVENTSOURCE;
     
    7980ENABLE_XSLT = ENABLE_XSLT;
    8081
    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_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);
     82FEATURE_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  
     12010-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
    1132010-04-09  Alexey Proskuryakov  <ap@apple.com>
    214
  • trunk/WebKitLibraries/win/tools/vsprops/FeatureDefines.vsprops

    r56968 r59847  
    1010  <Tool
    1111                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_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)"
     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)"
    1313        />
    1414  <UserMacro
     
    5353        />
    5454  <UserMacro
     55                Name="ENABLE_DEVICE_ORIENTATION"
     56                Value=""
     57                PerformEnvironmentSet="true"
     58        />
     59  <UserMacro
    5560                Name="ENABLE_DOM_STORAGE"
    5661                Value="ENABLE_DOM_STORAGE"
  • trunk/WebKitLibraries/win/tools/vsprops/FeatureDefinesCairo.vsprops

    r56968 r59847  
    1010  <Tool
    1111                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_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)"
     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)"
    1313        />
    1414  <UserMacro
     
    5050                Name="ENABLE_DATALIST"
    5151                Value="ENABLE_DATALIST"
     52                PerformEnvironmentSet="true"
     53        />
     54  <UserMacro
     55                Name="ENABLE_DEVICE_ORIENTATION"
     56                Value=""
    5257                PerformEnvironmentSet="true"
    5358        />
Note: See TracChangeset for help on using the changeset viewer.