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

Unified Diff: Source/core/editing/VisibleSelection.h

Issue 988023005: Implementing directional selection strategy in Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addressing feedback. Created 5 years, 8 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/VisibleSelection.h
diff --git a/Source/core/editing/VisibleSelection.h b/Source/core/editing/VisibleSelection.h
index 4b51859d0f292cad40aff746b3786a3e0e8d29be..223e058fa9b7e0d4d0f23e836214406c7283ae16 100644
--- a/Source/core/editing/VisibleSelection.h
+++ b/Source/core/editing/VisibleSelection.h
@@ -30,6 +30,7 @@
#include "core/editing/SelectionType.h"
#include "core/editing/TextGranularity.h"
#include "core/editing/VisiblePosition.h"
+#include "core/editing/VisibleUnits.h"
namespace blink {
@@ -145,8 +146,8 @@ public:
void showTreeForThis() const;
#endif
- void setStartRespectingGranularity(TextGranularity);
- void setEndRespectingGranularity(TextGranularity);
+ void setStartRespectingGranularity(TextGranularity, EWordSide = RightWordIfOnBoundary);
+ void setEndRespectingGranularity(TextGranularity, EWordSide = RightWordIfOnBoundary);
private:
void validate(TextGranularity = CharacterGranularity);

Powered by Google App Engine
This is Rietveld 408576698