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

Unified Diff: third_party/WebKit/Source/core/editing/Editor.cpp

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/Editor.cpp
diff --git a/third_party/WebKit/Source/core/editing/Editor.cpp b/third_party/WebKit/Source/core/editing/Editor.cpp
index e4e310ba992fcf14ebfbcff1c3287c593e68e7e1..3162ed6578e86b291479f4809b0dea901692a703 100644
--- a/third_party/WebKit/Source/core/editing/Editor.cpp
+++ b/third_party/WebKit/Source/core/editing/Editor.cpp
@@ -1028,9 +1028,11 @@ bool Editor::insertText(const String& text, KeyboardEvent* triggeringEvent) {
return frame().eventHandler().handleTextInputEvent(text, triggeringEvent);
}
-bool Editor::insertTextWithoutSendingTextEvent(const String& text,
- bool selectInsertedText,
- TextEvent* triggeringEvent) {
+bool Editor::insertTextWithoutSendingTextEvent(
+ const String& text,
+ bool selectInsertedText,
+ TextEvent* triggeringEvent,
+ InputEvent::InputType inputType) {
if (text.isEmpty())
return false;
@@ -1047,7 +1049,8 @@ bool Editor::insertTextWithoutSendingTextEvent(const String& text,
selectInsertedText ? TypingCommand::SelectInsertedText : 0,
triggeringEvent && triggeringEvent->isComposition()
? TypingCommand::TextCompositionConfirm
- : TypingCommand::TextCompositionNone);
+ : TypingCommand::TextCompositionNone,
+ false, inputType);
// Reveal the current selection
if (LocalFrame* editedFrame = selection.start().document()->frame()) {
« no previous file with comments | « third_party/WebKit/Source/core/editing/Editor.h ('k') | third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698