OLD | NEW |
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 Loading... |
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 | |
952 WebCookieJar* TestWebViewDelegate::GetCookieJar() { | 947 WebCookieJar* TestWebViewDelegate::GetCookieJar() { |
953 return WebKit::webKitPlatformSupport()->cookieJar(); | 948 return WebKit::webKitPlatformSupport()->cookieJar(); |
954 } | 949 } |
955 | 950 |
956 // Public methods ------------------------------------------------------------ | 951 // Public methods ------------------------------------------------------------ |
957 | 952 |
958 TestWebViewDelegate::TestWebViewDelegate(TestShell* shell) | 953 TestWebViewDelegate::TestWebViewDelegate(TestShell* shell) |
959 : policy_delegate_enabled_(false), | 954 : policy_delegate_enabled_(false), |
960 policy_delegate_is_permissive_(false), | 955 policy_delegate_is_permissive_(false), |
961 policy_delegate_should_notify_done_(false), | 956 policy_delegate_should_notify_done_(false), |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1149 } | 1144 } |
1150 | 1145 |
1151 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) { | 1146 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) { |
1152 fake_rect_ = rect; | 1147 fake_rect_ = rect; |
1153 using_fake_rect_ = true; | 1148 using_fake_rect_ = true; |
1154 } | 1149 } |
1155 | 1150 |
1156 WebRect TestWebViewDelegate::fake_window_rect() { | 1151 WebRect TestWebViewDelegate::fake_window_rect() { |
1157 return fake_rect_; | 1152 return fake_rect_; |
1158 } | 1153 } |
OLD | NEW |