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

Unified Diff: third_party/WebKit/Source/core/events/InputEvent.cpp

Issue 2288913002: [InputEvent] Support |deleteByDrag| and |insertFromDrop| (Closed)
Patch Set: yosin's review 3, check |ownerDocument()| Created 4 years, 3 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/events/InputEvent.cpp
diff --git a/third_party/WebKit/Source/core/events/InputEvent.cpp b/third_party/WebKit/Source/core/events/InputEvent.cpp
index 7ffa3de31a48b8c37522c899d70729f2cad40820..c8f5ce7643ccdf45f158346c4aff2506a91ff858 100644
--- a/third_party/WebKit/Source/core/events/InputEvent.cpp
+++ b/third_party/WebKit/Source/core/events/InputEvent.cpp
@@ -25,6 +25,7 @@ const struct {
{ InputEvent::InputType::InsertUnorderedList, "insertUnorderedList" },
{ InputEvent::InputType::InsertHorizontalRule, "insertHorizontalRule" },
{ InputEvent::InputType::InsertFromPaste, "insertFromPaste" },
+ { InputEvent::InputType::InsertFromDrop, "insertFromDrop" },
{ InputEvent::InputType::DeleteComposedCharacterForward, "deleteComposedCharacterForward" },
{ InputEvent::InputType::DeleteComposedCharacterBackward, "deleteComposedCharacterBackward" },
{ InputEvent::InputType::DeleteWordBackward, "deleteWordBackward" },
@@ -34,6 +35,7 @@ const struct {
{ InputEvent::InputType::DeleteContentBackward, "deleteContentBackward" },
{ InputEvent::InputType::DeleteContentForward, "deleteContentForward" },
{ InputEvent::InputType::DeleteByCut, "deleteByCut" },
+ { InputEvent::InputType::DeleteByDrag, "deleteByDrag" },
{ InputEvent::InputType::Undo, "undo" },
{ InputEvent::InputType::Redo, "redo" },
{ InputEvent::InputType::Bold, "bold" },
@@ -48,7 +50,6 @@ const struct {
{ InputEvent::InputType::Indent, "indent" },
{ InputEvent::InputType::Outdent, "outdent" },
{ InputEvent::InputType::RemoveFormat, "removeFormat" },
- { InputEvent::InputType::Drag, "drag" },
{ InputEvent::InputType::JustifyFull, "justifyFull" },
{ InputEvent::InputType::SetColor, "setColor" },
{ InputEvent::InputType::SetBackgroundColor, "setBackgroundColor" },
@@ -59,6 +60,7 @@ const struct {
{ InputEvent::InputType::CreateLink, "createLink" },
{ InputEvent::InputType::Unlink, "unlink" },
{ InputEvent::InputType::FormatBlock, "formatBlock" },
+ { InputEvent::InputType::MoveByDragDrop, "moveByDragDrop" },
};
static_assert(arraysize(kInputTypeStringNameMap) == static_cast<size_t>(InputEvent::InputType::NumberOfInputTypes),
« no previous file with comments | « third_party/WebKit/Source/core/events/InputEvent.h ('k') | third_party/WebKit/Source/core/page/DragController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698