OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 27 matching lines...) Expand all Loading... |
38 namespace blink { | 38 namespace blink { |
39 | 39 |
40 class WebString; | 40 class WebString; |
41 class WebURL; | 41 class WebURL; |
42 | 42 |
43 // WebSettings is owned by the WebView and allows code to modify the settings fo
r | 43 // WebSettings is owned by the WebView and allows code to modify the settings fo
r |
44 // the WebView's page without any knowledge of WebCore itself. For the most par
t, | 44 // the WebView's page without any knowledge of WebCore itself. For the most par
t, |
45 // these functions have a 1:1 mapping with the methods in WebCore/page/Settings.
h. | 45 // these functions have a 1:1 mapping with the methods in WebCore/page/Settings.
h. |
46 class WebSettings { | 46 class WebSettings { |
47 public: | 47 public: |
| 48 enum AnimatedImageType { |
| 49 AnimatedImageTypeNone, |
| 50 AnimatedImageTypeOnce, |
| 51 AnimatedImageTypeNormal |
| 52 }; |
| 53 |
48 enum EditingBehavior { | 54 enum EditingBehavior { |
49 EditingBehaviorMac, | 55 EditingBehaviorMac, |
50 EditingBehaviorWin, | 56 EditingBehaviorWin, |
51 EditingBehaviorUnix, | 57 EditingBehaviorUnix, |
52 EditingBehaviorAndroid | 58 EditingBehaviorAndroid |
53 }; | 59 }; |
54 | 60 |
55 enum V8CacheOptions { | 61 enum V8CacheOptions { |
56 V8CacheOptionsDefault, | 62 V8CacheOptionsDefault, |
57 // FIXME: Remove this once the Chromium CL has landed. | 63 // FIXME: Remove this once the Chromium CL has landed. |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 virtual void setEnableTouchAdjustment(bool) = 0; | 159 virtual void setEnableTouchAdjustment(bool) = 0; |
154 virtual void setRegionBasedColumnsEnabled(bool) = 0; | 160 virtual void setRegionBasedColumnsEnabled(bool) = 0; |
155 virtual void setExperimentalWebGLEnabled(bool) = 0; | 161 virtual void setExperimentalWebGLEnabled(bool) = 0; |
156 virtual void setFantasyFontFamily(const WebString&, UScriptCode = USCRIPT_CO
MMON) = 0; | 162 virtual void setFantasyFontFamily(const WebString&, UScriptCode = USCRIPT_CO
MMON) = 0; |
157 virtual void setFixedFontFamily(const WebString&, UScriptCode = USCRIPT_COMM
ON) = 0; | 163 virtual void setFixedFontFamily(const WebString&, UScriptCode = USCRIPT_COMM
ON) = 0; |
158 virtual void setForceZeroLayoutHeight(bool) = 0; | 164 virtual void setForceZeroLayoutHeight(bool) = 0; |
159 virtual void setFullscreenSupported(bool) = 0; | 165 virtual void setFullscreenSupported(bool) = 0; |
160 virtual void setHyperlinkAuditingEnabled(bool) = 0; | 166 virtual void setHyperlinkAuditingEnabled(bool) = 0; |
161 virtual void setIgnoreMainFrameOverflowHiddenQuirk(bool) = 0; | 167 virtual void setIgnoreMainFrameOverflowHiddenQuirk(bool) = 0; |
162 virtual void setImagesEnabled(bool) = 0; | 168 virtual void setImagesEnabled(bool) = 0; |
| 169 virtual void setAnimatedImageType(AnimatedImageType) = 0; |
163 virtual void setInlineTextBoxAccessibilityEnabled(bool) = 0; | 170 virtual void setInlineTextBoxAccessibilityEnabled(bool) = 0; |
164 virtual void setJavaEnabled(bool) = 0; | 171 virtual void setJavaEnabled(bool) = 0; |
165 virtual void setJavaScriptCanAccessClipboard(bool) = 0; | 172 virtual void setJavaScriptCanAccessClipboard(bool) = 0; |
166 virtual void setJavaScriptCanOpenWindowsAutomatically(bool) = 0; | 173 virtual void setJavaScriptCanOpenWindowsAutomatically(bool) = 0; |
167 virtual void setJavaScriptEnabled(bool) = 0; | 174 virtual void setJavaScriptEnabled(bool) = 0; |
168 virtual void setLayerSquashingEnabled(bool) = 0; | 175 virtual void setLayerSquashingEnabled(bool) = 0; |
169 virtual void setLoadsImagesAutomatically(bool) = 0; | 176 virtual void setLoadsImagesAutomatically(bool) = 0; |
170 virtual void setLoadWithOverviewMode(bool) = 0; | 177 virtual void setLoadWithOverviewMode(bool) = 0; |
171 virtual void setLocalStorageEnabled(bool) = 0; | 178 virtual void setLocalStorageEnabled(bool) = 0; |
172 virtual void setMainFrameClipsContent(bool) = 0; | 179 virtual void setMainFrameClipsContent(bool) = 0; |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 virtual void setWideViewportQuirkEnabled(bool) = 0; | 254 virtual void setWideViewportQuirkEnabled(bool) = 0; |
248 virtual void setXSSAuditorEnabled(bool) = 0; | 255 virtual void setXSSAuditorEnabled(bool) = 0; |
249 | 256 |
250 protected: | 257 protected: |
251 ~WebSettings() { } | 258 ~WebSettings() { } |
252 }; | 259 }; |
253 | 260 |
254 } // namespace blink | 261 } // namespace blink |
255 | 262 |
256 #endif | 263 #endif |
OLD | NEW |