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

Side by Side Diff: Source/core/editing/Editor.h

Issue 184103011: Clear undo stack when text control is set programatically Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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
« no previous file with comments | « no previous file | Source/core/editing/Editor.cpp » ('j') | Source/core/editing/UndoStack.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 bool insertLineBreak(); 161 bool insertLineBreak();
162 bool insertParagraphSeparator(); 162 bool insertParagraphSeparator();
163 163
164 bool isOverwriteModeEnabled() const { return m_overwriteModeEnabled; } 164 bool isOverwriteModeEnabled() const { return m_overwriteModeEnabled; }
165 void toggleOverwriteModeEnabled(); 165 void toggleOverwriteModeEnabled();
166 166
167 bool canUndo(); 167 bool canUndo();
168 void undo(); 168 void undo();
169 bool canRedo(); 169 bool canRedo();
170 void redo(); 170 void redo();
171 void clearUndoStack();
171 172
172 void setBaseWritingDirection(WritingDirection); 173 void setBaseWritingDirection(WritingDirection);
173 174
174 // smartInsertDeleteEnabled and selectTrailingWhitespaceEnabled are 175 // smartInsertDeleteEnabled and selectTrailingWhitespaceEnabled are
175 // mutually exclusive, meaning that enabling one will disable the other. 176 // mutually exclusive, meaning that enabling one will disable the other.
176 bool smartInsertDeleteEnabled() const; 177 bool smartInsertDeleteEnabled() const;
177 bool isSelectTrailingWhitespaceEnabled() const; 178 bool isSelectTrailingWhitespaceEnabled() const;
178 179
179 bool preventRevealSelection() const { return m_preventRevealSelection; } 180 bool preventRevealSelection() const { return m_preventRevealSelection; }
180 181
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 290
290 inline bool Editor::markedTextMatchesAreHighlighted() const 291 inline bool Editor::markedTextMatchesAreHighlighted() const
291 { 292 {
292 return m_areMarkedTextMatchesHighlighted; 293 return m_areMarkedTextMatchesHighlighted;
293 } 294 }
294 295
295 296
296 } // namespace WebCore 297 } // namespace WebCore
297 298
298 #endif // Editor_h 299 #endif // Editor_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/editing/Editor.cpp » ('j') | Source/core/editing/UndoStack.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698