Changeset 147993 in webkit
- Timestamp:
- Apr 9, 2013 12:30:09 AM (11 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r147979 r147993 1 2013-04-08 Grzegorz Czajkowski <g.czajkowski@samsung.com> 2 3 [WK2][EFL] Mark not implemented methods in TextCheckerEfl. 4 https://bugs.webkit.org/show_bug.cgi?id=112261 5 6 Reviewed by Anders Carlsson. 7 8 There's no need to call client's methods in TextCheckerEfl.cpp if they are not 9 implemented. Mark them as not implemented until we provide proper implementation. 10 11 * UIProcess/efl/TextCheckerEfl.cpp: 12 (WebKit::TextChecker::isContinuousSpellCheckingAllowed): 13 (WebKit::TextChecker::setGrammarCheckingEnabled): 14 (WebKit::TextChecker::grammarCheckingEnabledStateChanged): 15 (WebKit::TextChecker::checkGrammarOfString): 16 (WebKit::TextChecker::spellingUIIsShowing): 17 (WebKit::TextChecker::toggleSpellingUIIsShowing): 18 (WebKit::TextChecker::updateSpellingUIWithMisspelledWord): 19 (WebKit::TextChecker::updateSpellingUIWithGrammarString): 20 1 21 2013-04-08 Benjamin Poulain <benjamin@webkit.org> 2 22 -
trunk/Source/WebKit2/UIProcess/efl/TextCheckerEfl.cpp
r145360 r147993 29 29 #include "TextChecker.h" 30 30 31 #include "NotImplemented.h" 31 32 #include "TextCheckerState.h" 32 33 … … 60 61 bool TextChecker::isContinuousSpellCheckingAllowed() 61 62 { 62 #if ENABLE(SPELLCHECK) 63 return WebTextChecker::shared()->client().continuousSpellCheckingAllowed(); 64 #else 63 notImplemented(); 65 64 return false; 66 #endif67 65 } 68 66 … … 80 78 } 81 79 82 void TextChecker::setGrammarCheckingEnabled(bool isGrammarCheckingEnabled) 83 { 84 #if ENABLE(SPELLCHECK) 85 if (state().isGrammarCheckingEnabled == isGrammarCheckingEnabled) 86 return; 87 88 textCheckerState.isGrammarCheckingEnabled = isGrammarCheckingEnabled; 89 WebTextChecker::shared()->client().setGrammarCheckingEnabled(isGrammarCheckingEnabled); 90 #else 91 UNUSED_PARAM(isGrammarCheckingEnabled); 92 #endif 80 void TextChecker::setGrammarCheckingEnabled(bool) 81 { 82 notImplemented(); 93 83 } 94 84 … … 98 88 } 99 89 100 void TextChecker::grammarCheckingEnabledStateChanged(bool enabled) 101 { 102 #if ENABLE(SPELLCHECK) 103 textCheckerState.isGrammarCheckingEnabled = enabled; 104 #else 105 UNUSED_PARAM(enabled); 106 #endif 90 void TextChecker::grammarCheckingEnabledStateChanged(bool) 91 { 92 notImplemented(); 107 93 } 108 94 … … 211 197 } 212 198 213 void TextChecker::checkGrammarOfString(int64_t spellDocumentTag, const UChar* text, uint32_t length, Vector<GrammarDetail>& grammarDetails, int32_t& badGrammarLocation, int32_t& badGrammarLength) 214 { 215 #if ENABLE(SPELLCHECK) 216 WebTextChecker::shared()->client().checkGrammarOfString(spellDocumentTag, String(text, length), grammarDetails, badGrammarLocation, badGrammarLength); 217 #else 218 UNUSED_PARAM(spellDocumentTag); 219 UNUSED_PARAM(text); 220 UNUSED_PARAM(length); 221 UNUSED_PARAM(grammarDetails); 222 UNUSED_PARAM(badGrammarLocation); 223 UNUSED_PARAM(badGrammarLength); 224 #endif 199 void TextChecker::checkGrammarOfString(int64_t, const UChar*, uint32_t, Vector<GrammarDetail>&, int32_t&, int32_t&) 200 { 201 notImplemented(); 225 202 } 226 203 227 204 bool TextChecker::spellingUIIsShowing() 228 205 { 229 #if ENABLE(SPELLCHECK) 230 return WebTextChecker::shared()->client().spellingUIIsShowing(); 231 #else 206 notImplemented(); 232 207 return false; 233 #endif234 208 } 235 209 236 210 void TextChecker::toggleSpellingUIIsShowing() 237 211 { 238 #if ENABLE(SPELLCHECK) 239 WebTextChecker::shared()->client().toggleSpellingUIIsShowing(); 240 #endif 241 } 242 243 void TextChecker::updateSpellingUIWithMisspelledWord(int64_t spellDocumentTag, const String& misspelledWord) 244 { 245 #if ENABLE(SPELLCHECK) 246 WebTextChecker::shared()->client().updateSpellingUIWithMisspelledWord(spellDocumentTag, misspelledWord); 247 #else 248 UNUSED_PARAM(spellDocumentTag); 249 UNUSED_PARAM(misspelledWord); 250 #endif 251 } 252 253 void TextChecker::updateSpellingUIWithGrammarString(int64_t spellDocumentTag, const String& badGrammarPhrase, const GrammarDetail& grammarDetail) 254 { 255 #if ENABLE(SPELLCHECK) 256 WebTextChecker::shared()->client().updateSpellingUIWithGrammarString(spellDocumentTag, badGrammarPhrase, grammarDetail); 257 #else 258 UNUSED_PARAM(spellDocumentTag); 259 UNUSED_PARAM(badGrammarPhrase); 260 UNUSED_PARAM(grammarDetail); 261 #endif 212 notImplemented(); 213 } 214 215 void TextChecker::updateSpellingUIWithMisspelledWord(int64_t, const String&) 216 { 217 notImplemented(); 218 } 219 220 void TextChecker::updateSpellingUIWithGrammarString(int64_t, const String&, const GrammarDetail&) 221 { 222 notImplemented(); 262 223 } 263 224
Note: See TracChangeset
for help on using the changeset viewer.