Index: Source/core/editing/FrameSelection.h |
diff --git a/Source/core/editing/FrameSelection.h b/Source/core/editing/FrameSelection.h |
index 282ddc7fe62a8f6820eec61e017efe5f1511f6c5..31372b46289930665c849a855cf73dc8475a5547 100644 |
--- a/Source/core/editing/FrameSelection.h |
+++ b/Source/core/editing/FrameSelection.h |
@@ -41,6 +41,7 @@ namespace blink { |
class CharacterData; |
class LocalFrame; |
+class GranularityStrategy; |
class GraphicsContext; |
class HTMLFormElement; |
class Text; |
@@ -74,6 +75,7 @@ public: |
SpellCorrectionTriggered = 1 << 3, |
DoNotSetFocus = 1 << 4, |
DoNotUpdateAppearance = 1 << 5, |
+ ApplyStrategy = 1 << 6, |
}; |
typedef unsigned SetSelectionOptions; // Union of values in SetSelectionOption and EUserTriggered |
static inline EUserTriggered selectionOptionsToUserTriggered(SetSelectionOptions options) |
@@ -123,7 +125,7 @@ public: |
enum VerticalDirection { DirectionUp, DirectionDown }; |
bool modify(EAlteration, unsigned verticalDistance, VerticalDirection, EUserTriggered = NotUserTriggered, CursorAlignOnScroll = AlignCursorOnScrollIfNeeded); |
// Currently we support only CharaterGranularity and WordGranurarity. |
- void moveRangeSelectionExtent(const VisiblePosition&, TextGranularity); |
+ void moveRangeSelectionExtent(const VisiblePosition&); |
void moveRangeSelection(const VisiblePosition& base, const VisiblePosition& extent, TextGranularity); |
TextGranularity granularity() const { return m_granularity; } |
@@ -297,6 +299,8 @@ private: |
bool m_isCaretBlinkingSuspended : 1; |
bool m_focused : 1; |
bool m_shouldShowBlockCursor : 1; |
+ |
+ OwnPtr<GranularityStrategy> m_granularityStrategy; |
}; |
inline EditingStyle* FrameSelection::typingStyle() const |