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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
86 // blink::HoverType enums, enforced by compile-time assertions in | 86 // blink::HoverType enums, enforced by compile-time assertions in |
87 // AssertMatchingEnums.cpp. | 87 // AssertMatchingEnums.cpp. |
88 enum HoverType { | 88 enum HoverType { |
89 HoverTypeNone = 1 << 0, | 89 HoverTypeNone = 1 << 0, |
90 // Indicates that the primary pointing system can hover, but it requires | 90 // Indicates that the primary pointing system can hover, but it requires |
91 // a significant action on the user's part. e.g. hover on "long press". | 91 // a significant action on the user's part. e.g. hover on "long press". |
92 HoverTypeOnDemand = 1 << 1, | 92 HoverTypeOnDemand = 1 << 1, |
93 HoverTypeHover = 1 << 2 | 93 HoverTypeHover = 1 << 2 |
94 }; | 94 }; |
95 | 95 |
96 enum SelectionStrategyType { | |
Rick Byers
2015/04/16 19:09:48
Since this is the blink public API, please add goo
mfomitchev1
2015/04/16 19:33:00
Acknowledged.
mfomitchev1
2015/04/17 00:13:51
Done.
| |
97 StrategyDefault, | |
98 StrategyDirection | |
99 }; | |
100 | |
96 // Sets value of a setting by its string identifier from Settings.in and | 101 // Sets value of a setting by its string identifier from Settings.in and |
97 // string representation of value. An enum's string representation is the | 102 // string representation of value. An enum's string representation is the |
98 // string representation of the integer value of the enum. | 103 // string representation of the integer value of the enum. |
99 virtual void setFromStrings(const WebString& name, const WebString& value) = 0; | 104 virtual void setFromStrings(const WebString& name, const WebString& value) = 0; |
100 | 105 |
101 virtual bool mainFrameResizesAreOrientationChanges() const = 0; | 106 virtual bool mainFrameResizesAreOrientationChanges() const = 0; |
102 virtual int availablePointerTypes() const = 0; | 107 virtual int availablePointerTypes() const = 0; |
103 virtual PointerType primaryPointerType() const = 0; | 108 virtual PointerType primaryPointerType() const = 0; |
104 virtual int availableHoverTypes() const = 0; | 109 virtual int availableHoverTypes() const = 0; |
105 virtual HoverType primaryHoverType() const = 0; | 110 virtual HoverType primaryHoverType() const = 0; |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
197 virtual void setPrimaryPointerType(PointerType) = 0; | 202 virtual void setPrimaryPointerType(PointerType) = 0; |
198 virtual void setAvailableHoverTypes(int) = 0; | 203 virtual void setAvailableHoverTypes(int) = 0; |
199 virtual void setPrimaryHoverType(HoverType) = 0; | 204 virtual void setPrimaryHoverType(HoverType) = 0; |
200 virtual void setRenderVSyncNotificationEnabled(bool) = 0; | 205 virtual void setRenderVSyncNotificationEnabled(bool) = 0; |
201 virtual void setReportScreenSizeInPhysicalPixelsQuirk(bool) = 0; | 206 virtual void setReportScreenSizeInPhysicalPixelsQuirk(bool) = 0; |
202 virtual void setRootLayerScrolls(bool) = 0; | 207 virtual void setRootLayerScrolls(bool) = 0; |
203 virtual void setRubberBandingOnCompositorThread(bool) = 0; | 208 virtual void setRubberBandingOnCompositorThread(bool) = 0; |
204 virtual void setSansSerifFontFamily(const WebString&, UScriptCode = USCRIPT_ COMMON) = 0; | 209 virtual void setSansSerifFontFamily(const WebString&, UScriptCode = USCRIPT_ COMMON) = 0; |
205 virtual void setSelectTrailingWhitespaceEnabled(bool) = 0; | 210 virtual void setSelectTrailingWhitespaceEnabled(bool) = 0; |
206 virtual void setSelectionIncludesAltImageText(bool) = 0; | 211 virtual void setSelectionIncludesAltImageText(bool) = 0; |
212 virtual void setSelectionStrategy(SelectionStrategyType) = 0; | |
207 virtual void setSerifFontFamily(const WebString&, UScriptCode = USCRIPT_COMM ON) = 0; | 213 virtual void setSerifFontFamily(const WebString&, UScriptCode = USCRIPT_COMM ON) = 0; |
208 virtual void setShouldPrintBackgrounds(bool) = 0; | 214 virtual void setShouldPrintBackgrounds(bool) = 0; |
209 virtual void setShouldClearDocumentBackground(bool) = 0; | 215 virtual void setShouldClearDocumentBackground(bool) = 0; |
210 virtual void setShouldRespectImageOrientation(bool) = 0; | 216 virtual void setShouldRespectImageOrientation(bool) = 0; |
211 virtual void setShowContextMenuOnMouseUp(bool) = 0; | 217 virtual void setShowContextMenuOnMouseUp(bool) = 0; |
212 virtual void setShowFPSCounter(bool) = 0; | 218 virtual void setShowFPSCounter(bool) = 0; |
213 virtual void setShowPaintRects(bool) = 0; | 219 virtual void setShowPaintRects(bool) = 0; |
214 virtual void setShrinksStandaloneImagesToFit(bool) = 0; | 220 virtual void setShrinksStandaloneImagesToFit(bool) = 0; |
215 virtual void setShrinksViewportContentToFit(bool) = 0; | 221 virtual void setShrinksViewportContentToFit(bool) = 0; |
216 virtual void setSmartInsertDeleteEnabled(bool) = 0; | 222 virtual void setSmartInsertDeleteEnabled(bool) = 0; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
262 virtual void setWideViewportQuirkEnabled(bool) = 0; | 268 virtual void setWideViewportQuirkEnabled(bool) = 0; |
263 virtual void setXSSAuditorEnabled(bool) = 0; | 269 virtual void setXSSAuditorEnabled(bool) = 0; |
264 | 270 |
265 protected: | 271 protected: |
266 ~WebSettings() { } | 272 ~WebSettings() { } |
267 }; | 273 }; |
268 | 274 |
269 } // namespace blink | 275 } // namespace blink |
270 | 276 |
271 #endif | 277 #endif |
OLD | NEW |