| 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 { |
| 77 LoadEvent, |
| 78 DOMContentLoadedAndImages, |
| 79 DOMContentLoaded, |
| 80 }; |
| 81 |
| 76 // Selection strategy defines how the selection granularity changes when the | 82 // Selection strategy defines how the selection granularity changes when the |
| 77 // selection extent is moved. | 83 // selection extent is moved. |
| 78 enum class SelectionStrategyType { | 84 enum class SelectionStrategyType { |
| 79 // Always uses character granularity. | 85 // Always uses character granularity. |
| 80 Character, | 86 Character, |
| 81 // "Expand by word, shrink by character" selection strategy. | 87 // "Expand by word, shrink by character" selection strategy. |
| 82 // Uses character granularity when selection is shrinking. If the | 88 // Uses character granularity when selection is shrinking. If the |
| 83 // selection is expanding, granularity doesn't change until a word | 89 // selection is expanding, granularity doesn't change until a word |
| 84 // boundary is passed, after which the granularity switches to "word". | 90 // boundary is passed, after which the granularity switches to "word". |
| 85 Direction | 91 Direction |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 virtual void setImagesEnabled(bool) = 0; | 171 virtual void setImagesEnabled(bool) = 0; |
| 166 virtual void setInlineTextBoxAccessibilityEnabled(bool) = 0; | 172 virtual void setInlineTextBoxAccessibilityEnabled(bool) = 0; |
| 167 virtual void setInertVisualViewport(bool) = 0; | 173 virtual void setInertVisualViewport(bool) = 0; |
| 168 virtual void setJavaScriptCanAccessClipboard(bool) = 0; | 174 virtual void setJavaScriptCanAccessClipboard(bool) = 0; |
| 169 virtual void setJavaScriptCanOpenWindowsAutomatically(bool) = 0; | 175 virtual void setJavaScriptCanOpenWindowsAutomatically(bool) = 0; |
| 170 virtual void setJavaScriptEnabled(bool) = 0; | 176 virtual void setJavaScriptEnabled(bool) = 0; |
| 171 void setLayerSquashingEnabled(bool) { } | 177 void setLayerSquashingEnabled(bool) { } |
| 172 virtual void setLoadsImagesAutomatically(bool) = 0; | 178 virtual void setLoadsImagesAutomatically(bool) = 0; |
| 173 virtual void setLoadWithOverviewMode(bool) = 0; | 179 virtual void setLoadWithOverviewMode(bool) = 0; |
| 174 virtual void setShouldReuseGlobalForUnownedMainFrame(bool) = 0; | 180 virtual void setShouldReuseGlobalForUnownedMainFrame(bool) = 0; |
| 181 virtual void setProgressBarCompletion(ProgressBarCompletion) = 0; |
| 175 virtual void setLocalStorageEnabled(bool) = 0; | 182 virtual void setLocalStorageEnabled(bool) = 0; |
| 176 virtual void setMainFrameClipsContent(bool) = 0; | 183 virtual void setMainFrameClipsContent(bool) = 0; |
| 177 virtual void setMainFrameResizesAreOrientationChanges(bool) = 0; | 184 virtual void setMainFrameResizesAreOrientationChanges(bool) = 0; |
| 178 virtual void setMaxTouchPoints(int) = 0; | 185 virtual void setMaxTouchPoints(int) = 0; |
| 179 virtual void setMediaControlsOverlayPlayButtonEnabled(bool) = 0; | 186 virtual void setMediaControlsOverlayPlayButtonEnabled(bool) = 0; |
| 180 virtual void setMediaPlaybackRequiresUserGesture(bool) = 0; | 187 virtual void setMediaPlaybackRequiresUserGesture(bool) = 0; |
| 181 virtual void setPresentationRequiresUserGesture(bool) = 0; | 188 virtual void setPresentationRequiresUserGesture(bool) = 0; |
| 182 virtual void setMinimumAccelerated2dCanvasSize(int) = 0; | 189 virtual void setMinimumAccelerated2dCanvasSize(int) = 0; |
| 183 virtual void setMinimumFontSize(int) = 0; | 190 virtual void setMinimumFontSize(int) = 0; |
| 184 virtual void setMinimumLogicalFontSize(int) = 0; | 191 virtual void setMinimumLogicalFontSize(int) = 0; |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 virtual void setWideViewportQuirkEnabled(bool) = 0; | 270 virtual void setWideViewportQuirkEnabled(bool) = 0; |
| 264 virtual void setXSSAuditorEnabled(bool) = 0; | 271 virtual void setXSSAuditorEnabled(bool) = 0; |
| 265 | 272 |
| 266 protected: | 273 protected: |
| 267 ~WebSettings() { } | 274 ~WebSettings() { } |
| 268 }; | 275 }; |
| 269 | 276 |
| 270 } // namespace blink | 277 } // namespace blink |
| 271 | 278 |
| 272 #endif | 279 #endif |
| OLD | NEW |