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 a8b6dff32a558c7aafaad334ddc44055a9839081..d6800be1b677f6a0bf346363ae24713bcca88213 100644 |
--- a/third_party/WebKit/Source/core/editing/Editor.cpp |
+++ b/third_party/WebKit/Source/core/editing/Editor.cpp |
@@ -1024,7 +1024,7 @@ bool Editor::insertParagraphSeparator() { |
return true; |
} |
-void Editor::cut(EditorCommandSource source) { |
+void Editor::cut(CommandSource source) { |
if (tryDHTMLCut()) |
return; // DHTML did the whole operation |
if (!canCut()) |
@@ -1048,7 +1048,7 @@ void Editor::cut(EditorCommandSource source) { |
writeSelectionToPasteboard(); |
} |
- if (source == CommandFromMenuOrKeyBinding) { |
+ if (source == CommandSource::MenuOrKeyBinding) { |
if (dispatchBeforeInputDataTransfer(findEventTargetFromSelection(), |
InputEvent::InputType::DeleteByCut, |
nullptr, nullptr) != |
@@ -1092,7 +1092,7 @@ void Editor::copy() { |
} |
} |
-void Editor::paste(EditorCommandSource source) { |
+void Editor::paste(CommandSource source) { |
DCHECK(frame().document()); |
if (tryDHTMLPaste(AllMimeTypes)) |
return; // DHTML did the whole operation |
@@ -1106,7 +1106,7 @@ void Editor::paste(EditorCommandSource source) { |
? AllMimeTypes |
: PlainTextOnly; |
- if (source == CommandFromMenuOrKeyBinding) { |
+ if (source == CommandSource::MenuOrKeyBinding) { |
DataTransfer* dataTransfer = |
DataTransfer::create(DataTransfer::CopyAndPaste, DataTransferReadable, |
DataObject::createFromPasteboard(pasteMode)); |
@@ -1127,7 +1127,7 @@ void Editor::paste(EditorCommandSource source) { |
pasteAsPlainTextWithPasteboard(Pasteboard::generalPasteboard()); |
} |
-void Editor::pasteAsPlainText(EditorCommandSource source) { |
+void Editor::pasteAsPlainText(CommandSource source) { |
if (tryDHTMLPaste(PlainTextOnly)) |
return; |
if (!canPaste()) |