Changeset 116544 in webkit
- Timestamp:
- May 9, 2012 10:58:47 AM (12 years ago)
- Location:
- trunk/Source/WebKit/chromium
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/chromium/ChangeLog
r116538 r116544 1 2012-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 1 19 2012-05-09 Dana Jansens <danakj@chromium.org> 2 20 -
trunk/Source/WebKit/chromium/public/WebFrame.h
r115472 r116544 566 566 virtual void resetMatchCount() = 0; 567 567 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; 568 575 569 576 // Events -------------------------------------------------------------- -
trunk/Source/WebKit/chromium/src/WebFrameImpl.cpp
r116388 r116544 1866 1866 } 1867 1867 1868 void WebFrameImpl::sendOrientationChangeEvent(int orientation) 1869 { 1870 #if ENABLE(ORIENTATION_EVENTS) 1871 if (m_frame) 1872 m_frame->sendOrientationChangeEvent(orientation); 1873 #endif 1874 } 1875 1868 1876 void WebFrameImpl::addEventListener(const WebString& eventType, WebDOMEventListener* listener, bool useCapture) 1869 1877 { -
trunk/Source/WebKit/chromium/src/WebFrameImpl.h
r115472 r116544 209 209 virtual void handleIntentFailure(int, const WebString&); 210 210 211 virtual void sendOrientationChangeEvent(int orientation); 212 211 213 virtual void addEventListener(const WebString& eventType, 212 214 WebDOMEventListener*, bool useCapture);
Note: See TracChangeset
for help on using the changeset viewer.