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

Unified Diff: Source/core/editing/TextGranularity.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
Index: Source/core/editing/TextGranularity.h
diff --git a/Source/core/editing/TextGranularity.h b/Source/core/editing/TextGranularity.h
index cc96da70cc55e8d0e3ed44b997322a0f5704a5e4..08a412601eb3db655e5e16cb0a83d6b54cd05d3c 100644
--- a/Source/core/editing/TextGranularity.h
+++ b/Source/core/editing/TextGranularity.h
@@ -42,6 +42,14 @@ enum TextGranularity {
DocumentBoundary
};
+enum SelectionStrategy {
+ // Always using CharacterGranularity
+ StrategyDefault,
+ // Switches between WordGranularity and CharacterGranularity
+ // Depending on whether the selection or growing or shrinking
+ StrategyDirection,
+};
+
}
#endif

Powered by Google App Engine
This is Rietveld 408576698