JavaScriptCore: Add ENABLE(ORIENTATION_EVENTS)
authorbolsinga@apple.com <bolsinga@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 Sep 2009 23:10:30 +0000 (23:10 +0000)
committerbolsinga@apple.com <bolsinga@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 Sep 2009 23:10:30 +0000 (23:10 +0000)
commiteff3c7540b9c4aebf5171591c1bda32a56bbdf12
treeb7818460a5089cfd29154f96e91c5682262a3eb1
parentbc738df56c3980ceef80b59989898bc693e6b2dd
JavaScriptCore: Add ENABLE(ORIENTATION_EVENTS)
https://bugs.webkit.org/show_bug.cgi?id=29508

Reviewed by Simon Fraser & Sam Weinig.

* wtf/Platform.h: Also sort PLATFORM(IPHONE) #defines.

WebCore: Add ENABLE(ORIENTATION_EVENTS)
https://bugs.webkit.org/show_bug.cgi?id=29508

Reviewed by Simon Fraser & Sam Weinig.

See documentation here:
http://developer.apple.com/safari/library/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html#//apple_ref/doc/uid/TP40006511-SW16

* DerivedSources.make: Use new WebCore.OrientationEvents.exp file if ENABLE_ORIENTATION_EVENTS.
Add ENABLE_ORIENTATION_EVENTS to the new ADDITIONAL_IDL_DEFINES variable that is passed to the IDL
code generator. This is because ENABLE_ORIENTATION_EVENTS is not in FEATURE_DEFINES.
* WebCore.OrientationEvents.exp: Added.
* WebCore.xcodeproj/project.pbxproj: Add WebCore.OrientationEvents.exp.
* dom/EventNames.h: Add onorientationchange.
* html/HTMLAttributeNames.in: Ditto.
* html/HTMLBodyElement.cpp: Handle onorientationchange properly.
(WebCore::HTMLBodyElement::parseMappedAttribute):
(WebCore::HTMLBodyElement::onorientationchange):
(WebCore::HTMLBodyElement::setOnorientationchange):
* html/HTMLBodyElement.h: Ditto.
* html/HTMLBodyElement.idl: Ditto.
* html/HTMLFrameSetElement.cpp: Ditto.
(WebCore::HTMLFrameSetElement::parseMappedAttribute):
(WebCore::HTMLFrameSetElement::onorientationchange):
(WebCore::HTMLFrameSetElement::setOnorientationchange):
* html/HTMLFrameSetElement.h: Ditto.
* html/HTMLFrameSetElement.idl: Ditto.
* page/DOMWindow.cpp: Ditto.
(WebCore::DOMWindow::orientation): Calls up the to the Frame for the orientation value.
(WebCore::DOMWindow::onorientationchange):
(WebCore::DOMWindow::setOnorientationchange):
* page/DOMWindow.h: Handle onorientationchange properly.
* page/DOMWindow.idl: Ditto.
* page/Frame.cpp: Ditto.
(WebCore::Frame::Frame):
(WebCore::Frame::sendOrientationChangeEvent):
* page/Frame.h: Ditto.
(WebCore::Frame::orientation):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48609 268f45cc-cd09-0410-ab3c-d52691b4dbfc
19 files changed:
JavaScriptCore/ChangeLog
JavaScriptCore/wtf/Platform.h
WebCore/ChangeLog
WebCore/DerivedSources.make
WebCore/WebCore.OrientationEvents.exp [new file with mode: 0644]
WebCore/WebCore.xcodeproj/project.pbxproj
WebCore/dom/EventNames.h
WebCore/html/HTMLAttributeNames.in
WebCore/html/HTMLBodyElement.cpp
WebCore/html/HTMLBodyElement.h
WebCore/html/HTMLBodyElement.idl
WebCore/html/HTMLFrameSetElement.cpp
WebCore/html/HTMLFrameSetElement.h
WebCore/html/HTMLFrameSetElement.idl
WebCore/page/DOMWindow.cpp
WebCore/page/DOMWindow.h
WebCore/page/DOMWindow.idl
WebCore/page/Frame.cpp
WebCore/page/Frame.h