OLD | NEW |
---|---|
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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
191 bool insertLineBreak(); | 191 bool insertLineBreak(); |
192 bool insertParagraphSeparator(); | 192 bool insertParagraphSeparator(); |
193 | 193 |
194 bool isOverwriteModeEnabled() const { return m_overwriteModeEnabled; } | 194 bool isOverwriteModeEnabled() const { return m_overwriteModeEnabled; } |
195 void toggleOverwriteModeEnabled(); | 195 void toggleOverwriteModeEnabled(); |
196 | 196 |
197 bool canUndo(); | 197 bool canUndo(); |
198 void undo(); | 198 void undo(); |
199 bool canRedo(); | 199 bool canRedo(); |
200 void redo(); | 200 void redo(); |
201 UndoStack& undoStack() const { return *m_undoStack; } | |
yosin_UTC9
2017/03/02 03:38:40
This should be |const UndoStack&|. Except for Edit
Xiaocheng
2017/03/02 04:34:59
Compile error if changed to |const UndoStack&|: bi
| |
201 | 202 |
202 void setBaseWritingDirection(WritingDirection); | 203 void setBaseWritingDirection(WritingDirection); |
203 | 204 |
204 // smartInsertDeleteEnabled and selectTrailingWhitespaceEnabled are | 205 // smartInsertDeleteEnabled and selectTrailingWhitespaceEnabled are |
205 // mutually exclusive, meaning that enabling one will disable the other. | 206 // mutually exclusive, meaning that enabling one will disable the other. |
206 bool smartInsertDeleteEnabled() const; | 207 bool smartInsertDeleteEnabled() const; |
207 bool isSelectTrailingWhitespaceEnabled() const; | 208 bool isSelectTrailingWhitespaceEnabled() const; |
208 | 209 |
209 bool preventRevealSelection() const { return m_preventRevealSelection; } | 210 bool preventRevealSelection() const { return m_preventRevealSelection; } |
210 | 211 |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
382 m_typingStyle.clear(); | 383 m_typingStyle.clear(); |
383 } | 384 } |
384 | 385 |
385 inline void Editor::setTypingStyle(EditingStyle* style) { | 386 inline void Editor::setTypingStyle(EditingStyle* style) { |
386 m_typingStyle = style; | 387 m_typingStyle = style; |
387 } | 388 } |
388 | 389 |
389 } // namespace blink | 390 } // namespace blink |
390 | 391 |
391 #endif // Editor_h | 392 #endif // Editor_h |
OLD | NEW |