Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2758)

Unified Diff: content/shell/renderer/test_runner/WebTestProxy.cpp

Issue 231213002: Move modal dialogs from WebViewClient to WebFrameClient, part 1.5/3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: better Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/shell/renderer/test_runner/WebTestProxy.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/test_runner/WebTestProxy.cpp
diff --git a/content/shell/renderer/test_runner/WebTestProxy.cpp b/content/shell/renderer/test_runner/WebTestProxy.cpp
index 723377d06e081d3e0251e0204b42414d69484cf7..6dc94a7b846ef97666c1f80d5a8836e199fe6261 100644
--- a/content/shell/renderer/test_runner/WebTestProxy.cpp
+++ b/content/shell/renderer/test_runner/WebTestProxy.cpp
@@ -1307,29 +1307,6 @@ void WebTestProxyBase::didAddMessageToConsole(const WebConsoleMessage& message,
m_delegate->printMessage(string("\n"));
}
-void WebTestProxyBase::runModalAlertDialog(WebLocalFrame*, const WebString& message)
-{
- m_delegate->printMessage(string("ALERT: ") + message.utf8().data() + "\n");
-}
-
-bool WebTestProxyBase::runModalConfirmDialog(WebLocalFrame*, const WebString& message)
-{
- m_delegate->printMessage(string("CONFIRM: ") + message.utf8().data() + "\n");
- return true;
-}
-
-bool WebTestProxyBase::runModalPromptDialog(WebLocalFrame* frame, const WebString& message, const WebString& defaultValue, WebString*)
-{
- m_delegate->printMessage(string("PROMPT: ") + message.utf8().data() + ", default text: " + defaultValue.utf8().data() + "\n");
- return true;
-}
-
-bool WebTestProxyBase::runModalBeforeUnloadDialog(WebLocalFrame*, const WebString& message)
-{
- m_delegate->printMessage(string("CONFIRM NAVIGATION: ") + message.utf8().data() + "\n");
- return !m_testInterfaces->testRunner()->shouldStayOnPageAfterHandlingBeforeUnload();
-}
-
void WebTestProxyBase::locationChangeDone(WebFrame* frame)
{
if (frame != m_testInterfaces->testRunner()->topLoadingFrame())
« no previous file with comments | « content/shell/renderer/test_runner/WebTestProxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698