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
32using namespace WebCore;
33
34namespace WebKit {
35
36static TextCheckerState textCheckerState;
37
38const TextCheckerState& TextChecker::state()
39{
40    notImplemented();
41
42    return textCheckerState;
43}
44
45bool TextChecker::isContinuousSpellCheckingAllowed()
46{
47    notImplemented();
48
49    return false;
50}
51
52void TextChecker::setContinuousSpellCheckingEnabled(bool isContinuousSpellCheckingEnabled)
53{
54    notImplemented();
55}
56
57void TextChecker::setGrammarCheckingEnabled(bool isGrammarCheckingEnabled)
58{
59    notImplemented();
60}
61
62void TextChecker::continuousSpellCheckingEnabledStateChanged(bool enabled)
63{
64    notImplemented();
65}
66
67void TextChecker::grammarCheckingEnabledStateChanged(bool enabled)
68{
69    notImplemented();
70}
71
72int64_t TextChecker::uniqueSpellDocumentTag(WebPageProxy*)
73{
74    notImplemented();
75    return 0;
76}
77
78void TextChecker::closeSpellDocumentWithTag(int64_t)
79{
80    notImplemented();
81}
82
83void TextChecker::checkSpellingOfString(int64_t, const UChar*, uint32_t, int32_t&, int32_t&)
84{
85    notImplemented();
86}
87
88void TextChecker::checkGrammarOfString(int64_t, const UChar*, uint32_t, Vector<WebCore::GrammarDetail>&, int32_t&, int32_t&)
89{
90    notImplemented();
91}
92
93bool TextChecker::spellingUIIsShowing()
94{
95    notImplemented();
96    return false;
97}
98
99void TextChecker::toggleSpellingUIIsShowing()
100{
101    notImplemented();
102}
103
104void TextChecker::updateSpellingUIWithMisspelledWord(int64_t, const String&)
105{
106    notImplemented();
107}
108
109void TextChecker::updateSpellingUIWithGrammarString(int64_t, const String&, const GrammarDetail&)
110{
111    notImplemented();
112}
113
114void TextChecker::getGuessesForWord(int64_t spellDocumentTag, const String& word, const String& context, Vector<String>& guesses)
115{
116    notImplemented();
117}
118
119void TextChecker::learnWord(int64_t, const String&)
120{
121    notImplemented();
122}
123
124void TextChecker::ignoreWord(int64_t spellDocumentTag, const String& word)
125{
126    notImplemented();
127}
128
129void TextChecker::requestCheckingOfString(PassRefPtr<TextCheckerCompletion>)
130{
131    notImplemented();
132}
133
134} // namespace WebKit
135