Changeset 80569 in webkit
- Timestamp:
- Mar 8, 2011 10:18:51 AM (13 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r80568 r80569 1 2011-03-08 Chris Fleizach <cfleizach@apple.com> 2 3 Reviewed by Darin Adler. 4 5 AX: Webkit2 not sending UAZoomFocusChanged notifications 6 https://bugs.webkit.org/show_bug.cgi?id=55916 7 8 Needed to implement the windowToScreen() method so that the right frame 9 could be calculated to send for zoom focus changes. 10 11 * UIProcess/API/mac/PageClientImpl.h: 12 * UIProcess/API/mac/PageClientImpl.mm: 13 (WebKit::PageClientImpl::windowToScreen): 14 * UIProcess/API/qt/qwkpage.cpp: 15 (QWKPagePrivate::windowToScreen): 16 * UIProcess/API/qt/qwkpage_p.h: 17 * UIProcess/PageClient.h: 18 * UIProcess/WebPageProxy.cpp: 19 (WebKit::WebPageProxy::windowToScreen): 20 * UIProcess/WebPageProxy.h: 21 * UIProcess/WebPageProxy.messages.in: 22 * UIProcess/win/WebView.cpp: 23 (WebKit::WebView::windowToScreen): 24 * UIProcess/win/WebView.h: 25 * WebProcess/WebCoreSupport/WebChromeClient.cpp: 26 (WebKit::WebChromeClient::windowToScreen): 27 * WebProcess/WebPage/WebPage.cpp: 28 (WebKit::WebPage::windowToScreen): 29 * WebProcess/WebPage/WebPage.h: 30 1 31 2011-03-08 John Sullivan <sullivan@apple.com> 2 32 -
trunk/Source/WebKit2/UIProcess/API/mac/PageClientImpl.h
r80394 r80569 75 75 virtual WebCore::FloatRect convertToDeviceSpace(const WebCore::FloatRect&); 76 76 virtual WebCore::FloatRect convertToUserSpace(const WebCore::FloatRect&); 77 77 virtual WebCore::IntRect windowToScreen(const WebCore::IntRect&); 78 78 79 virtual void doneWithKeyEvent(const NativeWebKeyboardEvent&, bool wasEventHandled); 79 80 -
trunk/Source/WebKit2/UIProcess/API/mac/PageClientImpl.mm
r80394 r80569 304 304 return [m_wkView _convertToUserSpace:rect]; 305 305 } 306 307 IntRect PageClientImpl::windowToScreen(const IntRect& rect) 308 { 309 NSRect tempRect = rect; 310 tempRect = [m_wkView convertRect:tempRect toView:nil]; 311 tempRect.origin = [[m_wkView window] convertBaseToScreen:tempRect.origin]; 312 return enclosingIntRect(tempRect); 313 } 306 314 307 315 void PageClientImpl::doneWithKeyEvent(const NativeWebKeyboardEvent& event, bool wasEventHandled) -
trunk/Source/WebKit2/UIProcess/API/qt/qwkpage.cpp
r80394 r80569 219 219 220 220 FloatRect QWKPagePrivate::convertToDeviceSpace(const FloatRect& rect) 221 { 222 return rect; 223 } 224 225 IntRect QWKPagePrivate::windowToScreen(const IntRect& rect) 221 226 { 222 227 return rect; -
trunk/Source/WebKit2/UIProcess/API/qt/qwkpage_p.h
r80394 r80569 78 78 virtual WebCore::FloatRect convertToDeviceSpace(const WebCore::FloatRect&); 79 79 virtual WebCore::FloatRect convertToUserSpace(const WebCore::FloatRect&); 80 virtual WebCore::IntRect windowToScreen(const WebCore::IntRect&); 81 80 82 virtual void doneWithKeyEvent(const WebKit::NativeWebKeyboardEvent&, bool wasEventHandled); 81 83 virtual void selectionChanged(bool, bool, bool, bool); -
trunk/Source/WebKit2/UIProcess/PageClient.h
r80394 r80569 108 108 virtual WebCore::FloatRect convertToDeviceSpace(const WebCore::FloatRect&) = 0; 109 109 virtual WebCore::FloatRect convertToUserSpace(const WebCore::FloatRect&) = 0; 110 110 virtual WebCore::IntRect windowToScreen(const WebCore::IntRect&) = 0; 111 111 112 virtual void doneWithKeyEvent(const NativeWebKeyboardEvent&, bool wasEventHandled) = 0; 112 113 -
trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp
r80479 r80569 1890 1890 } 1891 1891 1892 void WebPageProxy::windowToScreen(const IntRect& viewRect, IntRect& result) 1893 { 1894 result = m_pageClient->windowToScreen(viewRect); 1895 } 1896 1892 1897 void WebPageProxy::runBeforeUnloadConfirmPanel(const String& message, uint64_t frameID, bool& shouldClose) 1893 1898 { -
trunk/Source/WebKit2/UIProcess/WebPageProxy.h
r80479 r80569 535 535 void setWindowFrame(const WebCore::FloatRect&); 536 536 void getWindowFrame(WebCore::FloatRect&); 537 void windowToScreen(const WebCore::IntRect& viewRect, WebCore::IntRect& result); 537 538 void runBeforeUnloadConfirmPanel(const String& message, uint64_t frameID, bool& shouldClose); 538 539 void didChangeViewportData(const WebCore::ViewportArguments&); -
trunk/Source/WebKit2/UIProcess/WebPageProxy.messages.in
r80479 r80569 49 49 SetWindowFrame(WebCore::FloatRect windowFrame) 50 50 GetWindowFrame() -> (WebCore::FloatRect windowFrame) 51 WindowToScreen(WebCore::IntRect rect) -> (WebCore::IntRect screenFrame) 51 52 RunBeforeUnloadConfirmPanel(WTF::String message, uint64_t frameID) -> (bool shouldClose) 52 53 PageDidScroll() -
trunk/Source/WebKit2/UIProcess/win/WebView.cpp
r80398 r80569 807 807 } 808 808 809 IntRect WebView::windowToScreen(const IntRect& rect) 810 { 811 return rect; 812 } 813 809 814 FloatRect WebView::convertToUserSpace(const FloatRect& rect) 810 815 { -
trunk/Source/WebKit2/UIProcess/win/WebView.h
r80394 r80569 152 152 virtual WebCore::FloatRect convertToDeviceSpace(const WebCore::FloatRect&); 153 153 virtual WebCore::FloatRect convertToUserSpace(const WebCore::FloatRect&); 154 virtual WebCore::IntRect windowToScreen(const WebCore::IntRect&); 154 155 virtual void doneWithKeyEvent(const NativeWebKeyboardEvent&, bool wasEventHandled); 155 156 virtual void compositionSelectionChanged(bool); -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebChromeClient.cpp
r80297 r80569 386 386 } 387 387 388 IntRect WebChromeClient::windowToScreen(const IntRect&) const 389 { 390 notImplemented(); 391 return IntRect(); 388 IntRect WebChromeClient::windowToScreen(const IntRect& rect) const 389 { 390 return m_page->windowToScreen(rect); 392 391 } 393 392 -
trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp
r80431 r80569 1177 1177 m_userAgent = userAgent; 1178 1178 } 1179 1180 IntRect WebPage::windowToScreen(const IntRect& rect) 1181 { 1182 IntRect screenRect; 1183 sendSync(Messages::WebPageProxy::WindowToScreen(rect), Messages::WebPageProxy::WindowToScreen::Reply(screenRect)); 1184 return screenRect; 1185 } 1179 1186 1180 1187 IntRect WebPage::windowResizerRect() const -
trunk/Source/WebKit2/WebProcess/WebPage/WebPage.h
r80398 r80569 239 239 void uninstallPageOverlay(PageOverlay*); 240 240 bool hasPageOverlay() const { return m_pageOverlay; } 241 WebCore::IntRect windowToScreen(const WebCore::IntRect&); 241 242 242 243 PassRefPtr<WebImage> snapshotInViewCoordinates(const WebCore::IntRect&, ImageOptions);
Note: See TracChangeset
for help on using the changeset viewer.