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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
192 bool insertLineBreak(); | 192 bool insertLineBreak(); |
193 bool insertParagraphSeparator(); | 193 bool insertParagraphSeparator(); |
194 | 194 |
195 bool isOverwriteModeEnabled() const { return m_overwriteModeEnabled; } | 195 bool isOverwriteModeEnabled() const { return m_overwriteModeEnabled; } |
196 void toggleOverwriteModeEnabled(); | 196 void toggleOverwriteModeEnabled(); |
197 | 197 |
198 bool canUndo(); | 198 bool canUndo(); |
199 void undo(); | 199 void undo(); |
200 bool canRedo(); | 200 bool canRedo(); |
201 void redo(); | 201 void redo(); |
202 UndoStack& undoStack() const { return *m_undoStack; } | |
yosin_UTC9
2017/03/03 05:34:23
Could you put comment that we should treat return
Xiaocheng
2017/03/03 06:28:27
Done.
| |
202 | 203 |
203 void setBaseWritingDirection(WritingDirection); | 204 void setBaseWritingDirection(WritingDirection); |
204 | 205 |
205 // smartInsertDeleteEnabled and selectTrailingWhitespaceEnabled are | 206 // smartInsertDeleteEnabled and selectTrailingWhitespaceEnabled are |
206 // mutually exclusive, meaning that enabling one will disable the other. | 207 // mutually exclusive, meaning that enabling one will disable the other. |
207 bool smartInsertDeleteEnabled() const; | 208 bool smartInsertDeleteEnabled() const; |
208 bool isSelectTrailingWhitespaceEnabled() const; | 209 bool isSelectTrailingWhitespaceEnabled() const; |
209 | 210 |
210 bool preventRevealSelection() const { return m_preventRevealSelection; } | 211 bool preventRevealSelection() const { return m_preventRevealSelection; } |
211 | 212 |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
383 m_typingStyle.clear(); | 384 m_typingStyle.clear(); |
384 } | 385 } |
385 | 386 |
386 inline void Editor::setTypingStyle(EditingStyle* style) { | 387 inline void Editor::setTypingStyle(EditingStyle* style) { |
387 m_typingStyle = style; | 388 m_typingStyle = style; |
388 } | 389 } |
389 | 390 |
390 } // namespace blink | 391 } // namespace blink |
391 | 392 |
392 #endif // Editor_h | 393 #endif // Editor_h |
OLD | NEW |