| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 EditingBehaviorAndroid | 59 EditingBehaviorAndroid |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 enum V8CacheOptions { | 62 enum V8CacheOptions { |
| 63 V8CacheOptionsDefault, | 63 V8CacheOptionsDefault, |
| 64 V8CacheOptionsNone, | 64 V8CacheOptionsNone, |
| 65 V8CacheOptionsParse, | 65 V8CacheOptionsParse, |
| 66 V8CacheOptionsCode, | 66 V8CacheOptionsCode, |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 enum class V8CacheStrategiesForCacheStorage { |
| 70 Default, |
| 71 None, |
| 72 Normal, |
| 73 Aggressive, |
| 74 }; |
| 75 |
| 69 // Selection strategy defines how the selection granularity changes when the | 76 // Selection strategy defines how the selection granularity changes when the |
| 70 // selection extent is moved. | 77 // selection extent is moved. |
| 71 enum class SelectionStrategyType { | 78 enum class SelectionStrategyType { |
| 72 // Always uses character granularity. | 79 // Always uses character granularity. |
| 73 Character, | 80 Character, |
| 74 // "Expand by word, shrink by character" selection strategy. | 81 // "Expand by word, shrink by character" selection strategy. |
| 75 // Uses character granularity when selection is shrinking. If the | 82 // Uses character granularity when selection is shrinking. If the |
| 76 // selection is expanding, granularity doesn't change until a word | 83 // selection is expanding, granularity doesn't change until a word |
| 77 // boundary is passed, after which the granularity switches to "word". | 84 // boundary is passed, after which the granularity switches to "word". |
| 78 Direction | 85 Direction |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 virtual void setTextTrackTextSize(const WebString&) = 0; | 242 virtual void setTextTrackTextSize(const WebString&) = 0; |
| 236 virtual void setThreadedScrollingEnabled(bool) = 0; | 243 virtual void setThreadedScrollingEnabled(bool) = 0; |
| 237 virtual void setTouchDragDropEnabled(bool) = 0; | 244 virtual void setTouchDragDropEnabled(bool) = 0; |
| 238 virtual void setUnifiedTextCheckerEnabled(bool) = 0; | 245 virtual void setUnifiedTextCheckerEnabled(bool) = 0; |
| 239 virtual void setUseLegacyBackgroundSizeShorthandBehavior(bool) = 0; | 246 virtual void setUseLegacyBackgroundSizeShorthandBehavior(bool) = 0; |
| 240 virtual void setViewportStyle(WebViewportStyle) = 0; | 247 virtual void setViewportStyle(WebViewportStyle) = 0; |
| 241 virtual void setUseSolidColorScrollbars(bool) = 0; | 248 virtual void setUseSolidColorScrollbars(bool) = 0; |
| 242 virtual void setUseWideViewport(bool) = 0; | 249 virtual void setUseWideViewport(bool) = 0; |
| 243 virtual void setUsesEncodingDetector(bool) = 0; | 250 virtual void setUsesEncodingDetector(bool) = 0; |
| 244 virtual void setV8CacheOptions(V8CacheOptions) = 0; | 251 virtual void setV8CacheOptions(V8CacheOptions) = 0; |
| 252 virtual void setV8CacheStrategiesForCacheStorage(V8CacheStrategiesForCacheSt
orage) = 0; |
| 245 virtual void setValidationMessageTimerMagnification(int) = 0; | 253 virtual void setValidationMessageTimerMagnification(int) = 0; |
| 246 virtual void setViewportEnabled(bool) = 0; | 254 virtual void setViewportEnabled(bool) = 0; |
| 247 virtual void setViewportMetaEnabled(bool) = 0; | 255 virtual void setViewportMetaEnabled(bool) = 0; |
| 248 virtual void setViewportMetaLayoutSizeQuirk(bool) = 0; | 256 virtual void setViewportMetaLayoutSizeQuirk(bool) = 0; |
| 249 virtual void setViewportMetaMergeContentQuirk(bool) = 0; | 257 virtual void setViewportMetaMergeContentQuirk(bool) = 0; |
| 250 virtual void setViewportMetaNonUserScalableQuirk(bool) = 0; | 258 virtual void setViewportMetaNonUserScalableQuirk(bool) = 0; |
| 251 virtual void setViewportMetaZeroValuesQuirk(bool) = 0; | 259 virtual void setViewportMetaZeroValuesQuirk(bool) = 0; |
| 252 virtual void setWebGLErrorsToConsoleEnabled(bool) = 0; | 260 virtual void setWebGLErrorsToConsoleEnabled(bool) = 0; |
| 253 virtual void setWebSecurityEnabled(bool) = 0; | 261 virtual void setWebSecurityEnabled(bool) = 0; |
| 254 virtual void setWheelGesturesEnabled(bool) = 0; | 262 virtual void setWheelGesturesEnabled(bool) = 0; |
| 255 virtual void setWideViewportQuirkEnabled(bool) = 0; | 263 virtual void setWideViewportQuirkEnabled(bool) = 0; |
| 256 virtual void setXSSAuditorEnabled(bool) = 0; | 264 virtual void setXSSAuditorEnabled(bool) = 0; |
| 257 | 265 |
| 258 protected: | 266 protected: |
| 259 ~WebSettings() { } | 267 ~WebSettings() { } |
| 260 }; | 268 }; |
| 261 | 269 |
| 262 } // namespace blink | 270 } // namespace blink |
| 263 | 271 |
| 264 #endif | 272 #endif |
| OLD | NEW |