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

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: 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 return; 76 return;
77 } 77 }
78 ReplaceSelectionCommand::CommandOptions options = ReplaceSelectionCommand::S electReplacement | ReplaceSelectionCommand::PreventNesting; 78 ReplaceSelectionCommand::CommandOptions options = ReplaceSelectionCommand::S electReplacement | ReplaceSelectionCommand::PreventNesting;
79 if (m_smartInsert) 79 if (m_smartInsert)
80 options |= ReplaceSelectionCommand::SmartReplace; 80 options |= ReplaceSelectionCommand::SmartReplace;
81 applyCommandToComposite(ReplaceSelectionCommand::create(document(), m_fragme nt, options), editingState); 81 applyCommandToComposite(ReplaceSelectionCommand::create(document(), m_fragme nt, options), editingState);
82 } 82 }
83 83
84 InputEvent::InputType MoveSelectionCommand::inputType() const 84 InputEvent::InputType MoveSelectionCommand::inputType() const
85 { 85 {
86 return InputEvent::InputType::Drag; 86 return InputEvent::InputType::None;
87 } 87 }
88 88
89 DEFINE_TRACE(MoveSelectionCommand) 89 DEFINE_TRACE(MoveSelectionCommand)
90 { 90 {
91 visitor->trace(m_fragment); 91 visitor->trace(m_fragment);
92 visitor->trace(m_position); 92 visitor->trace(m_position);
93 CompositeEditCommand::trace(visitor); 93 CompositeEditCommand::trace(visitor);
94 } 94 }
95 95
96 } // namespace blink 96 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698