[WebIDL] Move Touch related bindings in Document to their own IDL file
authorweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 20 Jun 2017 03:25:45 +0000 (03:25 +0000)
committerweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 20 Jun 2017 03:25:45 +0000 (03:25 +0000)
commitc32845aaf74aed7ac99fa52e04a5b376db615af2
tree7737503e87114ae6c6b893d6d0d33a8e9a2795a4
parentdc87197cecd877e78817d840fe6ff78c4a1ce377
[WebIDL] Move Touch related bindings in Document to their own IDL file
https://bugs.webkit.org/show_bug.cgi?id=173521

Reviewed by Alex Christensen.

Rather than #including in the middle of an IDL file, this moves the touch related
bindings in Document.idl to a new partial interface for Document in DocumentTouch.idl.
While here, remove the custom binding for createTouchList.

* CMakeLists.txt:
* DerivedSources.make:
* WebCore.xcodeproj/project.pbxproj:
Add new files.

* bindings/js/JSDocumentCustom.cpp:
(WebCore::JSDocument::createTouchList): Deleted.
Remove createTouchList. It can be generated now.

* dom/Document.cpp:
(WebCore::Document::createTouch): Deleted.
* dom/Document.h:
Move touch related bindings code to DocumentTouch.h/cpp.
Remove DocumentIOSForward as it is no longer needed.

* dom/Document.idl:
Move touch related bindings to DocumentTouch.idl

* dom/DocumentTouch.h: Added.
* dom/DocumentTouch.cpp: Added.
(WebCore::DocumentTouch::createTouch):
Moved from Document.

(WebCore::DocumentTouch::createTouchList):
Added to aid generated binding.

* dom/DocumentTouch.idl: Added.
Moved operations from Document.h

* dom/TouchList.h:
(WebCore::TouchList::create):
(WebCore::TouchList::TouchList):
Added create that works with the bindings.

* dom/ios/TouchEvents.cpp:
Add DocumentTouchIOS.h and sort.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@218529 268f45cc-cd09-0410-ab3c-d52691b4dbfc
13 files changed:
Source/WebCore/CMakeLists.txt
Source/WebCore/ChangeLog
Source/WebCore/DerivedSources.make
Source/WebCore/WebCore.xcodeproj/project.pbxproj
Source/WebCore/bindings/js/JSDocumentCustom.cpp
Source/WebCore/dom/Document.cpp
Source/WebCore/dom/Document.h
Source/WebCore/dom/Document.idl
Source/WebCore/dom/DocumentTouch.cpp [new file with mode: 0644]
Source/WebCore/dom/DocumentTouch.h [new file with mode: 0644]
Source/WebCore/dom/DocumentTouch.idl [new file with mode: 0644]
Source/WebCore/dom/TouchList.h
Source/WebCore/dom/ios/TouchEvents.cpp