Home | History | Annotate | Download | only in gtk
      1 /*
      2  * Copyright (C) 2010 Apple Inc. All rights reserved.
      3  * Portions Copyright (c) 2010 Motorola Mobility, Inc.  All rights reserved.
      4  *
      5  * Redistribution and use in source and binary forms, with or without
      6  * modification, are permitted provided that the following conditions
      7  * are met:
      8  * 1. Redistributions of source code must retain the above copyright
      9  *    notice, this list of conditions and the following disclaimer.
     10  * 2. Redistributions in binary form must reproduce the above copyright
     11  *    notice, this list of conditions and the following disclaimer in the
     12  *    documentation and/or other materials provided with the distribution.
     13  *
     14  * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
     15  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
     16  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     17  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
     18  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     19  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     20  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     21  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     22  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     23  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
     24  * THE POSSIBILITY OF SUCH DAMAGE.
     25  */
     26 
     27 #include "config.h"
     28 #include "TextChecker.h"
     29 
     30 #include "TextCheckerState.h"
     31 #include <WebCore/NotImplemented.h>
     32 
     33 using namespace WebCore;
     34 
     35 namespace WebKit {
     36 
     37 static TextCheckerState textCheckerState;
     38 
     39 const TextCheckerState& TextChecker::state()
     40 {
     41     notImplemented();
     42     return textCheckerState;
     43 }
     44 
     45 bool TextChecker::isContinuousSpellCheckingAllowed()
     46 {
     47     notImplemented();
     48     return false;
     49 }
     50 
     51 void TextChecker::setContinuousSpellCheckingEnabled(bool isContinuousSpellCheckingEnabled)
     52 {
     53     notImplemented();
     54 }
     55 
     56 void TextChecker::setGrammarCheckingEnabled(bool isGrammarCheckingEnabled)
     57 {
     58     notImplemented();
     59 }
     60 
     61 int64_t TextChecker::uniqueSpellDocumentTag(WebPageProxy*)
     62 {
     63     notImplemented();
     64     return 0;
     65 }
     66 
     67 void TextChecker::closeSpellDocumentWithTag(int64_t)
     68 {
     69     notImplemented();
     70 }
     71 
     72 void TextChecker::checkSpellingOfString(int64_t, const UChar*, uint32_t, int32_t&, int32_t&)
     73 {
     74     notImplemented();
     75 }
     76 
     77 void TextChecker::checkGrammarOfString(int64_t, const UChar*, uint32_t, Vector<WebCore::GrammarDetail>&, int32_t&, int32_t&)
     78 {
     79     notImplemented();
     80 }
     81 
     82 bool TextChecker::spellingUIIsShowing()
     83 {
     84     notImplemented();
     85     return false;
     86 }
     87 
     88 void TextChecker::toggleSpellingUIIsShowing()
     89 {
     90     notImplemented();
     91 }
     92 
     93 void TextChecker::updateSpellingUIWithMisspelledWord(int64_t, const String&)
     94 {
     95     notImplemented();
     96 }
     97 
     98 void TextChecker::updateSpellingUIWithGrammarString(int64_t, const String&, const GrammarDetail&)
     99 {
    100     notImplemented();
    101 }
    102 
    103 void TextChecker::getGuessesForWord(int64_t spellDocumentTag, const String& word, const String& context, Vector<String>& guesses)
    104 {
    105     notImplemented();
    106 }
    107 
    108 void TextChecker::learnWord(int64_t, const String&)
    109 {
    110     notImplemented();
    111 }
    112 
    113 void TextChecker::ignoreWord(int64_t spellDocumentTag, const String& word)
    114 {
    115     notImplemented();
    116 }
    117 
    118 } // namespace WebKit
    119