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

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

Issue 1600002: Indicate in the tab UI if appcache creation was blocked by privacy settings. (Closed)
Patch Set: updates Created 10 years, 8 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
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 #include "webkit/glue/plugins/webplugin_impl.h" 45 #include "webkit/glue/plugins/webplugin_impl.h"
46 #include "webkit/glue/plugins/plugin_list.h" 46 #include "webkit/glue/plugins/plugin_list.h"
47 #include "webkit/glue/plugins/webplugin_delegate_impl.h" 47 #include "webkit/glue/plugins/webplugin_delegate_impl.h"
48 #include "webkit/glue/webdropdata.h" 48 #include "webkit/glue/webdropdata.h"
49 #include "webkit/glue/webpreferences.h" 49 #include "webkit/glue/webpreferences.h"
50 #include "webkit/glue/webkit_glue.h" 50 #include "webkit/glue/webkit_glue.h"
51 #include "webkit/glue/window_open_disposition.h" 51 #include "webkit/glue/window_open_disposition.h"
52 #include "webkit/support/webkit_support.h" 52 #include "webkit/support/webkit_support.h"
53 #include "webkit/tools/test_shell/accessibility_controller.h" 53 #include "webkit/tools/test_shell/accessibility_controller.h"
54 #include "webkit/tools/test_shell/mock_spellcheck.h" 54 #include "webkit/tools/test_shell/mock_spellcheck.h"
55 #include "webkit/tools/test_shell/simple_appcache_system.h"
55 #include "webkit/tools/test_shell/test_navigation_controller.h" 56 #include "webkit/tools/test_shell/test_navigation_controller.h"
56 #include "webkit/tools/test_shell/test_shell.h" 57 #include "webkit/tools/test_shell/test_shell.h"
57 #include "webkit/tools/test_shell/test_web_worker.h" 58 #include "webkit/tools/test_shell/test_web_worker.h"
58 59
59 #if defined(OS_WIN) 60 #if defined(OS_WIN)
60 // TODO(port): make these files work everywhere. 61 // TODO(port): make these files work everywhere.
61 #include "webkit/tools/test_shell/drag_delegate.h" 62 #include "webkit/tools/test_shell/drag_delegate.h"
62 #include "webkit/tools/test_shell/drop_delegate.h" 63 #include "webkit/tools/test_shell/drop_delegate.h"
63 #endif 64 #endif
64 65
65 using appcache::WebApplicationCacheHostImpl; 66 using appcache::WebApplicationCacheHostImpl;
66 using WebKit::WebAccessibilityObject; 67 using WebKit::WebAccessibilityObject;
68 using WebKit::WebApplicationCacheHost;
69 using WebKit::WebApplicationCacheHostClient;
67 using WebKit::WebConsoleMessage; 70 using WebKit::WebConsoleMessage;
68 using WebKit::WebContextMenuData; 71 using WebKit::WebContextMenuData;
69 using WebKit::WebCookieJar; 72 using WebKit::WebCookieJar;
70 using WebKit::WebData; 73 using WebKit::WebData;
71 using WebKit::WebDataSource; 74 using WebKit::WebDataSource;
72 using WebKit::WebDragData; 75 using WebKit::WebDragData;
73 using WebKit::WebDragOperationsMask; 76 using WebKit::WebDragOperationsMask;
74 using WebKit::WebEditingAction; 77 using WebKit::WebEditingAction;
75 using WebKit::WebFormElement; 78 using WebKit::WebFormElement;
76 using WebKit::WebFrame; 79 using WebKit::WebFrame;
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after
646 WebWorker* TestWebViewDelegate::createWorker( 649 WebWorker* TestWebViewDelegate::createWorker(
647 WebFrame* frame, WebWorkerClient* client) { 650 WebFrame* frame, WebWorkerClient* client) {
648 return new TestWebWorker(); 651 return new TestWebWorker();
649 } 652 }
650 653
651 WebMediaPlayer* TestWebViewDelegate::createMediaPlayer( 654 WebMediaPlayer* TestWebViewDelegate::createMediaPlayer(
652 WebFrame* frame, WebMediaPlayerClient* client) { 655 WebFrame* frame, WebMediaPlayerClient* client) {
653 return webkit_support::CreateMediaPlayer(frame, client); 656 return webkit_support::CreateMediaPlayer(frame, client);
654 } 657 }
655 658
659 WebApplicationCacheHost* TestWebViewDelegate::createApplicationCacheHost(
660 WebFrame* frame, WebApplicationCacheHostClient* client) {
661 return SimpleAppCacheSystem::CreateApplicationCacheHost(client);
662 }
663
656 bool TestWebViewDelegate::allowPlugins(WebFrame* frame, 664 bool TestWebViewDelegate::allowPlugins(WebFrame* frame,
657 bool enabled_per_settings) { 665 bool enabled_per_settings) {
658 return enabled_per_settings && shell_->allow_plugins(); 666 return enabled_per_settings && shell_->allow_plugins();
659 } 667 }
660 668
661 bool TestWebViewDelegate::allowImages(WebFrame* frame, 669 bool TestWebViewDelegate::allowImages(WebFrame* frame,
662 bool enabled_per_settings) { 670 bool enabled_per_settings) {
663 return enabled_per_settings && shell_->allow_images(); 671 return enabled_per_settings && shell_->allow_images();
664 } 672 }
665 673
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
1210 } 1218 }
1211 1219
1212 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) { 1220 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) {
1213 fake_rect_ = rect; 1221 fake_rect_ = rect;
1214 using_fake_rect_ = true; 1222 using_fake_rect_ = true;
1215 } 1223 }
1216 1224
1217 WebRect TestWebViewDelegate::fake_window_rect() { 1225 WebRect TestWebViewDelegate::fake_window_rect() {
1218 return fake_rect_; 1226 return fake_rect_;
1219 } 1227 }
OLDNEW
« webkit/appcache/appcache_host.h ('K') | « 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