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

Unified Diff: third_party/WebKit/Source/core/editing/commands/TypingCommand.h

Issue 2558643003: [InputEvent] Move 'beforeinput' logic into |CompositeEditCommand::willApplyEditing()| (3/3) (Closed)
Patch Set: Retain the order of firing 'beforeinput' before 'compositionupdate' Created 4 years 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: third_party/WebKit/Source/core/editing/commands/TypingCommand.h
diff --git a/third_party/WebKit/Source/core/editing/commands/TypingCommand.h b/third_party/WebKit/Source/core/editing/commands/TypingCommand.h
index ecc6a3df2097432c17d46c927a6ed7a77490a758..1836cc6b016049ce0a7e33ce1fd73dff689ff3ac 100644
--- a/third_party/WebKit/Source/core/editing/commands/TypingCommand.h
+++ b/third_party/WebKit/Source/core/editing/commands/TypingCommand.h
@@ -107,8 +107,10 @@ class CORE_EXPORT TypingCommand final : public CompositeEditCommand {
ETypingCommand commandTypeOfOpenCommand() const { return m_commandType; }
TextCompositionType compositionType() const { return m_compositionType; }
+ InputEvent::InputType inputType() const final;
Xiaocheng 2016/12/20 05:49:57 Same as for ReplaceSelectionCommand
chongz 2016/12/20 23:27:51 Done.
// Returns text data of the last added typing.
String textDataForInputEvent() const final;
+ RangeVector* targetRangesForInputEvent() const final;
private:
static TypingCommand* create(
@@ -144,7 +146,6 @@ class CORE_EXPORT TypingCommand final : public CompositeEditCommand {
static TypingCommand* lastTypingCommandIfStillOpenForTyping(LocalFrame*);
void doApply(EditingState*) override;
- InputEvent::InputType inputType() const override;
bool isTypingCommand() const override;
bool preservesTypingStyle() const override { return m_preservesTypingStyle; }
void setShouldRetainAutocorrectionIndicator(bool retain) override {

Powered by Google App Engine
This is Rietveld 408576698