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 |