Lines Matching refs:Edit
20 // Edit holds state information to undo/redo editing changes. Editing operations
23 class Edit {
31 virtual ~Edit() {}
49 bool Merge(const Edit* edit) {
69 Edit(Type type,
90 virtual bool DoMerge(const Edit* edit) = 0;
108 void MergeReplace(const Edit* edit) {
145 DISALLOW_COPY_AND_ASSIGN(Edit);
148 class InsertEdit : public Edit {
151 : Edit(INSERT_EDIT,
162 // Edit implementation.
163 virtual bool DoMerge(const Edit* edit) OVERRIDE {
175 class ReplaceEdit : public Edit {
185 : Edit(REPLACE_EDIT, merge_type,
195 // Edit implementation.
196 virtual bool DoMerge(const Edit* edit) OVERRIDE {
208 class DeleteEdit : public Edit {
214 : Edit(DELETE_EDIT,
225 // Edit implementation.
226 virtual bool DoMerge(const Edit* edit) OVERRIDE {
265 using internal::Edit;
665 // Edit history is recorded in InsertText.
686 Edit* edit = new DeleteEdit(mergeable, old_text, old_text_start, backward);
712 Edit* edit = new ReplaceEdit(merge_type,
728 Edit* edit = new InsertEdit(mergeable, new_text, GetCursorPosition());
735 bool TextfieldModel::AddOrMergeEditHistory(Edit* edit) {