| OLD | NEW |
| 1 # Defines properties which are available on the Settings object. | 1 # Defines properties which are available on the Settings object. |
| 2 # | 2 # |
| 3 # Please think carefully before adding a new Setting. Some questions to | 3 # Please think carefully before adding a new Setting. Some questions to |
| 4 # consider are: | 4 # consider are: |
| 5 # - Should this be a RuntimeEnabledFeature instead? Settings are for things | 5 # - Should this be a RuntimeEnabledFeature instead? Settings are for things |
| 6 # which we support either values of at runtime. Features are set at renderer | 6 # which we support either values of at runtime. Features are set at renderer |
| 7 # process startup and are never changed. Features also tend to be set to a | 7 # process startup and are never changed. Features also tend to be set to a |
| 8 # value based on the platform or the stability of the code in question, where | 8 # value based on the platform or the stability of the code in question, where |
| 9 # as settings both codepaths need to be stable. | 9 # as settings both codepaths need to be stable. |
| 10 # - How will you ensure test coverage of all relevant values of your setting? | 10 # - How will you ensure test coverage of all relevant values of your setting? |
| 11 # - Is the default value appropriate for other platforms or ports which may | 11 # - Is the default value appropriate for other platforms or ports which may |
| 12 # not be aware of your setting? | 12 # not be aware of your setting? |
| 13 # - Can your setting result in behavior differences observable to web | 13 # - Can your setting result in behavior differences observable to web |
| 14 # developers? | 14 # developers? |
| 15 # - Should this setting ideally be removed in the future? If so please file | 15 # - Should this setting ideally be removed in the future? If so please file |
| 16 # a bug and reference it in the comments for your setting. | 16 # a bug and reference it in the comments for your setting. |
| 17 # | 17 # |
| 18 # One reason to add a Setting is to manage the risk associated with adding a | 18 # One reason to add a Setting is to manage the risk associated with adding a |
| 19 # new feature. For example, we may choose to ship a new UI behavior or | 19 # new feature. For example, we may choose to ship a new UI behavior or |
| 20 # performance optimization to ChromeOS users first (in order to gather feedback | 20 # performance optimization to ChromeOS users first (in order to gather feedback |
| 21 # and metrics on its use from the wild) before attempting to ship it to | 21 # and metrics on its use from the wild) before attempting to ship it to |
| 22 # Windows. | 22 # Windows. |
| 23 # | 23 # |
| 24 # FIXME: Add support for global settings. | 24 # FIXME: Add support for global settings. |
| 25 # FIXME: Add support for custom getters/setters. | 25 # FIXME: Add support for custom getters/setters. |
| 26 | 26 |
| 27 defaultTextEncodingName type=String | 27 defaultTextEncodingName type=String |
| 28 | 28 |
| 29 # Sets the magnification value for validation message timer. If the | |
| 30 # magnification value is N, a validation message disappears automatically after | |
| 31 # <message length> * N / 1000 seconds. If N is equal to or less than 0, a | |
| 32 # validation message doesn't disappears automaticaly. | |
| 33 validationMessageTimerMagnification type=int, initial=50 | |
| 34 | |
| 35 # Number of pixels below which 2D canvas is rendered in software | 29 # Number of pixels below which 2D canvas is rendered in software |
| 36 # even if hardware acceleration is enabled. | 30 # even if hardware acceleration is enabled. |
| 37 # Hardware acceleration is useful for large canvases where it can avoid the | 31 # Hardware acceleration is useful for large canvases where it can avoid the |
| 38 # pixel bandwidth between the CPU and GPU. But GPU acceleration comes at | 32 # pixel bandwidth between the CPU and GPU. But GPU acceleration comes at |
| 39 # a price - extra back-buffer and texture copy. Small canvases are also | 33 # a price - extra back-buffer and texture copy. Small canvases are also |
| 40 # widely used for stylized fonts. Anti-aliasing text in hardware at that | 34 # widely used for stylized fonts. Anti-aliasing text in hardware at that |
| 41 # scale is generally slower. So below a certain size it is better to | 35 # scale is generally slower. So below a certain size it is better to |
| 42 # draw canvas in software. | 36 # draw canvas in software. |
| 43 minimumAccelerated2dCanvasSize type=int, initial=257*256 | 37 minimumAccelerated2dCanvasSize type=int, initial=257*256 |
| 44 | 38 |
| 45 minimumFontSize type=int, initial=0, invalidate=Style | |
| 46 minimumLogicalFontSize type=int, initial=0, invalidate=Style | |
| 47 defaultFontSize type=int, initial=0, invalidate=Style | 39 defaultFontSize type=int, initial=0, invalidate=Style |
| 48 defaultFixedFontSize type=int, initial=0, invalidate=Style | 40 defaultFixedFontSize type=int, initial=0, invalidate=Style |
| 49 | 41 |
| 50 caretBrowsingEnabled initial=false | |
| 51 localStorageEnabled initial=false | |
| 52 allowUniversalAccessFromFileURLs initial=true | |
| 53 allowFileAccessFromFileURLs initial=true | |
| 54 javaScriptCanAccessClipboard initial=false | 42 javaScriptCanAccessClipboard initial=false |
| 55 shouldClearDocumentBackground initial=true | 43 shouldClearDocumentBackground initial=true |
| 56 | 44 |
| 57 textAreasAreResizable initial=false, invalidate=Style | 45 textAreasAreResizable initial=false, invalidate=Style |
| 58 | 46 |
| 59 shrinksStandaloneImagesToFit initial=true | |
| 60 | |
| 61 deferredFiltersEnabled initial=true | 47 deferredFiltersEnabled initial=true |
| 62 | 48 |
| 63 containerCullingEnabled initial=false | 49 containerCullingEnabled initial=false |
| 64 | 50 |
| 65 # FIXME: This should really be disabled by default as it makes platforms that | 51 # FIXME: This should really be disabled by default as it makes platforms that |
| 66 # don't support the feature download files they can't use by. | 52 # don't support the feature download files they can't use by. |
| 67 # Leaving enabled for now to not change existing behavior. | 53 # Leaving enabled for now to not change existing behavior. |
| 68 downloadableBinaryFontsEnabled initial=true | 54 downloadableBinaryFontsEnabled initial=true |
| 69 | 55 |
| 70 treatIPAddressAsDomain initial=false | |
| 71 | |
| 72 preferCompositingToLCDTextEnabled initial=false, invalidate=AcceleratedCompositi
ng | 56 preferCompositingToLCDTextEnabled initial=false, invalidate=AcceleratedCompositi
ng |
| 73 | 57 |
| 74 # 3D canvas (WebGL) support. | 58 # 3D canvas (WebGL) support. |
| 75 webGLEnabled initial=false | 59 webGLEnabled initial=false |
| 76 | 60 |
| 77 webGLErrorsToConsoleEnabled initial=true | 61 webGLErrorsToConsoleEnabled initial=true |
| 78 accelerated2dCanvasEnabled initial=false | 62 accelerated2dCanvasEnabled initial=false |
| 79 antialiased2dCanvasEnabled initial=true | 63 antialiased2dCanvasEnabled initial=true |
| 80 accelerated2dCanvasMSAASampleCount type=int, initial=0 | 64 accelerated2dCanvasMSAASampleCount type=int, initial=0 |
| 81 | 65 |
| 82 asynchronousSpellCheckingEnabled initial=false | 66 asynchronousSpellCheckingEnabled initial=false |
| 83 | 67 |
| 84 hyperlinkAuditingEnabled initial=false | |
| 85 allowDisplayOfInsecureContent initial=true | |
| 86 allowRunningOfInsecureContent initial=true | |
| 87 # FIXME: Remove this temporary flag. See crbug.com/366483 for the target | |
| 88 # milestone. | |
| 89 allowConnectingInsecureWebSocket initial=false | |
| 90 mediaPlaybackRequiresUserGesture initial=false | 68 mediaPlaybackRequiresUserGesture initial=false |
| 91 | 69 |
| 92 scrollAnimatorEnabled initial=true | 70 scrollAnimatorEnabled initial=true |
| 93 | 71 |
| 94 # Used in layout tests for gesture tap highlights. Makes the highlights square | 72 # Used in layout tests for gesture tap highlights. Makes the highlights square |
| 95 # (rather than rounded) to make it possible to reftest the results. | 73 # (rather than rounded) to make it possible to reftest the results. |
| 96 mockGestureTapHighlightsEnabled initial=false | 74 mockGestureTapHighlightsEnabled initial=false |
| 97 | 75 |
| 98 shouldRespectImageOrientation initial=false | 76 shouldRespectImageOrientation initial=false |
| 99 | 77 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 111 # From Pointer Events spec: | 89 # From Pointer Events spec: |
| 112 # http://www.w3.org/TR/pointerevents/#widl-Navigator-maxTouchPoints | 90 # http://www.w3.org/TR/pointerevents/#widl-Navigator-maxTouchPoints |
| 113 maxTouchPoints type=int, initial=0 | 91 maxTouchPoints type=int, initial=0 |
| 114 | 92 |
| 115 # Whether touch gestures should be "fuzzed" to nearest touch targets. | 93 # Whether touch gestures should be "fuzzed" to nearest touch targets. |
| 116 # It's expected that this is enabled everywhere by default, but it may be | 94 # It's expected that this is enabled everywhere by default, but it may be |
| 117 # disabled for testing purposes as the algorithm is not yet perfect. | 95 # disabled for testing purposes as the algorithm is not yet perfect. |
| 118 # crbug.com/304895 tracks removal once we're satisfied with the algorithm. | 96 # crbug.com/304895 tracks removal once we're satisfied with the algorithm. |
| 119 touchAdjustmentEnabled initial=true | 97 touchAdjustmentEnabled initial=true |
| 120 | 98 |
| 121 navigateOnDragDrop initial=true | |
| 122 DOMPasteAllowed initial=false | 99 DOMPasteAllowed initial=false |
| 123 | 100 |
| 124 allowCustomScrollbarInMainFrame initial=true | |
| 125 webSecurityEnabled initial=true | |
| 126 | |
| 127 # This setting adds a means to enable/disable touch initiated drag & drop. If | |
| 128 # enabled, the user can initiate drag using long press. | |
| 129 # crbug.com/304894 tracks removal once it's been enabled on all platforms. | |
| 130 touchDragDropEnabled initial=false | |
| 131 | |
| 132 unifiedTextCheckerEnabled initial=defaultUnifiedTextCheckerEnabled | 101 unifiedTextCheckerEnabled initial=defaultUnifiedTextCheckerEnabled |
| 133 | 102 |
| 134 # Some apps could have a default video poster if it is not set. | 103 # Some apps could have a default video poster if it is not set. |
| 135 defaultVideoPosterURL type=String | 104 defaultVideoPosterURL type=String |
| 136 | 105 |
| 137 smartInsertDeleteEnabled initial=defaultSmartInsertDeleteEnabled | 106 smartInsertDeleteEnabled initial=defaultSmartInsertDeleteEnabled |
| 138 | 107 |
| 139 selectionIncludesAltImageText initial=false | 108 selectionIncludesAltImageText initial=false |
| 140 | 109 |
| 141 # Used by the android_webview to support a horizontal height auto-sizing | 110 # Used by the android_webview to support a horizontal height auto-sizing |
| 142 # mode. | 111 # mode. |
| 143 forceZeroLayoutHeight initial=false, invalidate=ViewportDescription | 112 forceZeroLayoutHeight initial=false, invalidate=ViewportDescription |
| 144 | 113 |
| 145 # Touch based text selection and editing on desktop. | 114 # Touch based text selection and editing on desktop. |
| 146 # crbug.com/304873 tracks removal once it's been enabled on all platforms. | 115 # crbug.com/304873 tracks removal once it's been enabled on all platforms. |
| 147 touchEditingEnabled initial=false | 116 touchEditingEnabled initial=false |
| 148 | 117 |
| 149 useSolidColorScrollbars initial=true | 118 useSolidColorScrollbars initial=true |
| 150 | 119 |
| 151 mainFrameClipsContent initial=true | 120 mainFrameClipsContent initial=true |
| 152 | 121 |
| 153 | |
| 154 # Presumably used by tests? Unclear. | 122 # Presumably used by tests? Unclear. |
| 155 useWideViewport initial=true, invalidate=ViewportDescription | 123 useWideViewport initial=true, invalidate=ViewportDescription |
| 156 loadWithOverviewMode initial=true, invalidate=ViewportDescription | 124 loadWithOverviewMode initial=true, invalidate=ViewportDescription |
| 157 | 125 |
| 158 | |
| 159 # Font scale factor for accessibility, applied as part of text autosizing. | |
| 160 accessibilityFontScaleFactor type=double, initial=1.0 | |
| 161 | |
| 162 | |
| 163 # Only set by Layout Tests. | 126 # Only set by Layout Tests. |
| 164 mediaTypeOverride type=String, initial="screen", invalidate=MediaType | 127 mediaTypeOverride type=String, initial="screen", invalidate=MediaType |
| 165 | 128 |
| 166 # loadsImagesAutomatically only suppresses the network load of | 129 # loadsImagesAutomatically only suppresses the network load of |
| 167 # the image URL. A cached image will still be rendered if requested. | 130 # the image URL. A cached image will still be rendered if requested. |
| 168 loadsImagesAutomatically initial=false, invalidate=ImageLoading | 131 loadsImagesAutomatically initial=false, invalidate=ImageLoading |
| 169 imagesEnabled initial=true, invalidate=ImageLoading | 132 imagesEnabled initial=true, invalidate=ImageLoading |
| 170 | 133 |
| 171 viewportEnabled initial=false, invalidate=ViewportDescription | 134 viewportEnabled initial=false, invalidate=ViewportDescription |
| 172 viewportMetaEnabled initial=false | 135 viewportMetaEnabled initial=false |
| 173 | 136 |
| 174 # Compensates for poor text legibility on mobile devices. This value is | |
| 175 # multiplied by the font scale factor when performing text autosizing of | |
| 176 # websites that do not set an explicit viewport description. | |
| 177 deviceScaleAdjustment type=double, initial=1.0 | |
| 178 | |
| 179 # This value indicates the maximum number of bytes a document is allowed | |
| 180 # to transmit in Beacons (via navigator.sendBeacon()) -- Beacons are | |
| 181 # intended to be smaller payloads transmitted as a page is unloading, not | |
| 182 # a general (one-way) network transmission API. | |
| 183 # The spec ( https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/Beacon/Overview.h
tml ) | |
| 184 # does not proscribe an upper limit, but allows for it -- the underlying | |
| 185 # API will return 'false' in that case. | |
| 186 maxBeaconTransmission type=int, initial=65536 | |
| 187 | |
| 188 # V8 supports different types of caching. Used by V8 bindings. | 137 # V8 supports different types of caching. Used by V8 bindings. |
| 189 v8CacheOptions type=V8CacheOptions, initial=V8CacheOptionsOff | 138 v8CacheOptions type=V8CacheOptions, initial=V8CacheOptionsOff |
| 190 | 139 |
| 191 # These values are bit fields for the properties of available pointing devices | 140 # These values are bit fields for the properties of available pointing devices |
| 192 # and may take on multiple values (e.g. laptop with touchpad and touchscreen | 141 # and may take on multiple values (e.g. laptop with touchpad and touchscreen |
| 193 # has pointerType coarse *and* fine). | 142 # has pointerType coarse *and* fine). |
| 194 availablePointerTypes type=int, initial=PointerTypeNone, invalidate=MediaQuery | 143 availablePointerTypes type=int, initial=PointerTypeNone, invalidate=MediaQuery |
| 195 availableHoverTypes type=int, initial=HoverTypeNone, invalidate=MediaQuery | 144 availableHoverTypes type=int, initial=HoverTypeNone, invalidate=MediaQuery |
| 196 | 145 |
| 197 # These values specify properties of the user's primary pointing device only. | 146 # These values specify properties of the user's primary pointing device only. |
| 198 primaryPointerType type=PointerType, initial=PointerTypeNone, invalidate=MediaQu
ery | 147 primaryPointerType type=PointerType, initial=PointerTypeNone, invalidate=MediaQu
ery |
| 199 primaryHoverType type=HoverType, initial=HoverTypeNone, invalidate=MediaQuery | 148 primaryHoverType type=HoverType, initial=HoverTypeNone, invalidate=MediaQuery |
| 200 | |
| 201 accessibilityEnabled initial=false | |
| 202 inlineTextBoxAccessibilityEnabled initial=false | |
| OLD | NEW |