| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 enum class SelectionStrategyType { | 98 enum class SelectionStrategyType { |
| 99 // Always uses character granularity. | 99 // Always uses character granularity. |
| 100 Character, | 100 Character, |
| 101 // "Expand by word, shrink by character" selection strategy. | 101 // "Expand by word, shrink by character" selection strategy. |
| 102 // Uses character granularity when selection is shrinking. If the | 102 // Uses character granularity when selection is shrinking. If the |
| 103 // selection is expanding, granularity doesn't change until a word | 103 // selection is expanding, granularity doesn't change until a word |
| 104 // boundary is passed, after which the granularity switches to "word". | 104 // boundary is passed, after which the granularity switches to "word". |
| 105 Direction | 105 Direction |
| 106 }; | 106 }; |
| 107 | 107 |
| 108 // Defines user preference for text track kind. |
| 109 enum class TextTrackKindUserPreference { |
| 110 // Display only tracks marked as default |
| 111 Default, |
| 112 // Display caption tracks if available and if not display subtitles in p
referred language |
| 113 Captions, |
| 114 // Display subtitle tracks if available |
| 115 Subtitles |
| 116 }; |
| 117 |
| 108 // Sets value of a setting by its string identifier from Settings.in and | 118 // Sets value of a setting by its string identifier from Settings.in and |
| 109 // string representation of value. An enum's string representation is the | 119 // string representation of value. An enum's string representation is the |
| 110 // string representation of the integer value of the enum. | 120 // string representation of the integer value of the enum. |
| 111 virtual void setFromStrings(const WebString& name, const WebString& value) =
0; | 121 virtual void setFromStrings(const WebString& name, const WebString& value) =
0; |
| 112 | 122 |
| 113 virtual bool mainFrameResizesAreOrientationChanges() const = 0; | 123 virtual bool mainFrameResizesAreOrientationChanges() const = 0; |
| 114 virtual int availablePointerTypes() const = 0; | 124 virtual int availablePointerTypes() const = 0; |
| 115 virtual PointerType primaryPointerType() const = 0; | 125 virtual PointerType primaryPointerType() const = 0; |
| 116 virtual int availableHoverTypes() const = 0; | 126 virtual int availableHoverTypes() const = 0; |
| 117 virtual HoverType primaryHoverType() const = 0; | 127 virtual HoverType primaryHoverType() const = 0; |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 virtual void setSpatialNavigationEnabled(bool) = 0; | 248 virtual void setSpatialNavigationEnabled(bool) = 0; |
| 239 virtual void setStandardFontFamily(const WebString&, UScriptCode = USCRIPT_C
OMMON) = 0; | 249 virtual void setStandardFontFamily(const WebString&, UScriptCode = USCRIPT_C
OMMON) = 0; |
| 240 virtual void setStrictMixedContentChecking(bool) = 0; | 250 virtual void setStrictMixedContentChecking(bool) = 0; |
| 241 virtual void setStrictPowerfulFeatureRestrictions(bool) = 0; | 251 virtual void setStrictPowerfulFeatureRestrictions(bool) = 0; |
| 242 virtual void setSupportDeprecatedTargetDensityDPI(bool) = 0; | 252 virtual void setSupportDeprecatedTargetDensityDPI(bool) = 0; |
| 243 virtual void setSupportsMultipleWindows(bool) = 0; | 253 virtual void setSupportsMultipleWindows(bool) = 0; |
| 244 virtual void setSyncXHRInDocumentsEnabled(bool) = 0; | 254 virtual void setSyncXHRInDocumentsEnabled(bool) = 0; |
| 245 virtual void setTextAreasAreResizable(bool) = 0; | 255 virtual void setTextAreasAreResizable(bool) = 0; |
| 246 virtual void setTextAutosizingEnabled(bool) = 0; | 256 virtual void setTextAutosizingEnabled(bool) = 0; |
| 247 virtual void setAccessibilityFontScaleFactor(float) = 0; | 257 virtual void setAccessibilityFontScaleFactor(float) = 0; |
| 258 virtual void setTextTrackKindUserPreference(TextTrackKindUserPreference) = 0
; |
| 248 virtual void setTextTrackBackgroundColor(const WebString&) = 0; | 259 virtual void setTextTrackBackgroundColor(const WebString&) = 0; |
| 249 virtual void setTextTrackFontFamily(const WebString&) = 0; | 260 virtual void setTextTrackFontFamily(const WebString&) = 0; |
| 250 virtual void setTextTrackFontStyle(const WebString&) = 0; | 261 virtual void setTextTrackFontStyle(const WebString&) = 0; |
| 251 virtual void setTextTrackFontVariant(const WebString&) = 0; | 262 virtual void setTextTrackFontVariant(const WebString&) = 0; |
| 252 virtual void setTextTrackTextColor(const WebString&) = 0; | 263 virtual void setTextTrackTextColor(const WebString&) = 0; |
| 253 virtual void setTextTrackTextShadow(const WebString&) = 0; | 264 virtual void setTextTrackTextShadow(const WebString&) = 0; |
| 254 virtual void setTextTrackTextSize(const WebString&) = 0; | 265 virtual void setTextTrackTextSize(const WebString&) = 0; |
| 255 virtual void setThreadedScrollingEnabled(bool) = 0; | 266 virtual void setThreadedScrollingEnabled(bool) = 0; |
| 256 virtual void setTouchDragDropEnabled(bool) = 0; | 267 virtual void setTouchDragDropEnabled(bool) = 0; |
| 257 virtual void setTouchEditingEnabled(bool) = 0; | 268 virtual void setTouchEditingEnabled(bool) = 0; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 276 virtual void setWideViewportQuirkEnabled(bool) = 0; | 287 virtual void setWideViewportQuirkEnabled(bool) = 0; |
| 277 virtual void setXSSAuditorEnabled(bool) = 0; | 288 virtual void setXSSAuditorEnabled(bool) = 0; |
| 278 | 289 |
| 279 protected: | 290 protected: |
| 280 ~WebSettings() { } | 291 ~WebSettings() { } |
| 281 }; | 292 }; |
| 282 | 293 |
| 283 } // namespace blink | 294 } // namespace blink |
| 284 | 295 |
| 285 #endif | 296 #endif |
| OLD | NEW |