Commit b570b687 authored by Andrey Kraynov's avatar Andrey Kraynov Committed by Commit Bot

Add Editor::GetFrameSelection() helper function.

Inside Editor.cpp expression |GetFrame().Selection()| used at many
call sites and can be replaced by shortnamed helper.

No changes in behavior.
No new tests.

Bug: 
Change-Id: I906eeea10e9e5e9a303c27a8fdc29b6e738eeaa8
Reviewed-on: https://chromium-review.googlesource.com/667378
Commit-Queue: Andrey Kraynov <iceman@yandex-team.ru>
Reviewed-by: default avatarYoshifumi Inoue <yosin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#504334}
parent 100f27a3
...@@ -46,6 +46,7 @@ class CompositeEditCommand; ...@@ -46,6 +46,7 @@ class CompositeEditCommand;
class DragData; class DragData;
class EditorClient; class EditorClient;
class EditorInternalCommand; class EditorInternalCommand;
class FrameSelection;
class LocalFrame; class LocalFrame;
class HitTestResult; class HitTestResult;
class KillRing; class KillRing;
...@@ -355,6 +356,7 @@ class CORE_EXPORT Editor final : public GarbageCollectedFinalized<Editor> { ...@@ -355,6 +356,7 @@ class CORE_EXPORT Editor final : public GarbageCollectedFinalized<Editor> {
const SetSelectionOptions&); const SetSelectionOptions&);
SpellChecker& GetSpellChecker() const; SpellChecker& GetSpellChecker() const;
FrameSelection& GetFrameSelection() const;
bool HandleEditingKeyboardEvent(KeyboardEvent*); bool HandleEditingKeyboardEvent(KeyboardEvent*);
}; };
......
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