| 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 isTextInsertion() const; | 191 bool isTextInsertion() const; |
| 192 | 192 |
| 193 private: | 193 private: |
| 194 const EditorInternalCommand* m_command; | 194 const EditorInternalCommand* m_command; |
| 195 EditorCommandSource m_source; | 195 EditorCommandSource m_source; |
| 196 RefPtr<Frame> m_frame; | 196 RefPtr<Frame> m_frame; |
| 197 }; | 197 }; |
| 198 Command command(const String& commandName); // Command source is CommandFrom
MenuOrKeyBinding. | 198 Command command(const String& commandName); // Command source is CommandFrom
MenuOrKeyBinding. |
| 199 Command command(const String& commandName, EditorCommandSource); | 199 Command command(const String& commandName, EditorCommandSource); |
| 200 static bool commandIsSupportedFromMenuOrKeyBinding(const String& commandName
); // Works without a frame. | 200 static bool commandIsSupportedFromMenuOrKeyBinding(const String& commandName
); // Works without a frame. |
| 201 static bool hasTransparentBackgroundColor(CSSStyleDeclaration*); | |
| 202 | 201 |
| 203 bool insertText(const String&, Event* triggeringEvent); | 202 bool insertText(const String&, Event* triggeringEvent); |
| 204 bool insertTextForConfirmedComposition(const String& text); | 203 bool insertTextForConfirmedComposition(const String& text); |
| 205 bool insertTextWithoutSendingTextEvent(const String&, bool selectInsertedTex
t, TextEvent* triggeringEvent); | 204 bool insertTextWithoutSendingTextEvent(const String&, bool selectInsertedTex
t, TextEvent* triggeringEvent); |
| 206 bool insertLineBreak(); | 205 bool insertLineBreak(); |
| 207 bool insertParagraphSeparator(); | 206 bool insertParagraphSeparator(); |
| 208 | 207 |
| 209 bool isContinuousSpellCheckingEnabled(); | 208 bool isContinuousSpellCheckingEnabled(); |
| 210 void toggleContinuousSpellChecking(); | 209 void toggleContinuousSpellChecking(); |
| 211 bool isGrammarCheckingEnabled(); | 210 bool isGrammarCheckingEnabled(); |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 453 | 452 |
| 454 inline bool Editor::markedTextMatchesAreHighlighted() const | 453 inline bool Editor::markedTextMatchesAreHighlighted() const |
| 455 { | 454 { |
| 456 return m_areMarkedTextMatchesHighlighted; | 455 return m_areMarkedTextMatchesHighlighted; |
| 457 } | 456 } |
| 458 | 457 |
| 459 | 458 |
| 460 } // namespace WebCore | 459 } // namespace WebCore |
| 461 | 460 |
| 462 #endif // Editor_h | 461 #endif // Editor_h |
| OLD | NEW |