Changeset 70564 in webkit
- Timestamp:
- Oct 26, 2010 1:28:44 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit2/ChangeLog
r70561 r70564 1 2010-10-26 Anders Carlsson <andersca@apple.com> 2 3 Reviewed by Sam Weinig. 4 5 pageDidScroll callback should be on the UI process client rather than (or in addition to) the web process client 6 https://bugs.webkit.org/show_bug.cgi?id=48366 7 8 * UIProcess/API/qt/qwkpage.cpp: 9 (QWKPage::QWKPage): 10 Add zero initializer. 11 12 * UIProcess/WebPageProxy.cpp: 13 (WebKit::WebPageProxy::pageDidScroll): 14 Call the pageDidScroll client function. 15 16 * UIProcess/WebPageProxy.messages.in: 17 Add PageDidScroll message. 18 19 * WebProcess/WebPage/WebPage.cpp: 20 (WebKit::WebPage::pageDidScroll): 21 Send the PageDidScroll message. 22 1 23 2010-10-26 Brian Weinstein <bweinstein@apple.com> 2 24 -
trunk/WebKit2/UIProcess/API/C/WKPage.h
r70561 r70564 143 143 typedef void (*WKPageSetWindowFrameCallback)(WKPageRef page, WKRect frame, const void *clientInfo); 144 144 typedef bool (*WKPageRunBeforeUnloadConfirmPanelCallback)(WKPageRef page, WKStringRef message, WKFrameRef frame, const void *clientInfo); 145 typedef void (*WKPageDidDraw)(WKPageRef page, const void *clientInfo); 145 typedef void (*WKPageDidDrawCallback)(WKPageRef page, const void *clientInfo); 146 typedef void (*WKPageDidScrollCallback)(WKPageRef page, const void *clientInfo); 147 146 148 147 149 struct WKPageUIClient { … … 161 163 WKPageSetWindowFrameCallback setWindowFrame; 162 164 WKPageRunBeforeUnloadConfirmPanelCallback runBeforeUnloadConfirmPanel; 163 WKPageDidDraw didDraw; 165 WKPageDidDrawCallback didDraw; 166 WKPageDidScrollCallback pageDidScroll; 164 167 }; 165 168 typedef struct WKPageUIClient WKPageUIClient; -
trunk/WebKit2/UIProcess/API/qt/qwkpage.cpp
r70329 r70564 311 311 0, /* setWindowFrame */ 312 312 0, /* runBeforeUnloadConfirmPanel */ 313 0 /* didDraw */ 313 0, /* didDraw */ 314 0 /* pageDidScroll */ 314 315 }; 315 316 WKPageSetPageUIClient(pageRef(), &uiClient); -
trunk/WebKit2/UIProcess/WebPageProxy.cpp
r70561 r70564 920 920 } 921 921 922 void WebPageProxy::pageDidScroll() 923 { 924 m_uiClient.pageDidScroll(this); 925 } 926 922 927 void WebPageProxy::didDraw() 923 928 { -
trunk/WebKit2/UIProcess/WebPageProxy.h
r70561 r70564 275 275 void runBeforeUnloadConfirmPanel(const String& message, uint64_t frameID, bool& shouldClose); 276 276 void didChangeViewportData(const WebCore::ViewportArguments&); 277 void pageDidScroll(); 277 278 278 279 // Back/Forward list management -
trunk/WebKit2/UIProcess/WebPageProxy.messages.in
r70491 r70564 42 42 CanRunBeforeUnloadConfirmPanel() -> (bool canRun) 43 43 RunBeforeUnloadConfirmPanel(WTF::String message, uint64_t frameID) -> (bool shouldClose) 44 PageDidScroll() 44 45 45 46 # Policy messages. -
trunk/WebKit2/UIProcess/WebUIClient.cpp
r70333 r70564 192 192 return; 193 193 194 return m_pageUIClient.didDraw(toAPI(page), m_pageUIClient.clientInfo); 195 } 196 194 m_pageUIClient.didDraw(toAPI(page), m_pageUIClient.clientInfo); 195 } 196 197 void WebUIClient::pageDidScroll(WebPageProxy* page) 198 { 199 if (!m_pageUIClient.pageDidScroll) 200 return; 201 202 m_pageUIClient.pageDidScroll(toAPI(page), m_pageUIClient.clientInfo); 203 } 197 204 198 205 } // namespace WebKit -
trunk/WebKit2/UIProcess/WebUIClient.h
r70333 r70564 70 70 71 71 void didDraw(WebPageProxy*); 72 void pageDidScroll(WebPageProxy*); 72 73 73 74 private: -
trunk/WebKit2/WebProcess/WebPage/WebPage.cpp
r70504 r70564 456 456 457 457 m_uiClient.pageDidScroll(this); 458 459 WebProcess::shared().connection()->send(Messages::WebPageProxy::PageDidScroll(), m_pageID); 458 460 } 459 461 -
trunk/WebKitTools/ChangeLog
r70562 r70564 1 2010-10-26 Anders Carlsson <andersca@apple.com> 2 3 Reviewed by Sam Weinig. 4 5 pageDidScroll callback should be on the UI process client rather than (or in addition to) the web process client 6 https://bugs.webkit.org/show_bug.cgi?id=48366 7 <rdar://problem/8595202> 8 9 * MiniBrowser/mac/BrowserWindowController.m: 10 (-[BrowserWindowController awakeFromNib]): 11 * WebKitTestRunner/TestController.cpp: 12 (WTR::createOtherPage): 13 (WTR::TestController::initialize): 14 1 15 2010-10-26 Eric Seidel <eric@webkit.org> 2 16 -
trunk/WebKitTools/MiniBrowser/mac/BrowserWindowController.m
r70333 r70564 583 583 setWindowFrame, 584 584 runBeforeUnloadConfirmPanel, 585 0 /* didDraw */ 585 0, /* didDraw */ 586 0 /* pageDidScroll */ 586 587 }; 587 588 WKPageSetPageUIClient(_webView.pageRef, &uiClient); -
trunk/WebKitTools/WebKitTestRunner/TestController.cpp
r70333 r70564 122 122 setWindowFrameOtherPage, 123 123 0, // runBeforeUnloadConfirmPanel 124 0 // didDraw 124 0, // didDraw 125 0 // pageDidScroll 125 126 }; 126 127 WKPageSetPageUIClient(newPage, &otherPageUIClient); … … 207 208 setWindowFrameMainPage, 208 209 0, // runBeforeUnloadConfirmPanel 209 0 // didDraw 210 0, // didDraw 211 0 // pageDidScroll 210 212 }; 211 213 WKPageSetPageUIClient(m_mainWebView->page(), &pageUIClient);
Note: See TracChangeset
for help on using the changeset viewer.