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

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

Issue 2117543003: [InputEvent] Fill |data| field for 'input' event InsertText (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed |dataFromCommand()| helper function Created 4 years, 5 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, 2007 Apple, Inc. All rights reserved. 2 * Copyright (C) 2005, 2006, 2007 Apple, 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 EditCommand::~EditCommand() 47 EditCommand::~EditCommand()
48 { 48 {
49 } 49 }
50 50
51 EditAction EditCommand::editingAction() const 51 EditAction EditCommand::editingAction() const
52 { 52 {
53 return EditActionUnspecified; 53 return EditActionUnspecified;
54 } 54 }
55 55
56 String EditCommand::textDataForInputEvent() const
57 {
58 return emptyString();
59 }
60
56 static inline EditCommandComposition* compositionIfPossible(EditCommand* command ) 61 static inline EditCommandComposition* compositionIfPossible(EditCommand* command )
57 { 62 {
58 if (!command->isCompositeEditCommand()) 63 if (!command->isCompositeEditCommand())
59 return 0; 64 return 0;
60 return toCompositeEditCommand(command)->composition(); 65 return toCompositeEditCommand(command)->composition();
61 } 66 }
62 67
63 void EditCommand::setStartingSelection(const VisibleSelection& selection) 68 void EditCommand::setStartingSelection(const VisibleSelection& selection)
64 { 69 {
65 for (EditCommand* command = this; ; command = command->m_parent) { 70 for (EditCommand* command = this; ; command = command->m_parent) {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 128
124 DEFINE_TRACE(EditCommand) 129 DEFINE_TRACE(EditCommand)
125 { 130 {
126 visitor->trace(m_document); 131 visitor->trace(m_document);
127 visitor->trace(m_startingSelection); 132 visitor->trace(m_startingSelection);
128 visitor->trace(m_endingSelection); 133 visitor->trace(m_endingSelection);
129 visitor->trace(m_parent); 134 visitor->trace(m_parent);
130 } 135 }
131 136
132 } // namespace blink 137 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698