Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(941)

Side by Side Diff: public/web/WebSettings.h

Issue 988023005: Implementing directional selection strategy in Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addressing review feedback. Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 {
97 StrategyDefault,
98 StrategyDirection
99 };
100
96 virtual bool mainFrameResizesAreOrientationChanges() const = 0; 101 virtual bool mainFrameResizesAreOrientationChanges() const = 0;
97 virtual int availablePointerTypes() const = 0; 102 virtual int availablePointerTypes() const = 0;
98 virtual PointerType primaryPointerType() const = 0; 103 virtual PointerType primaryPointerType() const = 0;
99 virtual int availableHoverTypes() const = 0; 104 virtual int availableHoverTypes() const = 0;
100 virtual HoverType primaryHoverType() const = 0; 105 virtual HoverType primaryHoverType() const = 0;
101 virtual bool shrinksViewportContentToFit() const = 0; 106 virtual bool shrinksViewportContentToFit() const = 0;
102 virtual bool viewportEnabled() const = 0; 107 virtual bool viewportEnabled() const = 0;
103 virtual void setAccelerated2dCanvasEnabled(bool) = 0; 108 virtual void setAccelerated2dCanvasEnabled(bool) = 0;
104 virtual void setAccelerated2dCanvasMSAASampleCount(int) = 0; 109 virtual void setAccelerated2dCanvasMSAASampleCount(int) = 0;
105 virtual void setAcceleratedCompositingEnabled(bool) = 0; 110 virtual void setAcceleratedCompositingEnabled(bool) = 0;
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 virtual void setPrimaryPointerType(PointerType) = 0; 200 virtual void setPrimaryPointerType(PointerType) = 0;
196 virtual void setAvailableHoverTypes(int) = 0; 201 virtual void setAvailableHoverTypes(int) = 0;
197 virtual void setPrimaryHoverType(HoverType) = 0; 202 virtual void setPrimaryHoverType(HoverType) = 0;
198 virtual void setRenderVSyncNotificationEnabled(bool) = 0; 203 virtual void setRenderVSyncNotificationEnabled(bool) = 0;
199 virtual void setReportScreenSizeInPhysicalPixelsQuirk(bool) = 0; 204 virtual void setReportScreenSizeInPhysicalPixelsQuirk(bool) = 0;
200 virtual void setRootLayerScrolls(bool) = 0; 205 virtual void setRootLayerScrolls(bool) = 0;
201 virtual void setRubberBandingOnCompositorThread(bool) = 0; 206 virtual void setRubberBandingOnCompositorThread(bool) = 0;
202 virtual void setSansSerifFontFamily(const WebString&, UScriptCode = USCRIPT_ COMMON) = 0; 207 virtual void setSansSerifFontFamily(const WebString&, UScriptCode = USCRIPT_ COMMON) = 0;
203 virtual void setSelectTrailingWhitespaceEnabled(bool) = 0; 208 virtual void setSelectTrailingWhitespaceEnabled(bool) = 0;
204 virtual void setSelectionIncludesAltImageText(bool) = 0; 209 virtual void setSelectionIncludesAltImageText(bool) = 0;
210 virtual void setSelectionStrategy(SelectionStrategyType) = 0;
205 virtual void setSerifFontFamily(const WebString&, UScriptCode = USCRIPT_COMM ON) = 0; 211 virtual void setSerifFontFamily(const WebString&, UScriptCode = USCRIPT_COMM ON) = 0;
206 virtual void setShouldPrintBackgrounds(bool) = 0; 212 virtual void setShouldPrintBackgrounds(bool) = 0;
207 virtual void setShouldClearDocumentBackground(bool) = 0; 213 virtual void setShouldClearDocumentBackground(bool) = 0;
208 virtual void setShouldRespectImageOrientation(bool) = 0; 214 virtual void setShouldRespectImageOrientation(bool) = 0;
209 virtual void setShowContextMenuOnMouseUp(bool) = 0; 215 virtual void setShowContextMenuOnMouseUp(bool) = 0;
210 virtual void setShowFPSCounter(bool) = 0; 216 virtual void setShowFPSCounter(bool) = 0;
211 virtual void setShowPaintRects(bool) = 0; 217 virtual void setShowPaintRects(bool) = 0;
212 virtual void setShrinksStandaloneImagesToFit(bool) = 0; 218 virtual void setShrinksStandaloneImagesToFit(bool) = 0;
213 virtual void setShrinksViewportContentToFit(bool) = 0; 219 virtual void setShrinksViewportContentToFit(bool) = 0;
214 virtual void setSmartInsertDeleteEnabled(bool) = 0; 220 virtual void setSmartInsertDeleteEnabled(bool) = 0;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 virtual void setWideViewportQuirkEnabled(bool) = 0; 258 virtual void setWideViewportQuirkEnabled(bool) = 0;
253 virtual void setXSSAuditorEnabled(bool) = 0; 259 virtual void setXSSAuditorEnabled(bool) = 0;
254 260
255 protected: 261 protected:
256 ~WebSettings() { } 262 ~WebSettings() { }
257 }; 263 };
258 264
259 } // namespace blink 265 } // namespace blink
260 266
261 #endif 267 #endif
OLDNEW
« Source/core/editing/FrameSelection.cpp ('K') | « public/web/WebLocalFrame.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698