Changeset 116544 in webkit


Ignore:
Timestamp:
May 9, 2012 10:58:47 AM (12 years ago)
Author:
bulach@chromium.org
Message:

[chromium] Exposes OrientationChangeEvent.
https://bugs.webkit.org/show_bug.cgi?id=85976

Reviewed by Adam Barth.

This is used by the android port, we need to expose the existing
WebCore API.

  • public/WebFrame.h:

(WebFrame):

  • src/WebFrameImpl.cpp:

(WebKit::WebFrameImpl::sendOrientationChangeEvent):
(WebKit):

  • src/WebFrameImpl.h:

(WebFrameImpl):

Location:
trunk/Source/WebKit/chromium
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/chromium/ChangeLog

    r116538 r116544  
     12012-05-09  Marcus Bulach  <bulach@chromium.org>
     2
     3        [chromium] Exposes OrientationChangeEvent.
     4        https://bugs.webkit.org/show_bug.cgi?id=85976
     5
     6        Reviewed by Adam Barth.
     7
     8        This is used by the android port, we need to expose the existing
     9        WebCore API.
     10
     11        * public/WebFrame.h:
     12        (WebFrame):
     13        * src/WebFrameImpl.cpp:
     14        (WebKit::WebFrameImpl::sendOrientationChangeEvent):
     15        (WebKit):
     16        * src/WebFrameImpl.h:
     17        (WebFrameImpl):
     18
    1192012-05-09  Dana Jansens  <danakj@chromium.org>
    220
  • trunk/Source/WebKit/chromium/public/WebFrame.h

    r115472 r116544  
    566566    virtual void resetMatchCount() = 0;
    567567
     568    // OrientationChange event ---------------------------------------------
     569
     570    // Orientation is the interface orientation in degrees.
     571    // Some examples are:
     572    //  0 is straight up; -90 is when the device is rotated 90 clockwise;
     573    //  90 is when rotated counter clockwise.
     574    virtual void sendOrientationChangeEvent(int orientation) = 0;
    568575
    569576    // Events --------------------------------------------------------------
  • trunk/Source/WebKit/chromium/src/WebFrameImpl.cpp

    r116388 r116544  
    18661866}
    18671867
     1868void WebFrameImpl::sendOrientationChangeEvent(int orientation)
     1869{
     1870#if ENABLE(ORIENTATION_EVENTS)
     1871    if (m_frame)
     1872        m_frame->sendOrientationChangeEvent(orientation);
     1873#endif
     1874}
     1875
    18681876void WebFrameImpl::addEventListener(const WebString& eventType, WebDOMEventListener* listener, bool useCapture)
    18691877{
  • trunk/Source/WebKit/chromium/src/WebFrameImpl.h

    r115472 r116544  
    209209    virtual void handleIntentFailure(int, const WebString&);
    210210
     211    virtual void sendOrientationChangeEvent(int orientation);
     212
    211213    virtual void addEventListener(const WebString& eventType,
    212214                                  WebDOMEventListener*, bool useCapture);
Note: See TracChangeset for help on using the changeset viewer.