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

Side by Side Diff: webkit/tools/test_shell/test_webview_delegate.cc

Issue 227006: Move some more methods from WebViewDelegate to WebViewClient.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/tools/test_shell/test_webview_delegate.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file contains the implementation of TestWebViewDelegate, which serves 5 // This file contains the implementation of TestWebViewDelegate, which serves
6 // as the WebViewDelegate for the TestShellWebHost. The host is expected to 6 // as the WebViewDelegate for the TestShellWebHost. The host is expected to
7 // have initialized a MessageLoop before these methods are called. 7 // have initialized a MessageLoop before these methods are called.
8 8
9 #include "config.h" 9 #include "config.h"
10 10
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 } 435 }
436 } 436 }
437 437
438 void TestWebViewDelegate::didEndEditing() { 438 void TestWebViewDelegate::didEndEditing() {
439 if (shell_->ShouldDumpEditingCallbacks()) { 439 if (shell_->ShouldDumpEditingCallbacks()) {
440 printf("EDITING DELEGATE: " 440 printf("EDITING DELEGATE: "
441 "webViewDidEndEditing:WebViewDidEndEditingNotification\n"); 441 "webViewDidEndEditing:WebViewDidEndEditingNotification\n");
442 } 442 }
443 } 443 }
444 444
445 WebString TestWebViewDelegate::autoCorrectWord(const WebString& word) {
446 // Dummy implementation.
447 return word;
448 }
449
445 void TestWebViewDelegate::runModalAlertDialog( 450 void TestWebViewDelegate::runModalAlertDialog(
446 WebFrame* frame, const WebString& message) { 451 WebFrame* frame, const WebString& message) {
447 if (!shell_->layout_test_mode()) { 452 if (!shell_->layout_test_mode()) {
448 ShowJavaScriptAlert(UTF16ToWideHack(message)); 453 ShowJavaScriptAlert(UTF16ToWideHack(message));
449 } else { 454 } else {
450 printf("ALERT: %s\n", message.utf8().data()); 455 printf("ALERT: %s\n", message.utf8().data());
451 } 456 }
452 } 457 }
453 458
454 bool TestWebViewDelegate::runModalConfirmDialog( 459 bool TestWebViewDelegate::runModalConfirmDialog(
(...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after
1067 return L"main frame \"" + name + L"\""; 1072 return L"main frame \"" + name + L"\"";
1068 else 1073 else
1069 return L"main frame"; 1074 return L"main frame";
1070 } else { 1075 } else {
1071 if (name.length()) 1076 if (name.length())
1072 return L"frame \"" + name + L"\""; 1077 return L"frame \"" + name + L"\"";
1073 else 1078 else
1074 return L"frame (anonymous)"; 1079 return L"frame (anonymous)";
1075 } 1080 }
1076 } 1081 }
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/test_webview_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698