OLD | NEW |
(Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef WebPreferences_h |
| 6 #define WebPreferences_h |
| 7 |
| 8 #include "third_party/WebKit/public/platform/WebString.h" |
| 9 #include "third_party/WebKit/public/platform/WebURL.h" |
| 10 #include "third_party/WebKit/public/web/WebSettings.h" |
| 11 |
| 12 namespace blink { |
| 13 class WebView; |
| 14 } |
| 15 |
| 16 namespace WebTestRunner { |
| 17 |
| 18 struct WebPreferences { |
| 19 int defaultFontSize; |
| 20 int minimumFontSize; |
| 21 bool DOMPasteAllowed; |
| 22 bool XSSAuditorEnabled; |
| 23 bool allowDisplayOfInsecureContent; |
| 24 bool allowFileAccessFromFileURLs; |
| 25 bool allowRunningOfInsecureContent; |
| 26 bool authorAndUserStylesEnabled; |
| 27 blink::WebString defaultTextEncodingName; |
| 28 bool experimentalWebGLEnabled; |
| 29 bool experimentalCSSRegionsEnabled; |
| 30 bool experimentalCSSGridLayoutEnabled; |
| 31 bool javaEnabled; |
| 32 bool javaScriptCanAccessClipboard; |
| 33 bool javaScriptCanOpenWindowsAutomatically; |
| 34 bool supportsMultipleWindows; |
| 35 bool javaScriptEnabled; |
| 36 bool loadsImagesAutomatically; |
| 37 bool offlineWebApplicationCacheEnabled; |
| 38 bool pluginsEnabled; |
| 39 bool allowUniversalAccessFromFileURLs; |
| 40 blink::WebSettings::EditingBehavior editingBehavior; |
| 41 bool tabsToLinks; |
| 42 bool hyperlinkAuditingEnabled; |
| 43 bool caretBrowsingEnabled; |
| 44 bool cssCustomFilterEnabled; |
| 45 bool shouldRespectImageOrientation; |
| 46 bool asynchronousSpellCheckingEnabled; |
| 47 |
| 48 WebPreferences() { reset(); } |
| 49 void reset(); |
| 50 }; |
| 51 |
| 52 } |
| 53 |
| 54 #endif // WebPreferences_h |
OLD | NEW |