OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 18 matching lines...) Expand all Loading... |
29 */ | 29 */ |
30 | 30 |
31 #ifndef WebPreferences_h | 31 #ifndef WebPreferences_h |
32 #define WebPreferences_h | 32 #define WebPreferences_h |
33 | 33 |
34 #include "WebTestCommon.h" | 34 #include "WebTestCommon.h" |
35 #include "public/platform/WebString.h" | 35 #include "public/platform/WebString.h" |
36 #include "public/platform/WebURL.h" | 36 #include "public/platform/WebURL.h" |
37 #include "public/web/WebSettings.h" | 37 #include "public/web/WebSettings.h" |
38 | 38 |
39 namespace WebKit { | 39 namespace blink { |
40 class WebView; | 40 class WebView; |
41 } | 41 } |
42 | 42 |
43 namespace WebTestRunner { | 43 namespace WebTestRunner { |
44 | 44 |
45 struct WEBTESTRUNNER_EXPORT WebPreferences { | 45 struct WEBTESTRUNNER_EXPORT WebPreferences { |
46 int defaultFontSize; | 46 int defaultFontSize; |
47 int minimumFontSize; | 47 int minimumFontSize; |
48 bool DOMPasteAllowed; | 48 bool DOMPasteAllowed; |
49 bool XSSAuditorEnabled; | 49 bool XSSAuditorEnabled; |
50 bool allowDisplayOfInsecureContent; | 50 bool allowDisplayOfInsecureContent; |
51 bool allowFileAccessFromFileURLs; | 51 bool allowFileAccessFromFileURLs; |
52 bool allowRunningOfInsecureContent; | 52 bool allowRunningOfInsecureContent; |
53 bool authorAndUserStylesEnabled; | 53 bool authorAndUserStylesEnabled; |
54 WebKit::WebString defaultTextEncodingName; | 54 blink::WebString defaultTextEncodingName; |
55 bool experimentalWebGLEnabled; | 55 bool experimentalWebGLEnabled; |
56 bool experimentalCSSRegionsEnabled; | 56 bool experimentalCSSRegionsEnabled; |
57 bool experimentalCSSGridLayoutEnabled; | 57 bool experimentalCSSGridLayoutEnabled; |
58 bool javaEnabled; | 58 bool javaEnabled; |
59 bool javaScriptCanAccessClipboard; | 59 bool javaScriptCanAccessClipboard; |
60 bool javaScriptCanOpenWindowsAutomatically; | 60 bool javaScriptCanOpenWindowsAutomatically; |
61 bool supportsMultipleWindows; | 61 bool supportsMultipleWindows; |
62 bool javaScriptEnabled; | 62 bool javaScriptEnabled; |
63 bool loadsImagesAutomatically; | 63 bool loadsImagesAutomatically; |
64 bool offlineWebApplicationCacheEnabled; | 64 bool offlineWebApplicationCacheEnabled; |
65 bool pluginsEnabled; | 65 bool pluginsEnabled; |
66 WebKit::WebURL userStyleSheetLocation; | 66 blink::WebURL userStyleSheetLocation; |
67 bool allowUniversalAccessFromFileURLs; | 67 bool allowUniversalAccessFromFileURLs; |
68 WebKit::WebSettings::EditingBehavior editingBehavior; | 68 blink::WebSettings::EditingBehavior editingBehavior; |
69 bool tabsToLinks; | 69 bool tabsToLinks; |
70 bool hyperlinkAuditingEnabled; | 70 bool hyperlinkAuditingEnabled; |
71 bool caretBrowsingEnabled; | 71 bool caretBrowsingEnabled; |
72 bool cssCustomFilterEnabled; | 72 bool cssCustomFilterEnabled; |
73 bool shouldRespectImageOrientation; | 73 bool shouldRespectImageOrientation; |
74 bool asynchronousSpellCheckingEnabled; | 74 bool asynchronousSpellCheckingEnabled; |
75 | 75 |
76 WebPreferences() { reset(); } | 76 WebPreferences() { reset(); } |
77 void reset(); | 77 void reset(); |
78 }; | 78 }; |
79 | 79 |
80 } | 80 } |
81 | 81 |
82 #endif // WebPreferences_h | 82 #endif // WebPreferences_h |
OLD | NEW |