Changeset 141392 in webkit
- Timestamp:
- Jan 31, 2013 2:02:04 AM (11 years ago)
- Location:
- trunk/Tools
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r141385 r141392 1 2013-01-31 Jochen Eisinger <jochen@chromium.org> 2 3 [chromium] move runModalBeforeUnloadDialog to TestRunner library 4 https://bugs.webkit.org/show_bug.cgi?id=108442 5 6 Reviewed by Adam Barth. 7 8 * DumpRenderTree/chromium/TestRunner/public/WebTestProxy.h: 9 (WebTestRunner::WebTestProxy::runModalBeforeUnloadDialog): 10 * DumpRenderTree/chromium/TestRunner/src/WebTestProxy.cpp: 11 (WebTestRunner::WebTestProxyBase::runModalBeforeUnloadDialog): 12 * DumpRenderTree/chromium/WebViewHost.cpp: 13 * DumpRenderTree/chromium/WebViewHost.h: 14 1 15 2013-01-31 Jochen Eisinger <jochen@chromium.org> 2 16 -
trunk/Tools/DumpRenderTree/chromium/TestRunner/public/WebTestProxy.h
r141385 r141392 466 466 virtual bool runModalBeforeUnloadDialog(WebKit::WebFrame* frame, const WebKit::WebString& message) 467 467 { 468 WebTestProxyBase::runModalBeforeUnloadDialog(frame, message); 469 return Base::runModalBeforeUnloadDialog(frame, message); 468 return WebTestProxyBase::runModalBeforeUnloadDialog(frame, message); 470 469 } 471 470 virtual WebKit::WebNavigationPolicy decidePolicyForNavigation(WebKit::WebFrame* frame, const WebKit::WebURLRequest& request, WebKit::WebNavigationType type, const WebKit::WebNode& originatingNode, WebKit::WebNavigationPolicy defaultPolicy, bool isRedirect) -
trunk/Tools/DumpRenderTree/chromium/TestRunner/src/WebTestProxy.cpp
r141385 r141392 976 976 { 977 977 m_delegate->printMessage(string("CONFIRM NAVIGATION: ") + message.utf8().data() + "\n"); 978 return true; 978 if (!m_testInterfaces->testRunner()) 979 return true; 980 return !m_testInterfaces->testRunner()->shouldStayOnPageAfterHandlingBeforeUnload(); 979 981 } 980 982 -
trunk/Tools/DumpRenderTree/chromium/WebViewHost.cpp
r141385 r141392 237 237 } 238 238 239 bool WebViewHost::runModalBeforeUnloadDialog(WebFrame*, const WebString& message)240 {241 return !testRunner()->shouldStayOnPageAfterHandlingBeforeUnload();242 }243 244 239 void WebViewHost::showContextMenu(WebFrame*, const WebContextMenuData& contextMenuData) 245 240 { … … 1135 1130 // Private functions ---------------------------------------------------------- 1136 1131 1137 ::WebTestRunner::WebTestRunner* WebViewHost::testRunner() const1138 {1139 return m_shell->testRunner();1140 }1141 1142 1132 void WebViewHost::updateForCommittedLoad(WebFrame* frame, bool isNewNavigation) 1143 1133 { -
trunk/Tools/DumpRenderTree/chromium/WebViewHost.h
r141381 r141392 208 208 virtual bool runModalConfirmDialog(WebKit::WebFrame*, const WebKit::WebString&); 209 209 virtual bool runModalPromptDialog(WebKit::WebFrame*, const WebKit::WebString& message, const WebKit::WebString& defaultValue, WebKit::WebString* actualValue); 210 virtual bool runModalBeforeUnloadDialog(WebKit::WebFrame*, const WebKit::WebString&);211 210 virtual void showContextMenu(WebKit::WebFrame*, const WebKit::WebContextMenuData&); 212 211 virtual void didUpdateLayout(); … … 303 302 }; 304 303 305 WebTestRunner::WebTestRunner* testRunner() const;306 307 304 // Called the title of the page changes. 308 305 // Can be used to update the title of the window.
Note: See TracChangeset
for help on using the changeset viewer.