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

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

Issue 4350001: Added ability to propogate create to suggest whether or not filesystem's root... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 1104 matching lines...) Expand 10 before | Expand all | Expand 10 after
1115 if (shell_->ShouldDumpFrameLoadCallbacks()) 1115 if (shell_->ShouldDumpFrameLoadCallbacks())
1116 printf("didRunInsecureContent\n"); 1116 printf("didRunInsecureContent\n");
1117 } 1117 }
1118 1118
1119 bool TestWebViewDelegate::allowScript(WebFrame* frame, 1119 bool TestWebViewDelegate::allowScript(WebFrame* frame,
1120 bool enabled_per_settings) { 1120 bool enabled_per_settings) {
1121 return enabled_per_settings && shell_->allow_scripts(); 1121 return enabled_per_settings && shell_->allow_scripts();
1122 } 1122 }
1123 1123
1124 void TestWebViewDelegate::openFileSystem( 1124 void TestWebViewDelegate::openFileSystem(
1125 WebFrame* frame, WebFileSystem::Type type, long long size, 1125 WebFrame* frame, WebFileSystem::Type type, long long size, bool create,
1126 WebFileSystemCallbacks* callbacks) { 1126 WebFileSystemCallbacks* callbacks) {
1127 if (shell_->file_system_root().empty()) { 1127 if (shell_->file_system_root().empty()) {
1128 // The FileSystem temp directory was not initialized successfully. 1128 // The FileSystem temp directory was not initialized successfully.
1129 callbacks->didFail(WebKit::WebFileErrorSecurity); 1129 callbacks->didFail(WebKit::WebFileErrorSecurity);
1130 } else { 1130 } else {
1131 // TODO(michaeln): need to put origin/type in the path. 1131 // TODO(michaeln): need to put origin/type in the path.
1132 callbacks->didOpenFileSystem( 1132 callbacks->didOpenFileSystem(
1133 "TestShellFileSystem", 1133 "TestShellFileSystem",
1134 webkit_glue::FilePathToWebString(shell_->file_system_root())); 1134 webkit_glue::FilePathToWebString(shell_->file_system_root()));
1135 } 1135 }
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
1346 } 1346 }
1347 1347
1348 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) { 1348 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) {
1349 fake_rect_ = rect; 1349 fake_rect_ = rect;
1350 using_fake_rect_ = true; 1350 using_fake_rect_ = true;
1351 } 1351 }
1352 1352
1353 WebRect TestWebViewDelegate::fake_window_rect() { 1353 WebRect TestWebViewDelegate::fake_window_rect() {
1354 return fake_rect_; 1354 return fake_rect_;
1355 } 1355 }
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