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

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

Issue 2738953003: [InputEvent] Support 'insertFromYank' for macOS (Closed)
Patch Set: yosin's review: Only implement yank Created 3 years, 9 months 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 05d3a325ce63785f64e4be5e71c3a0b1eb71bc8f..da620bf0b82128d1232469a7b375b3b7f6ec7b27 100644
--- a/third_party/WebKit/Source/core/editing/commands/TypingCommand.h
+++ b/third_party/WebKit/Source/core/editing/commands/TypingCommand.h
@@ -71,12 +71,14 @@ class CORE_EXPORT TypingCommand final : public CompositeEditCommand {
Options,
TextCompositionType = TextCompositionNone,
const bool isIncrementalInsertion = false);
- static void insertText(Document&,
- const String&,
- const SelectionInDOMTree&,
- Options,
- TextCompositionType = TextCompositionNone,
- const bool isIncrementalInsertion = false);
+ static void insertText(
+ Document&,
+ const String&,
+ const SelectionInDOMTree&,
+ Options,
+ TextCompositionType = TextCompositionNone,
+ const bool isIncrementalInsertion = false,
+ InputEvent::InputType = InputEvent::InputType::InsertText);
static bool insertLineBreak(Document&);
static bool insertParagraphSeparator(Document&);
static bool insertParagraphSeparatorInQuotedContent(Document&);
@@ -188,6 +190,7 @@ class CORE_EXPORT TypingCommand final : public CompositeEditCommand {
bool m_isIncrementalInsertion;
size_t m_selectionStart;
+ InputEvent::InputType m_inputType;
};
DEFINE_TYPE_CASTS(TypingCommand,

Powered by Google App Engine
This is Rietveld 408576698