| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2011 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 1089 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1100 { | 1100 { |
| 1101 if (client()) | 1101 if (client()) |
| 1102 client()->toggleGrammarChecking(); | 1102 client()->toggleGrammarChecking(); |
| 1103 } | 1103 } |
| 1104 | 1104 |
| 1105 int Editor::spellCheckerDocumentTag() | 1105 int Editor::spellCheckerDocumentTag() |
| 1106 { | 1106 { |
| 1107 return client() ? client()->spellCheckerDocumentTag() : 0; | 1107 return client() ? client()->spellCheckerDocumentTag() : 0; |
| 1108 } | 1108 } |
| 1109 | 1109 |
| 1110 #if USE(APPKIT) | |
| 1111 | |
| 1112 void Editor::uppercaseWord() | |
| 1113 { | |
| 1114 if (client()) | |
| 1115 client()->uppercaseWord(); | |
| 1116 } | |
| 1117 | |
| 1118 void Editor::lowercaseWord() | |
| 1119 { | |
| 1120 if (client()) | |
| 1121 client()->lowercaseWord(); | |
| 1122 } | |
| 1123 | |
| 1124 void Editor::capitalizeWord() | |
| 1125 { | |
| 1126 if (client()) | |
| 1127 client()->capitalizeWord(); | |
| 1128 } | |
| 1129 | |
| 1130 #endif | |
| 1131 | |
| 1132 #if USE(AUTOMATIC_TEXT_REPLACEMENT) | 1110 #if USE(AUTOMATIC_TEXT_REPLACEMENT) |
| 1133 | 1111 |
| 1134 void Editor::showSubstitutionsPanel() | 1112 void Editor::showSubstitutionsPanel() |
| 1135 { | 1113 { |
| 1136 if (!client()) { | 1114 if (!client()) { |
| 1137 LOG_ERROR("No NSSpellChecker"); | 1115 LOG_ERROR("No NSSpellChecker"); |
| 1138 return; | 1116 return; |
| 1139 } | 1117 } |
| 1140 | 1118 |
| 1141 if (client()->substitutionsPanelIsShowing()) { | 1119 if (client()->substitutionsPanelIsShowing()) { |
| (...skipping 1787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2929 { | 2907 { |
| 2930 return m_alternativeTextController->dictationAlternativesForMarker(marker); | 2908 return m_alternativeTextController->dictationAlternativesForMarker(marker); |
| 2931 } | 2909 } |
| 2932 | 2910 |
| 2933 void Editor::applyDictationAlternativelternative(const String& alternativeString
) | 2911 void Editor::applyDictationAlternativelternative(const String& alternativeString
) |
| 2934 { | 2912 { |
| 2935 m_alternativeTextController->applyDictationAlternative(alternativeString); | 2913 m_alternativeTextController->applyDictationAlternative(alternativeString); |
| 2936 } | 2914 } |
| 2937 | 2915 |
| 2938 } // namespace WebCore | 2916 } // namespace WebCore |
| OLD | NEW |