Commit 4952872d authored by Yoshifumi Inoue's avatar Yoshifumi Inoue Committed by Commit Bot

Introduce no parameter variant of FrameSelection::SelectAll() to avoid default parameter

This patch introduces no parameter variant of |FrameSelection::SelectAll()| to
avoid default parameter for a preparation of moving declaration of enum class
|SetSelectionBy| to another file[1].

[1] http://crrev.com/c/569662: ALL-IN-ONE Introduce SetSelectionData for FrameSelection::SetSelection()

Change-Id: I5860c9f2cb72bb052727dc1dbd0546dc561bb3f1
Reviewed-on: https://chromium-review.googlesource.com/580175Reviewed-by: default avatarYoichi Osato <yoichio@chromium.org>
Commit-Queue: Yoichi Osato <yoichio@chromium.org>
Cr-Commit-Position: refs/heads/master@{#488620}
parent 960a5df5
...@@ -700,6 +700,10 @@ void FrameSelection::SelectAll(SetSelectionBy set_selection_by) { ...@@ -700,6 +700,10 @@ void FrameSelection::SelectAll(SetSelectionBy set_selection_by) {
} }
} }
void FrameSelection::SelectAll() {
SelectAll(SetSelectionBy::kSystem);
}
void FrameSelection::NotifyAccessibilityForSelectionChange() { void FrameSelection::NotifyAccessibilityForSelectionChange() {
if (GetSelectionInDOMTree().IsNone()) if (GetSelectionInDOMTree().IsNone())
return; return;
......
...@@ -121,7 +121,8 @@ class CORE_EXPORT FrameSelection final ...@@ -121,7 +121,8 @@ class CORE_EXPORT FrameSelection final
SetSelectionOptions = kCloseTyping | kClearTypingStyle, SetSelectionOptions = kCloseTyping | kClearTypingStyle,
CursorAlignOnScroll = CursorAlignOnScroll::kIfNeeded, CursorAlignOnScroll = CursorAlignOnScroll::kIfNeeded,
TextGranularity = TextGranularity::kCharacter); TextGranularity = TextGranularity::kCharacter);
void SelectAll(SetSelectionBy = SetSelectionBy::kSystem); void SelectAll(SetSelectionBy);
void SelectAll();
void Clear(); void Clear();
bool IsHidden() const; bool IsHidden() const;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment