| 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 const String& | 179 const String& |
| 180 commandName); // Command source is CommandFromMenuOrKeyBinding. | 180 commandName); // Command source is CommandFromMenuOrKeyBinding. |
| 181 Command createCommand(const String& commandName, EditorCommandSource); | 181 Command createCommand(const String& commandName, EditorCommandSource); |
| 182 | 182 |
| 183 // |Editor::executeCommand| is implementation of |WebFrame::executeCommand| | 183 // |Editor::executeCommand| is implementation of |WebFrame::executeCommand| |
| 184 // rather than |Document::execCommand|. | 184 // rather than |Document::execCommand|. |
| 185 bool executeCommand(const String&); | 185 bool executeCommand(const String&); |
| 186 bool executeCommand(const String& commandName, const String& value); | 186 bool executeCommand(const String& commandName, const String& value); |
| 187 | 187 |
| 188 bool insertText(const String&, KeyboardEvent* triggeringEvent); | 188 bool insertText(const String&, KeyboardEvent* triggeringEvent); |
| 189 bool insertTextWithoutSendingTextEvent(const String&, | 189 bool insertTextWithoutSendingTextEvent( |
| 190 bool selectInsertedText, | 190 const String&, |
| 191 TextEvent* triggeringEvent); | 191 bool selectInsertedText, |
| 192 TextEvent* triggeringEvent, |
| 193 InputEvent::InputType = InputEvent::InputType::InsertText); |
| 192 bool insertLineBreak(); | 194 bool insertLineBreak(); |
| 193 bool insertParagraphSeparator(); | 195 bool insertParagraphSeparator(); |
| 194 | 196 |
| 195 bool isOverwriteModeEnabled() const { return m_overwriteModeEnabled; } | 197 bool isOverwriteModeEnabled() const { return m_overwriteModeEnabled; } |
| 196 void toggleOverwriteModeEnabled(); | 198 void toggleOverwriteModeEnabled(); |
| 197 | 199 |
| 198 bool canUndo(); | 200 bool canUndo(); |
| 199 void undo(); | 201 void undo(); |
| 200 bool canRedo(); | 202 bool canRedo(); |
| 201 void redo(); | 203 void redo(); |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 m_typingStyle.clear(); | 389 m_typingStyle.clear(); |
| 388 } | 390 } |
| 389 | 391 |
| 390 inline void Editor::setTypingStyle(EditingStyle* style) { | 392 inline void Editor::setTypingStyle(EditingStyle* style) { |
| 391 m_typingStyle = style; | 393 m_typingStyle = style; |
| 392 } | 394 } |
| 393 | 395 |
| 394 } // namespace blink | 396 } // namespace blink |
| 395 | 397 |
| 396 #endif // Editor_h | 398 #endif // Editor_h |
| OLD | NEW |