Skip to content
  • benm@google.com's avatar
    2010-10-19 Ben Murdoch <benm@google.com> · b08424cc
    benm@google.com authored
            Reviewed by Steve Block.
    
            Missing support for document.createTouch and document.createTouchList
            https://bugs.webkit.org/show_bug.cgi?id=47676
    
            Add tests to verify the presence of the APIs and that they work correctly.
    
            * fast/events/touch/document-create-touch-expected.txt: Added.
            * fast/events/touch/document-create-touch-list-expected.txt: Added.
            * fast/events/touch/document-create-touch-list.html: Added.
            * fast/events/touch/document-create-touch.html: Added.
            * fast/events/touch/script-tests/document-create-touch-list.js: Added.
            * fast/events/touch/script-tests/document-create-touch.js: Added.
    2010-10-19  Ben Murdoch  <benm@google.com>
    
            Reviewed by Steve Block.
    
            Missing support for document.createTouch and document.createTouchList
            https://bugs.webkit.org/show_bug.cgi?id=47676
    
            These APIs are used by many sites to detect support for touch events.
    
            Implement the APIs according to the documentation at:
            http://developer.apple.com/library/safari/#documentation/UserExperience/Reference/DocumentAdditionsReference/DocumentAdditions/DocumentAdditions.html
    
            Tests: fast/events/touch/document-create-touch-list.html
                   fast/events/touch/document-create-touch.html
    
            * bindings/js/JSBindingsAllInOne.cpp: Add new files to list.
            * bindings/js/JSTouchCustom.cpp: Added.
            (WebCore::toJSNewlyCreated):
            * bindings/js/JSTouchListCustom.cpp: Added.
            (WebCore::toJSNewlyCreated):
            * bindings/scripts/CodeGeneratorJS.pm:
            * dom/Document.cpp:
            (WebCore::Document::createTouch):
            (WebCore::Document::createTouchList):
            * dom/Document.h:
            * dom/Document.idl: Add createTouch and createTouchList functions.
            * Android.jscbindings.mk: Update makefiles.
            * CMakeLists.txt: Ditto.
            * GNUmakefile.am: Ditto.
            * WebCore.gypi: Ditto.
            * WebCore.pro: Ditto.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@70047 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    b08424cc