| 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 ImageAnimationPolicy { |
| 49 ImageAnimationPolicyAllowed, |
| 50 ImageAnimationPolicyAnimateOnce, |
| 51 ImageAnimationPolicyNoAnimation |
| 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 V8CacheOptionsParse, | 63 V8CacheOptionsParse, |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 virtual void setEnableScrollAnimator(bool) = 0; | 155 virtual void setEnableScrollAnimator(bool) = 0; |
| 150 virtual void setEnableTouchAdjustment(bool) = 0; | 156 virtual void setEnableTouchAdjustment(bool) = 0; |
| 151 virtual void setRegionBasedColumnsEnabled(bool) = 0; | 157 virtual void setRegionBasedColumnsEnabled(bool) = 0; |
| 152 virtual void setExperimentalWebGLEnabled(bool) = 0; | 158 virtual void setExperimentalWebGLEnabled(bool) = 0; |
| 153 virtual void setFantasyFontFamily(const WebString&, UScriptCode = USCRIPT_CO
MMON) = 0; | 159 virtual void setFantasyFontFamily(const WebString&, UScriptCode = USCRIPT_CO
MMON) = 0; |
| 154 virtual void setFixedFontFamily(const WebString&, UScriptCode = USCRIPT_COMM
ON) = 0; | 160 virtual void setFixedFontFamily(const WebString&, UScriptCode = USCRIPT_COMM
ON) = 0; |
| 155 virtual void setForceZeroLayoutHeight(bool) = 0; | 161 virtual void setForceZeroLayoutHeight(bool) = 0; |
| 156 virtual void setFullscreenSupported(bool) = 0; | 162 virtual void setFullscreenSupported(bool) = 0; |
| 157 virtual void setHyperlinkAuditingEnabled(bool) = 0; | 163 virtual void setHyperlinkAuditingEnabled(bool) = 0; |
| 158 virtual void setIgnoreMainFrameOverflowHiddenQuirk(bool) = 0; | 164 virtual void setIgnoreMainFrameOverflowHiddenQuirk(bool) = 0; |
| 165 virtual void setImageAnimationPolicy(ImageAnimationPolicy) = 0; |
| 159 virtual void setImagesEnabled(bool) = 0; | 166 virtual void setImagesEnabled(bool) = 0; |
| 160 virtual void setInlineTextBoxAccessibilityEnabled(bool) = 0; | 167 virtual void setInlineTextBoxAccessibilityEnabled(bool) = 0; |
| 161 virtual void setJavaEnabled(bool) = 0; | 168 virtual void setJavaEnabled(bool) = 0; |
| 162 virtual void setJavaScriptCanAccessClipboard(bool) = 0; | 169 virtual void setJavaScriptCanAccessClipboard(bool) = 0; |
| 163 virtual void setJavaScriptCanOpenWindowsAutomatically(bool) = 0; | 170 virtual void setJavaScriptCanOpenWindowsAutomatically(bool) = 0; |
| 164 virtual void setJavaScriptEnabled(bool) = 0; | 171 virtual void setJavaScriptEnabled(bool) = 0; |
| 165 virtual void setLayerSquashingEnabled(bool) = 0; | 172 virtual void setLayerSquashingEnabled(bool) = 0; |
| 166 virtual void setLoadsImagesAutomatically(bool) = 0; | 173 virtual void setLoadsImagesAutomatically(bool) = 0; |
| 167 virtual void setLoadWithOverviewMode(bool) = 0; | 174 virtual void setLoadWithOverviewMode(bool) = 0; |
| 168 virtual void setLocalStorageEnabled(bool) = 0; | 175 virtual void setLocalStorageEnabled(bool) = 0; |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 virtual void setWideViewportQuirkEnabled(bool) = 0; | 251 virtual void setWideViewportQuirkEnabled(bool) = 0; |
| 245 virtual void setXSSAuditorEnabled(bool) = 0; | 252 virtual void setXSSAuditorEnabled(bool) = 0; |
| 246 | 253 |
| 247 protected: | 254 protected: |
| 248 ~WebSettings() { } | 255 ~WebSettings() { } |
| 249 }; | 256 }; |
| 250 | 257 |
| 251 } // namespace blink | 258 } // namespace blink |
| 252 | 259 |
| 253 #endif | 260 #endif |
| OLD | NEW |