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

Unified Diff: content/shell/common/test_runner/WebPreferences.h

Issue 110533009: Import TestRunner library into chromium. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 7 years 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 | « content/shell/common/test_runner/OWNERS ('k') | content/shell/common/test_runner/WebPreferences.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/common/test_runner/WebPreferences.h
diff --git a/content/shell/common/test_runner/WebPreferences.h b/content/shell/common/test_runner/WebPreferences.h
new file mode 100644
index 0000000000000000000000000000000000000000..dbcc9237044ec394a8ea678cdc823964f24273be
--- /dev/null
+++ b/content/shell/common/test_runner/WebPreferences.h
@@ -0,0 +1,54 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WebPreferences_h
+#define WebPreferences_h
+
+#include "third_party/WebKit/public/platform/WebString.h"
+#include "third_party/WebKit/public/platform/WebURL.h"
+#include "third_party/WebKit/public/web/WebSettings.h"
+
+namespace blink {
+class WebView;
+}
+
+namespace WebTestRunner {
+
+struct WebPreferences {
+ int defaultFontSize;
+ int minimumFontSize;
+ bool DOMPasteAllowed;
+ bool XSSAuditorEnabled;
+ bool allowDisplayOfInsecureContent;
+ bool allowFileAccessFromFileURLs;
+ bool allowRunningOfInsecureContent;
+ bool authorAndUserStylesEnabled;
+ blink::WebString defaultTextEncodingName;
+ bool experimentalWebGLEnabled;
+ bool experimentalCSSRegionsEnabled;
+ bool experimentalCSSGridLayoutEnabled;
+ bool javaEnabled;
+ bool javaScriptCanAccessClipboard;
+ bool javaScriptCanOpenWindowsAutomatically;
+ bool supportsMultipleWindows;
+ bool javaScriptEnabled;
+ bool loadsImagesAutomatically;
+ bool offlineWebApplicationCacheEnabled;
+ bool pluginsEnabled;
+ bool allowUniversalAccessFromFileURLs;
+ blink::WebSettings::EditingBehavior editingBehavior;
+ bool tabsToLinks;
+ bool hyperlinkAuditingEnabled;
+ bool caretBrowsingEnabled;
+ bool cssCustomFilterEnabled;
+ bool shouldRespectImageOrientation;
+ bool asynchronousSpellCheckingEnabled;
+
+ WebPreferences() { reset(); }
+ void reset();
+};
+
+}
+
+#endif // WebPreferences_h
« no previous file with comments | « content/shell/common/test_runner/OWNERS ('k') | content/shell/common/test_runner/WebPreferences.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698