| 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 | 202 |
| 203 // Exposed for IdleSpellCheckCallback only. |
| 204 // Supposed to be used as |const UndoStack&|. |
| 205 UndoStack& undoStack() const { return *m_undoStack; } |
| 206 |
| 203 void setBaseWritingDirection(WritingDirection); | 207 void setBaseWritingDirection(WritingDirection); |
| 204 | 208 |
| 205 // smartInsertDeleteEnabled and selectTrailingWhitespaceEnabled are | 209 // smartInsertDeleteEnabled and selectTrailingWhitespaceEnabled are |
| 206 // mutually exclusive, meaning that enabling one will disable the other. | 210 // mutually exclusive, meaning that enabling one will disable the other. |
| 207 bool smartInsertDeleteEnabled() const; | 211 bool smartInsertDeleteEnabled() const; |
| 208 bool isSelectTrailingWhitespaceEnabled() const; | 212 bool isSelectTrailingWhitespaceEnabled() const; |
| 209 | 213 |
| 210 bool preventRevealSelection() const { return m_preventRevealSelection; } | 214 bool preventRevealSelection() const { return m_preventRevealSelection; } |
| 211 | 215 |
| 212 void setStartNewKillRingSequence(bool); | 216 void setStartNewKillRingSequence(bool); |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 m_typingStyle.clear(); | 387 m_typingStyle.clear(); |
| 384 } | 388 } |
| 385 | 389 |
| 386 inline void Editor::setTypingStyle(EditingStyle* style) { | 390 inline void Editor::setTypingStyle(EditingStyle* style) { |
| 387 m_typingStyle = style; | 391 m_typingStyle = style; |
| 388 } | 392 } |
| 389 | 393 |
| 390 } // namespace blink | 394 } // namespace blink |
| 391 | 395 |
| 392 #endif // Editor_h | 396 #endif // Editor_h |
| OLD | NEW |