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

Unified Diff: webkit/tools/test_shell/test_shell.h

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/resources/test_shell.rc ('k') | webkit/tools/test_shell/test_shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/test_shell.h
===================================================================
--- webkit/tools/test_shell/test_shell.h (revision 37542)
+++ webkit/tools/test_shell/test_shell.h (working copy)
@@ -110,6 +110,15 @@
bool is_loading() const { return is_loading_; }
void set_is_loading(bool is_loading) { is_loading_ = is_loading; }
+ bool allow_images() const { return allow_images_; }
+ void set_allow_images(bool allow) { allow_images_ = allow; }
+
+ bool allow_plugins() const { return allow_plugins_; }
+ void set_allow_plugins(bool allow) { allow_plugins_ = allow; }
+
+ bool allow_scripts() const { return allow_scripts_; }
+ void set_allow_scripts(bool allow) { allow_scripts_ = allow; }
+
void UpdateNavigationControls();
// A new TestShell window will be opened with devtools url.
@@ -391,6 +400,10 @@
// True if the page is loading.
bool is_loading_;
+ bool allow_images_;
+ bool allow_plugins_;
+ bool allow_scripts_;
+
// The preferences for the test shell.
static WebPreferences* web_prefs_;
« no previous file with comments | « webkit/tools/test_shell/resources/test_shell.rc ('k') | webkit/tools/test_shell/test_shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698