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

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

Issue 12886018: Add support for WEBKIT_USE_NEW_WEBFILESYSTEMTYPE (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 9 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) 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 795 matching lines...) Expand 10 before | Expand all | Expand 10 after
806 void TestWebViewDelegate::didRunInsecureContent( 806 void TestWebViewDelegate::didRunInsecureContent(
807 WebFrame* frame, const WebSecurityOrigin& origin, const WebURL& target) { 807 WebFrame* frame, const WebSecurityOrigin& origin, const WebURL& target) {
808 } 808 }
809 809
810 bool TestWebViewDelegate::allowScript(WebFrame* frame, 810 bool TestWebViewDelegate::allowScript(WebFrame* frame,
811 bool enabled_per_settings) { 811 bool enabled_per_settings) {
812 return enabled_per_settings && shell_->allow_scripts(); 812 return enabled_per_settings && shell_->allow_scripts();
813 } 813 }
814 814
815 void TestWebViewDelegate::openFileSystem( 815 void TestWebViewDelegate::openFileSystem(
816 WebFrame* frame, WebFileSystem::Type type, long long size, bool create, 816 WebFrame* frame,
817 #ifdef WEBKIT_USE_NEW_WEBFILESYSTEMTYPE
818 WebKit::WebFileSystemType type,
819 #else
820 WebFileSystem::Type type,
821 #endif
822 long long size, bool create,
817 WebFileSystemCallbacks* callbacks) { 823 WebFileSystemCallbacks* callbacks) {
818 SimpleFileSystem* fileSystem = static_cast<SimpleFileSystem*>( 824 SimpleFileSystem* fileSystem = static_cast<SimpleFileSystem*>(
819 WebKit::Platform::current()->fileSystem()); 825 WebKit::Platform::current()->fileSystem());
820 fileSystem->OpenFileSystem(frame, type, size, create, callbacks); 826 fileSystem->OpenFileSystem(frame, type, size, create, callbacks);
821 } 827 }
822 828
823 // WebPluginPageDelegate ----------------------------------------------------- 829 // WebPluginPageDelegate -----------------------------------------------------
824 830
825 WebKit::WebPlugin* TestWebViewDelegate::CreatePluginReplacement( 831 WebKit::WebPlugin* TestWebViewDelegate::CreatePluginReplacement(
826 const base::FilePath& file_path) { 832 const base::FilePath& file_path) {
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
1025 } 1031 }
1026 1032
1027 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) { 1033 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) {
1028 fake_rect_ = rect; 1034 fake_rect_ = rect;
1029 using_fake_rect_ = true; 1035 using_fake_rect_ = true;
1030 } 1036 }
1031 1037
1032 WebRect TestWebViewDelegate::fake_window_rect() { 1038 WebRect TestWebViewDelegate::fake_window_rect() {
1033 return fake_rect_; 1039 return fake_rect_;
1034 } 1040 }
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