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

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

Issue 10093011: Show a replacement plug-in for loading errors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 8 years, 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "webkit/tools/test_shell/test_webview_delegate.h" 9 #include "webkit/tools/test_shell/test_webview_delegate.h"
10 10
(...skipping 926 matching lines...) Expand 10 before | Expand all | Expand 10 after
937 void TestWebViewDelegate::openFileSystem( 937 void TestWebViewDelegate::openFileSystem(
938 WebFrame* frame, WebFileSystem::Type type, long long size, bool create, 938 WebFrame* frame, WebFileSystem::Type type, long long size, bool create,
939 WebFileSystemCallbacks* callbacks) { 939 WebFileSystemCallbacks* callbacks) {
940 SimpleFileSystem* fileSystem = static_cast<SimpleFileSystem*>( 940 SimpleFileSystem* fileSystem = static_cast<SimpleFileSystem*>(
941 WebKit::webKitPlatformSupport()->fileSystem()); 941 WebKit::webKitPlatformSupport()->fileSystem());
942 fileSystem->OpenFileSystem(frame, type, size, create, callbacks); 942 fileSystem->OpenFileSystem(frame, type, size, create, callbacks);
943 } 943 }
944 944
945 // WebPluginPageDelegate ----------------------------------------------------- 945 // WebPluginPageDelegate -----------------------------------------------------
946 946
947 WebKit::WebPlugin* TestWebViewDelegate::CreatePluginReplacement(
948 const FilePath& file_path) {
949 return NULL;
950 }
951
947 WebCookieJar* TestWebViewDelegate::GetCookieJar() { 952 WebCookieJar* TestWebViewDelegate::GetCookieJar() {
948 return WebKit::webKitPlatformSupport()->cookieJar(); 953 return WebKit::webKitPlatformSupport()->cookieJar();
949 } 954 }
950 955
951 // Public methods ------------------------------------------------------------ 956 // Public methods ------------------------------------------------------------
952 957
953 TestWebViewDelegate::TestWebViewDelegate(TestShell* shell) 958 TestWebViewDelegate::TestWebViewDelegate(TestShell* shell)
954 : policy_delegate_enabled_(false), 959 : policy_delegate_enabled_(false),
955 policy_delegate_is_permissive_(false), 960 policy_delegate_is_permissive_(false),
956 policy_delegate_should_notify_done_(false), 961 policy_delegate_should_notify_done_(false),
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
1144 } 1149 }
1145 1150
1146 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) { 1151 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) {
1147 fake_rect_ = rect; 1152 fake_rect_ = rect;
1148 using_fake_rect_ = true; 1153 using_fake_rect_ = true;
1149 } 1154 }
1150 1155
1151 WebRect TestWebViewDelegate::fake_window_rect() { 1156 WebRect TestWebViewDelegate::fake_window_rect() {
1152 return fake_rect_; 1157 return fake_rect_;
1153 } 1158 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698