Changeset 48609 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Sep 21, 2009, 4:10:30 PM (16 years ago)
Author:
[email protected]
Message:

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):

Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r48593 r48609  
     12009-09-21  Greg Bolsinga  <[email protected]>
     2
     3        Reviewed by Simon Fraser & Sam Weinig.
     4
     5        Add ENABLE(ORIENTATION_EVENTS)
     6        https://bugs.webkit.org/show_bug.cgi?id=29508
     7
     8        * wtf/Platform.h: Also sort PLATFORM(IPHONE) #defines.
     9
    1102009-09-21  Jedrzej Nowacki  <[email protected]>
    211
  • trunk/JavaScriptCore/wtf/Platform.h

    r48527 r48609  
    424424
    425425#if PLATFORM(IPHONE)
    426 #define WTF_PLATFORM_CF 1
    427 #define WTF_USE_PTHREADS 1
    428426#define ENABLE_CONTEXT_MENUS 0
    429427#define ENABLE_DRAG_SUPPORT 0
    430428#define ENABLE_FTPDIR 1
     429#define ENABLE_GEOLOCATION 1
     430#define ENABLE_ICONDATABASE 0
    431431#define ENABLE_INSPECTOR 0
    432432#define ENABLE_MAC_JAVA_BRIDGE 0
    433 #define ENABLE_ICONDATABASE 0
    434 #define ENABLE_GEOLOCATION 1
    435433#define ENABLE_NETSCAPE_PLUGIN_API 0
     434#define ENABLE_ORIENTATION_EVENTS 1
     435#define ENABLE_REPAINT_THROTTLING 1
    436436#define HAVE_READLINE 1
    437 #define ENABLE_REPAINT_THROTTLING 1
     437#define WTF_PLATFORM_CF 1
     438#define WTF_USE_PTHREADS 1
    438439#endif
    439440
     
    593594#if !defined(ENABLE_NETSCAPE_PLUGIN_API)
    594595#define ENABLE_NETSCAPE_PLUGIN_API 1
     596#endif
     597
     598#if !defined(ENABLE_ORIENTATION_EVENTS)
     599#define ENABLE_ORIENTATION_EVENTS 0
    595600#endif
    596601
Note: See TracChangeset for help on using the changeset viewer.