| Index: Source/core/editing/FrameSelection.h
|
| diff --git a/Source/core/editing/FrameSelection.h b/Source/core/editing/FrameSelection.h
|
| index c59a5d0fe133cbed33bbcc094ec6cebbfaa65cef..c3555ae8cbed90fd7a02ff0c86c5000c4757b62d 100644
|
| --- a/Source/core/editing/FrameSelection.h
|
| +++ b/Source/core/editing/FrameSelection.h
|
| @@ -85,6 +85,11 @@ public:
|
| return static_cast<EUserTriggered>(options & UserTriggered);
|
| }
|
|
|
| + enum DirectoinalOption {
|
| + NonDirectional,
|
| + Directional
|
| + };
|
| +
|
| Element* rootEditableElement() const { return m_selection.rootEditableElement(); }
|
| Element* rootEditableElementOrDocumentElement() const;
|
| Node* rootEditableElementOrTreeScopeRootNode() const;
|
| @@ -100,7 +105,7 @@ public:
|
| const VisibleSelection& selection() const { return m_selection; }
|
| void setSelection(const VisibleSelection&, SetSelectionOptions = CloseTyping | ClearTypingStyle, CursorAlignOnScroll = AlignCursorOnScrollIfNeeded, TextGranularity = CharacterGranularity);
|
| void setSelection(const VisibleSelection& selection, TextGranularity granularity) { setSelection(selection, CloseTyping | ClearTypingStyle, AlignCursorOnScrollIfNeeded, granularity); }
|
| - bool setSelectedRange(Range*, EAffinity, bool isDirectional = false, SetSelectionOptions = CloseTyping | ClearTypingStyle);
|
| + bool setSelectedRange(Range*, EAffinity, DirectoinalOption directional = NonDirectional, SetSelectionOptions = CloseTyping | ClearTypingStyle);
|
| void selectAll();
|
| void clear();
|
| void prepareForDestruction();
|
|
|