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