Upstream version 7.35.144.0
[platform/framework/web/crosswalk.git] / src / content / shell / common / test_runner / WebPreferences.h
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 CONTENT_SHELL_COMMON_TEST_RUNNER_WEBPREFERENCES_H_
6 #define CONTENT_SHELL_COMMON_TEST_RUNNER_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 shouldRespectImageOrientation;
45     bool asynchronousSpellCheckingEnabled;
46
47     WebPreferences();
48     void reset();
49 };
50
51 }
52
53 #endif  // CONTENT_SHELL_COMMON_TEST_RUNNER_WEBPREFERENCES_H_