Changeset 86183 in webkit
- Timestamp:
- May 10, 2011 3:15:09 PM (13 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r86175 r86183 1 2011-05-10 Jeff Miller <jeffm@apple.com> 2 3 Reviewed by Anders Carlsson. 4 5 WebKit2: Windows clients need to know if the page overlay is installed 6 https://bugs.webkit.org/show_bug.cgi?id=60562 7 <rdar://problem/8940164> 8 9 Until we move all the UI for find on page into WebKit on Windows (specifically, drawing the find bouncy), 10 WebKit clients need to know whether WebKit is drawing the page overlay or not. Keep track of this in 11 the WebPageProxy in the UI process and provide a WebKit2 API to retrieve this information. 12 13 * UIProcess/API/C/win/WKView.cpp: 14 (WKViewIsPageOverlayInstalled): Added. 15 * UIProcess/API/C/win/WKView.h: Added WKViewIsPageOverlayInstalled(). 16 17 * UIProcess/PageClient.h: Added didInstallOrUninstallPageOverlay(). 18 * UIProcess/WebPageProxy.h: Added didInstallOrUninstallPageOverlay(). 19 * UIProcess/WebPageProxy.messages.in: Added DidInstallOrUninstallPageOverlay. 20 * UIProcess/win/WebPageProxyWin.cpp: 21 (WebKit::WebPageProxy::didInstallOrUninstallPageOverlay): Added. 22 23 * UIProcess/win/WebView.cpp: 24 (WebKit::WebView::WebView): Initialize m_pageOverlayInstalled. 25 (WebKit::WebView::didInstallOrUninstallPageOverlay): Added. 26 * UIProcess/win/WebView.h: Added didInstallOrUninstallPageOverlay() and m_pageOverlayInstalled. 27 (WebKit::WebView::pageOverlayInstalled): Added. 28 29 * WebProcess/WebPage/WebPage.cpp: 30 (WebKit::WebPage::installPageOverlay): Send message to UI process to tell it the page overlay is installed. 31 (WebKit::WebPage::uninstallPageOverlay): Send message to UI process to tell it the page overlay is uninstalled. 32 1 33 2011-05-10 Anders Carlsson <andersca@apple.com> 2 34 -
trunk/Source/WebKit2/UIProcess/API/C/win/WKView.cpp
r85794 r86183 88 88 } 89 89 90 bool WKViewIsPageOverlayInstalled(WKViewRef viewRef) 91 { 92 return toImpl(viewRef)->pageOverlayInstalled(); 93 } 94 90 95 void WKViewSetViewUndoClient(WKViewRef viewRef, const WKViewUndoClient* wkClient) 91 96 { -
trunk/Source/WebKit2/UIProcess/API/C/win/WKView.h
r85794 r86183 79 79 WK_EXPORT WKViewFindIndicatorCallback WKViewGetFindIndicatorCallback(WKViewRef view, void** context); 80 80 81 WK_EXPORT bool WKViewIsPageOverlayInstalled(WKViewRef view); 82 81 83 WK_EXPORT void WKViewSetDrawsTransparentBackground(WKViewRef view, bool drawsTransparentBackground); 82 84 WK_EXPORT bool WKViewDrawsTransparentBackground(WKViewRef view); -
trunk/Source/WebKit2/UIProcess/PageClient.h
r85958 r86183 135 135 136 136 virtual void setFindIndicator(PassRefPtr<FindIndicator>, bool fadeOut) = 0; 137 #if PLATFORM(WIN) 138 virtual void didInstallOrUninstallPageOverlay(bool) = 0; 139 #endif 137 140 138 141 #if USE(ACCELERATED_COMPOSITING) -
trunk/Source/WebKit2/UIProcess/WebPageProxy.h
r85958 r86183 387 387 void didFindString(const String&, uint32_t matchCount); 388 388 void didFailToFindString(const String&); 389 #if PLATFORM(WIN) 390 void didInstallOrUninstallPageOverlay(bool); 391 #endif 389 392 390 393 void getContentsAsString(PassRefPtr<StringCallback>); -
trunk/Source/WebKit2/UIProcess/WebPageProxy.messages.in
r85958 r86183 162 162 DidFindString(WTF::String string, uint32_t matchCount) 163 163 DidFailToFindString(WTF::String string) 164 #if PLATFORM(WIN) 165 DidInstallOrUninstallPageOverlay(bool didInstall) 166 #endif 164 167 165 168 # PopupMenu messages -
trunk/Source/WebKit2/UIProcess/win/WebPageProxyWin.cpp
r85958 r86183 76 76 } 77 77 78 void WebPageProxy::didInstallOrUninstallPageOverlay(bool didInstall) 79 { 80 m_pageClient->didInstallOrUninstallPageOverlay(didInstall); 81 } 82 78 83 } // namespace WebKit -
trunk/Source/WebKit2/UIProcess/win/WebView.cpp
r85961 r86183 281 281 , m_findIndicatorCallback(0) 282 282 , m_findIndicatorCallbackContext(0) 283 , m_pageOverlayInstalled(false) 283 284 , m_lastPanX(0) 284 285 , m_lastPanY(0) … … 1465 1466 } 1466 1467 1468 void WebView::didInstallOrUninstallPageOverlay(bool didInstall) 1469 { 1470 m_pageOverlayInstalled = didInstall; 1471 } 1472 1467 1473 void WebView::didCommitLoadForMainFrame(bool useCustomRepresentation) 1468 1474 { -
trunk/Source/WebKit2/UIProcess/win/WebView.h
r85958 r86183 83 83 void setFindIndicatorCallback(WKViewFindIndicatorCallback, void*); 84 84 WKViewFindIndicatorCallback getFindIndicatorCallback(void**); 85 bool pageOverlayInstalled() const { return m_pageOverlayInstalled; } 85 86 void initialize(); 86 87 … … 195 196 virtual PassRefPtr<WebContextMenuProxy> createContextMenuProxy(WebPageProxy*); 196 197 virtual void setFindIndicator(PassRefPtr<FindIndicator>, bool fadeOut); 198 virtual void didInstallOrUninstallPageOverlay(bool); 197 199 198 200 #if USE(ACCELERATED_COMPOSITING) … … 253 255 WKViewFindIndicatorCallback m_findIndicatorCallback; 254 256 void* m_findIndicatorCallbackContext; 257 bool m_pageOverlayInstalled; 255 258 256 259 COMPtr<IDataObject> m_dragData; -
trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp
r86103 r86183 814 814 815 815 m_drawingArea->didInstallPageOverlay(); 816 #if PLATFORM(WIN) 817 send(Messages::WebPageProxy::DidInstallOrUninstallPageOverlay(true)); 818 #endif 819 816 820 m_pageOverlay->setNeedsDisplay(); 817 821 } … … 831 835 832 836 m_drawingArea->didUninstallPageOverlay(); 837 #if PLATFORM(WIN) 838 send(Messages::WebPageProxy::DidInstallOrUninstallPageOverlay(false)); 839 #endif 833 840 } 834 841
Note: See TracChangeset
for help on using the changeset viewer.