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

Side by Side Diff: third_party/WebKit/Source/core/events/InputEvent.cpp

Issue 2931443003: Add support for Android spellcheck menu in Chrome/WebViews (Closed)
Patch Set: Respond to yosin@'s comments Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/events/InputEvent.h" 5 #include "core/events/InputEvent.h"
6 6
7 #include "core/dom/Range.h" 7 #include "core/dom/Range.h"
8 #include "core/events/EventDispatcher.h" 8 #include "core/events/EventDispatcher.h"
9 #include "public/platform/WebEditingCommandType.h" 9 #include "public/platform/WebEditingCommandType.h"
10 10
(...skipping 11 matching lines...) Expand all
22 {InputEvent::InputType::kInsertParagraph, "insertParagraph"}, 22 {InputEvent::InputType::kInsertParagraph, "insertParagraph"},
23 {InputEvent::InputType::kInsertOrderedList, "insertOrderedList"}, 23 {InputEvent::InputType::kInsertOrderedList, "insertOrderedList"},
24 {InputEvent::InputType::kInsertUnorderedList, "insertUnorderedList"}, 24 {InputEvent::InputType::kInsertUnorderedList, "insertUnorderedList"},
25 {InputEvent::InputType::kInsertHorizontalRule, "insertHorizontalRule"}, 25 {InputEvent::InputType::kInsertHorizontalRule, "insertHorizontalRule"},
26 {InputEvent::InputType::kInsertFromPaste, "insertFromPaste"}, 26 {InputEvent::InputType::kInsertFromPaste, "insertFromPaste"},
27 {InputEvent::InputType::kInsertFromDrop, "insertFromDrop"}, 27 {InputEvent::InputType::kInsertFromDrop, "insertFromDrop"},
28 {InputEvent::InputType::kInsertFromYank, "insertFromYank"}, 28 {InputEvent::InputType::kInsertFromYank, "insertFromYank"},
29 {InputEvent::InputType::kInsertTranspose, "insertTranspose"}, 29 {InputEvent::InputType::kInsertTranspose, "insertTranspose"},
30 {InputEvent::InputType::kInsertReplacementText, "insertReplacementText"}, 30 {InputEvent::InputType::kInsertReplacementText, "insertReplacementText"},
31 {InputEvent::InputType::kInsertCompositionText, "insertCompositionText"}, 31 {InputEvent::InputType::kInsertCompositionText, "insertCompositionText"},
32 {InputEvent::InputType::kDeleteByComposition, "deleteByComposition"},
32 {InputEvent::InputType::kDeleteWordBackward, "deleteWordBackward"}, 33 {InputEvent::InputType::kDeleteWordBackward, "deleteWordBackward"},
33 {InputEvent::InputType::kDeleteWordForward, "deleteWordForward"}, 34 {InputEvent::InputType::kDeleteWordForward, "deleteWordForward"},
34 {InputEvent::InputType::kDeleteSoftLineBackward, "deleteSoftLineBackward"}, 35 {InputEvent::InputType::kDeleteSoftLineBackward, "deleteSoftLineBackward"},
35 {InputEvent::InputType::kDeleteSoftLineForward, "deleteSoftLineForward"}, 36 {InputEvent::InputType::kDeleteSoftLineForward, "deleteSoftLineForward"},
36 {InputEvent::InputType::kDeleteHardLineBackward, "deleteHardLineBackward"}, 37 {InputEvent::InputType::kDeleteHardLineBackward, "deleteHardLineBackward"},
37 {InputEvent::InputType::kDeleteHardLineForward, "deleteHardLineForward"}, 38 {InputEvent::InputType::kDeleteHardLineForward, "deleteHardLineForward"},
38 {InputEvent::InputType::kDeleteContentBackward, "deleteContentBackward"}, 39 {InputEvent::InputType::kDeleteContentBackward, "deleteContentBackward"},
39 {InputEvent::InputType::kDeleteContentForward, "deleteContentForward"}, 40 {InputEvent::InputType::kDeleteContentForward, "deleteContentForward"},
40 {InputEvent::InputType::kDeleteByCut, "deleteByCut"}, 41 {InputEvent::InputType::kDeleteByCut, "deleteByCut"},
41 {InputEvent::InputType::kDeleteByDrag, "deleteByDrag"}, 42 {InputEvent::InputType::kDeleteByDrag, "deleteByDrag"},
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 // 3. We don't want authors to hold live |Range| indefinitely by holding 219 // 3. We don't want authors to hold live |Range| indefinitely by holding
219 // |InputEvent|, so we clear them after dispatch. 220 // |InputEvent|, so we clear them after dispatch.
220 // Authors should explicitly call |getTargetRanges()|->|toRange()| if they 221 // Authors should explicitly call |getTargetRanges()|->|toRange()| if they
221 // want to keep a copy of |Range|. See Editing TF meeting notes: 222 // want to keep a copy of |Range|. See Editing TF meeting notes:
222 // https://docs.google.com/document/d/1hCj6QX77NYIVY0RWrMHT1Yra6t8_Qu8PopaWLG0 AM58/edit?usp=sharing 223 // https://docs.google.com/document/d/1hCj6QX77NYIVY0RWrMHT1Yra6t8_Qu8PopaWLG0 AM58/edit?usp=sharing
223 Event().ranges_.clear(); 224 Event().ranges_.clear();
224 return result; 225 return result;
225 } 226 }
226 227
227 } // namespace blink 228 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698