Changeset 147993 in webkit


Ignore:
Timestamp:
Apr 9, 2013 12:30:09 AM (11 years ago)
Author:
g.czajkowski@samsung.com
Message:

[WK2][EFL] Mark not implemented methods in TextCheckerEfl.
https://bugs.webkit.org/show_bug.cgi?id=112261

Reviewed by Anders Carlsson.

There's no need to call client's methods in TextCheckerEfl.cpp if they are not
implemented. Mark them as not implemented until we provide proper implementation.

  • UIProcess/efl/TextCheckerEfl.cpp:

(WebKit::TextChecker::isContinuousSpellCheckingAllowed):
(WebKit::TextChecker::setGrammarCheckingEnabled):
(WebKit::TextChecker::grammarCheckingEnabledStateChanged):
(WebKit::TextChecker::checkGrammarOfString):
(WebKit::TextChecker::spellingUIIsShowing):
(WebKit::TextChecker::toggleSpellingUIIsShowing):
(WebKit::TextChecker::updateSpellingUIWithMisspelledWord):
(WebKit::TextChecker::updateSpellingUIWithGrammarString):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r147979 r147993  
     12013-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
    1212013-04-08  Benjamin Poulain  <benjamin@webkit.org>
    222
  • trunk/Source/WebKit2/UIProcess/efl/TextCheckerEfl.cpp

    r145360 r147993  
    2929#include "TextChecker.h"
    3030
     31#include "NotImplemented.h"
    3132#include "TextCheckerState.h"
    3233
     
    6061bool TextChecker::isContinuousSpellCheckingAllowed()
    6162{
    62 #if ENABLE(SPELLCHECK)
    63     return WebTextChecker::shared()->client().continuousSpellCheckingAllowed();
    64 #else
     63    notImplemented();
    6564    return false;
    66 #endif
    6765}
    6866
     
    8078}
    8179
    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
     80void TextChecker::setGrammarCheckingEnabled(bool)
     81{
     82    notImplemented();
    9383}
    9484
     
    9888}
    9989
    100 void TextChecker::grammarCheckingEnabledStateChanged(bool enabled)
    101 {
    102 #if ENABLE(SPELLCHECK)
    103     textCheckerState.isGrammarCheckingEnabled = enabled;
    104 #else
    105     UNUSED_PARAM(enabled);
    106 #endif
     90void TextChecker::grammarCheckingEnabledStateChanged(bool)
     91{
     92    notImplemented();
    10793}
    10894
     
    211197}
    212198
    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
     199void TextChecker::checkGrammarOfString(int64_t, const UChar*, uint32_t, Vector<GrammarDetail>&, int32_t&, int32_t&)
     200{
     201    notImplemented();
    225202}
    226203
    227204bool TextChecker::spellingUIIsShowing()
    228205{
    229 #if ENABLE(SPELLCHECK)
    230     return WebTextChecker::shared()->client().spellingUIIsShowing();
    231 #else
     206    notImplemented();
    232207    return false;
    233 #endif
    234208}
    235209
    236210void TextChecker::toggleSpellingUIIsShowing()
    237211{
    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
     215void TextChecker::updateSpellingUIWithMisspelledWord(int64_t, const String&)
     216{
     217    notImplemented();
     218}
     219
     220void TextChecker::updateSpellingUIWithGrammarString(int64_t, const String&, const GrammarDetail&)
     221{
     222    notImplemented();
    262223}
    263224
Note: See TracChangeset for help on using the changeset viewer.