| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 enum class SelectionStrategyType { | 90 enum class SelectionStrategyType { |
| 91 // Always uses character granularity. | 91 // Always uses character granularity. |
| 92 Character, | 92 Character, |
| 93 // "Expand by word, shrink by character" selection strategy. | 93 // "Expand by word, shrink by character" selection strategy. |
| 94 // Uses character granularity when selection is shrinking. If the | 94 // Uses character granularity when selection is shrinking. If the |
| 95 // selection is expanding, granularity doesn't change until a word | 95 // selection is expanding, granularity doesn't change until a word |
| 96 // boundary is passed, after which the granularity switches to "word". | 96 // boundary is passed, after which the granularity switches to "word". |
| 97 Direction | 97 Direction |
| 98 }; | 98 }; |
| 99 | 99 |
| 100 // Defines user preference for text track kind. |
| 101 enum class TextTrackKindUserPreference { |
| 102 // Display only tracks marked as default |
| 103 Default, |
| 104 // If available, display captions track in preferred language, else disp
lay subtitles. |
| 105 Captions, |
| 106 // If available, display subtitles track in preferred language, else dis
play captions. |
| 107 Subtitles |
| 108 }; |
| 109 |
| 100 // Sets value of a setting by its string identifier from Settings.in and | 110 // Sets value of a setting by its string identifier from Settings.in and |
| 101 // string representation of value. An enum's string representation is the | 111 // string representation of value. An enum's string representation is the |
| 102 // string representation of the integer value of the enum. | 112 // string representation of the integer value of the enum. |
| 103 virtual void setFromStrings(const WebString& name, const WebString& value) =
0; | 113 virtual void setFromStrings(const WebString& name, const WebString& value) =
0; |
| 104 | 114 |
| 105 virtual bool mainFrameResizesAreOrientationChanges() const = 0; | 115 virtual bool mainFrameResizesAreOrientationChanges() const = 0; |
| 106 virtual int availablePointerTypes() const = 0; | 116 virtual int availablePointerTypes() const = 0; |
| 107 virtual PointerType primaryPointerType() const = 0; | 117 virtual PointerType primaryPointerType() const = 0; |
| 108 virtual int availableHoverTypes() const = 0; | 118 virtual int availableHoverTypes() const = 0; |
| 109 virtual HoverType primaryHoverType() const = 0; | 119 virtual HoverType primaryHoverType() const = 0; |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 virtual void setSpatialNavigationEnabled(bool) = 0; | 236 virtual void setSpatialNavigationEnabled(bool) = 0; |
| 227 virtual void setStandardFontFamily(const WebString&, UScriptCode = USCRIPT_C
OMMON) = 0; | 237 virtual void setStandardFontFamily(const WebString&, UScriptCode = USCRIPT_C
OMMON) = 0; |
| 228 virtual void setStrictMixedContentChecking(bool) = 0; | 238 virtual void setStrictMixedContentChecking(bool) = 0; |
| 229 virtual void setStrictPowerfulFeatureRestrictions(bool) = 0; | 239 virtual void setStrictPowerfulFeatureRestrictions(bool) = 0; |
| 230 virtual void setSupportDeprecatedTargetDensityDPI(bool) = 0; | 240 virtual void setSupportDeprecatedTargetDensityDPI(bool) = 0; |
| 231 virtual void setSupportsMultipleWindows(bool) = 0; | 241 virtual void setSupportsMultipleWindows(bool) = 0; |
| 232 virtual void setSyncXHRInDocumentsEnabled(bool) = 0; | 242 virtual void setSyncXHRInDocumentsEnabled(bool) = 0; |
| 233 virtual void setTextAreasAreResizable(bool) = 0; | 243 virtual void setTextAreasAreResizable(bool) = 0; |
| 234 virtual void setTextAutosizingEnabled(bool) = 0; | 244 virtual void setTextAutosizingEnabled(bool) = 0; |
| 235 virtual void setAccessibilityFontScaleFactor(float) = 0; | 245 virtual void setAccessibilityFontScaleFactor(float) = 0; |
| 246 virtual void setTextTrackKindUserPreference(TextTrackKindUserPreference) = 0
; |
| 236 virtual void setTextTrackBackgroundColor(const WebString&) = 0; | 247 virtual void setTextTrackBackgroundColor(const WebString&) = 0; |
| 237 virtual void setTextTrackFontFamily(const WebString&) = 0; | 248 virtual void setTextTrackFontFamily(const WebString&) = 0; |
| 238 virtual void setTextTrackFontStyle(const WebString&) = 0; | 249 virtual void setTextTrackFontStyle(const WebString&) = 0; |
| 239 virtual void setTextTrackFontVariant(const WebString&) = 0; | 250 virtual void setTextTrackFontVariant(const WebString&) = 0; |
| 240 virtual void setTextTrackTextColor(const WebString&) = 0; | 251 virtual void setTextTrackTextColor(const WebString&) = 0; |
| 241 virtual void setTextTrackTextShadow(const WebString&) = 0; | 252 virtual void setTextTrackTextShadow(const WebString&) = 0; |
| 242 virtual void setTextTrackTextSize(const WebString&) = 0; | 253 virtual void setTextTrackTextSize(const WebString&) = 0; |
| 243 virtual void setThreadedScrollingEnabled(bool) = 0; | 254 virtual void setThreadedScrollingEnabled(bool) = 0; |
| 244 virtual void setTouchDragDropEnabled(bool) = 0; | 255 virtual void setTouchDragDropEnabled(bool) = 0; |
| 245 virtual void setTouchEditingEnabled(bool) = 0; | 256 virtual void setTouchEditingEnabled(bool) = 0; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 264 virtual void setWideViewportQuirkEnabled(bool) = 0; | 275 virtual void setWideViewportQuirkEnabled(bool) = 0; |
| 265 virtual void setXSSAuditorEnabled(bool) = 0; | 276 virtual void setXSSAuditorEnabled(bool) = 0; |
| 266 | 277 |
| 267 protected: | 278 protected: |
| 268 ~WebSettings() { } | 279 ~WebSettings() { } |
| 269 }; | 280 }; |
| 270 | 281 |
| 271 } // namespace blink | 282 } // namespace blink |
| 272 | 283 |
| 273 #endif | 284 #endif |
| OLD | NEW |