Chromium Code Reviews| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 66 V8CacheOptionsCode, | 66 V8CacheOptionsCode, |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 enum class V8CacheStrategiesForCacheStorage { | 69 enum class V8CacheStrategiesForCacheStorage { |
| 70 Default, | 70 Default, |
| 71 None, | 71 None, |
| 72 Normal, | 72 Normal, |
| 73 Aggressive, | 73 Aggressive, |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 enum class ProgressBarCompletion { | |
|
kinuko
2016/06/16 05:59:03
Need to define so many same enums (and static asse
Nate Chapin
2016/06/16 20:58:51
Yeah...it'd be awesome if we could get a general s
dcheng
2016/06/17 20:53:06
Maybe let's see if the chrome owners think it make
| |
| 77 LoadEvent, | |
| 78 ResourcesBeforeDCL, | |
| 79 DOMContentLoaded, | |
| 80 ResourcesBeforeDCLAndSameOriginIFrames | |
| 81 }; | |
| 82 | |
| 76 // Selection strategy defines how the selection granularity changes when the | 83 // Selection strategy defines how the selection granularity changes when the |
| 77 // selection extent is moved. | 84 // selection extent is moved. |
| 78 enum class SelectionStrategyType { | 85 enum class SelectionStrategyType { |
| 79 // Always uses character granularity. | 86 // Always uses character granularity. |
| 80 Character, | 87 Character, |
| 81 // "Expand by word, shrink by character" selection strategy. | 88 // "Expand by word, shrink by character" selection strategy. |
| 82 // Uses character granularity when selection is shrinking. If the | 89 // Uses character granularity when selection is shrinking. If the |
| 83 // selection is expanding, granularity doesn't change until a word | 90 // selection is expanding, granularity doesn't change until a word |
| 84 // boundary is passed, after which the granularity switches to "word". | 91 // boundary is passed, after which the granularity switches to "word". |
| 85 Direction | 92 Direction |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 175 virtual void setImagesEnabled(bool) = 0; | 182 virtual void setImagesEnabled(bool) = 0; |
| 176 virtual void setInlineTextBoxAccessibilityEnabled(bool) = 0; | 183 virtual void setInlineTextBoxAccessibilityEnabled(bool) = 0; |
| 177 virtual void setInertVisualViewport(bool) = 0; | 184 virtual void setInertVisualViewport(bool) = 0; |
| 178 virtual void setJavaScriptCanAccessClipboard(bool) = 0; | 185 virtual void setJavaScriptCanAccessClipboard(bool) = 0; |
| 179 virtual void setJavaScriptCanOpenWindowsAutomatically(bool) = 0; | 186 virtual void setJavaScriptCanOpenWindowsAutomatically(bool) = 0; |
| 180 virtual void setJavaScriptEnabled(bool) = 0; | 187 virtual void setJavaScriptEnabled(bool) = 0; |
| 181 void setLayerSquashingEnabled(bool) { } | 188 void setLayerSquashingEnabled(bool) { } |
| 182 virtual void setLoadsImagesAutomatically(bool) = 0; | 189 virtual void setLoadsImagesAutomatically(bool) = 0; |
| 183 virtual void setLoadWithOverviewMode(bool) = 0; | 190 virtual void setLoadWithOverviewMode(bool) = 0; |
| 184 virtual void setShouldReuseGlobalForUnownedMainFrame(bool) = 0; | 191 virtual void setShouldReuseGlobalForUnownedMainFrame(bool) = 0; |
| 192 virtual void setProgressBarCompletion(ProgressBarCompletion) = 0; | |
| 185 virtual void setLocalStorageEnabled(bool) = 0; | 193 virtual void setLocalStorageEnabled(bool) = 0; |
| 186 virtual void setMainFrameClipsContent(bool) = 0; | 194 virtual void setMainFrameClipsContent(bool) = 0; |
| 187 virtual void setMainFrameResizesAreOrientationChanges(bool) = 0; | 195 virtual void setMainFrameResizesAreOrientationChanges(bool) = 0; |
| 188 virtual void setMaxTouchPoints(int) = 0; | 196 virtual void setMaxTouchPoints(int) = 0; |
| 189 virtual void setMediaControlsOverlayPlayButtonEnabled(bool) = 0; | 197 virtual void setMediaControlsOverlayPlayButtonEnabled(bool) = 0; |
| 190 virtual void setMediaPlaybackRequiresUserGesture(bool) = 0; | 198 virtual void setMediaPlaybackRequiresUserGesture(bool) = 0; |
| 191 virtual void setPresentationRequiresUserGesture(bool) = 0; | 199 virtual void setPresentationRequiresUserGesture(bool) = 0; |
| 192 virtual void setMinimumAccelerated2dCanvasSize(int) = 0; | 200 virtual void setMinimumAccelerated2dCanvasSize(int) = 0; |
| 193 virtual void setMinimumFontSize(int) = 0; | 201 virtual void setMinimumFontSize(int) = 0; |
| 194 virtual void setMinimumLogicalFontSize(int) = 0; | 202 virtual void setMinimumLogicalFontSize(int) = 0; |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 273 virtual void setWideViewportQuirkEnabled(bool) = 0; | 281 virtual void setWideViewportQuirkEnabled(bool) = 0; |
| 274 virtual void setXSSAuditorEnabled(bool) = 0; | 282 virtual void setXSSAuditorEnabled(bool) = 0; |
| 275 | 283 |
| 276 protected: | 284 protected: |
| 277 ~WebSettings() { } | 285 ~WebSettings() { } |
| 278 }; | 286 }; |
| 279 | 287 |
| 280 } // namespace blink | 288 } // namespace blink |
| 281 | 289 |
| 282 #endif | 290 #endif |
| OLD | NEW |