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

Unified 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: Expanded a couple of comments. 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 side-by-side diff with in-line comments
Download patch
« Source/core/editing/FrameSelection.cpp ('K') | « public/web/WebLocalFrame.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebSettings.h
diff --git a/public/web/WebSettings.h b/public/web/WebSettings.h
index 49cadb4e69ede162196cb4c2d2cc14c3cbb3cb8c..1b6d78af91fd16308340e4277c399ba20dbd254b 100644
--- a/public/web/WebSettings.h
+++ b/public/web/WebSettings.h
@@ -93,6 +93,11 @@ public:
HoverTypeHover = 1 << 2
};
+ enum SelectionStrategyType {
+ StrategyDefault,
+ StrategyDirection
+ };
+
virtual bool mainFrameResizesAreOrientationChanges() const = 0;
virtual int availablePointerTypes() const = 0;
virtual PointerType primaryPointerType() const = 0;
@@ -202,6 +207,7 @@ public:
virtual void setSansSerifFontFamily(const WebString&, UScriptCode = USCRIPT_COMMON) = 0;
virtual void setSelectTrailingWhitespaceEnabled(bool) = 0;
virtual void setSelectionIncludesAltImageText(bool) = 0;
+ virtual void setSelectionStrategy(SelectionStrategyType) = 0;
virtual void setSerifFontFamily(const WebString&, UScriptCode = USCRIPT_COMMON) = 0;
virtual void setShouldPrintBackgrounds(bool) = 0;
virtual void setShouldClearDocumentBackground(bool) = 0;
« 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