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

Side by Side Diff: third_party/WebKit/Source/core/editing/commands/MoveSelectionCommand.cpp

Issue 2374743002: [InputEvent] Support |deleteByDrag|, |insertFromDrop| and fire in sequential order (Closed)
Patch Set: Yosin's review 2 Created 4 years, 2 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 /* 1 /*
2 * Copyright (C) 2005, 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2005, 2006 Apple Computer, Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 ReplaceSelectionCommand::SelectReplacement | 91 ReplaceSelectionCommand::SelectReplacement |
92 ReplaceSelectionCommand::PreventNesting; 92 ReplaceSelectionCommand::PreventNesting;
93 if (m_smartInsert) 93 if (m_smartInsert)
94 options |= ReplaceSelectionCommand::SmartReplace; 94 options |= ReplaceSelectionCommand::SmartReplace;
95 applyCommandToComposite( 95 applyCommandToComposite(
96 ReplaceSelectionCommand::create(document(), m_fragment, options), 96 ReplaceSelectionCommand::create(document(), m_fragment, options),
97 editingState); 97 editingState);
98 } 98 }
99 99
100 InputEvent::InputType MoveSelectionCommand::inputType() const { 100 InputEvent::InputType MoveSelectionCommand::inputType() const {
101 return InputEvent::InputType::Drag; 101 return InputEvent::InputType::None;
102 } 102 }
103 103
104 DEFINE_TRACE(MoveSelectionCommand) { 104 DEFINE_TRACE(MoveSelectionCommand) {
105 visitor->trace(m_fragment); 105 visitor->trace(m_fragment);
106 visitor->trace(m_position); 106 visitor->trace(m_position);
107 CompositeEditCommand::trace(visitor); 107 CompositeEditCommand::trace(visitor);
108 } 108 }
109 109
110 } // namespace blink 110 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/editing/commands/EditCommand.cpp ('k') | third_party/WebKit/Source/core/events/InputEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698