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

Unified Diff: webkit/tools/test_shell/test_webview_delegate.cc

Issue 549213: Add UI to TestShell to enable/disable images, plugins, and scripts.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/tools/test_shell/test_webview_delegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/test_webview_delegate.cc
===================================================================
--- webkit/tools/test_shell/test_webview_delegate.cc (revision 37542)
+++ webkit/tools/test_shell/test_webview_delegate.cc (working copy)
@@ -663,6 +663,16 @@
return new webkit_glue::WebMediaPlayerImpl(client, factory);
}
+bool TestWebViewDelegate::allowPlugins(WebFrame* frame,
+ bool enabled_per_settings) {
+ return shell_->allow_plugins();
+}
+
+bool TestWebViewDelegate::allowImages(WebFrame* frame,
+ bool enabled_per_settings) {
+ return shell_->allow_images();
+}
+
void TestWebViewDelegate::loadURLExternally(
WebFrame* frame, const WebURLRequest& request,
WebNavigationPolicy policy) {
@@ -998,6 +1008,11 @@
printf("didRunInsecureContent\n");
}
+bool TestWebViewDelegate::allowScript(WebFrame* frame,
+ bool enabled_per_settings) {
+ return shell_->allow_scripts();
+}
+
void TestWebViewDelegate::focusAccessibilityObject(
const WebAccessibilityObject& object) {
shell_->accessibility_controller()->SetFocusedElement(object);
« 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