1/* 2 * Copyright (C) 2012 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#import "config.h" 27#import "TextChecker.h" 28 29#if PLATFORM(IOS) 30 31#import "TextCheckerState.h" 32#import <WebCore/NotImplemented.h> 33#import <wtf/text/StringView.h> 34 35using namespace WebCore; 36 37namespace WebKit { 38 39TextCheckerState textCheckerState; 40 41const TextCheckerState& TextChecker::state() 42{ 43 notImplemented(); 44 return textCheckerState; 45} 46 47bool TextChecker::isContinuousSpellCheckingAllowed() 48{ 49 notImplemented(); 50 return false; 51} 52 53void TextChecker::setContinuousSpellCheckingEnabled(bool) 54{ 55 notImplemented(); 56} 57 58void TextChecker::setGrammarCheckingEnabled(bool) 59{ 60 notImplemented(); 61} 62 63void TextChecker::setAutomaticSpellingCorrectionEnabled(bool) 64{ 65 notImplemented(); 66} 67 68void TextChecker::setAutomaticQuoteSubstitutionEnabled(bool) 69{ 70 notImplemented(); 71} 72 73void TextChecker::setAutomaticDashSubstitutionEnabled(bool) 74{ 75 notImplemented(); 76} 77 78void TextChecker::setAutomaticLinkDetectionEnabled(bool) 79{ 80 notImplemented(); 81} 82 83void TextChecker::setAutomaticTextReplacementEnabled(bool) 84{ 85 notImplemented(); 86} 87 88static bool smartInsertDeleteEnabled; 89 90bool TextChecker::isSmartInsertDeleteEnabled() 91{ 92 notImplemented(); 93 return smartInsertDeleteEnabled; 94} 95 96void TextChecker::setSmartInsertDeleteEnabled(bool) 97{ 98 notImplemented(); 99} 100 101bool TextChecker::substitutionsPanelIsShowing() 102{ 103 notImplemented(); 104 return false; 105} 106 107void TextChecker::toggleSubstitutionsPanelIsShowing() 108{ 109 notImplemented(); 110} 111 112void TextChecker::continuousSpellCheckingEnabledStateChanged(bool) 113{ 114 notImplemented(); 115} 116 117void TextChecker::grammarCheckingEnabledStateChanged(bool) 118{ 119 notImplemented(); 120} 121 122int64_t TextChecker::uniqueSpellDocumentTag(WebPageProxy*) 123{ 124 notImplemented(); 125 return 0; 126} 127 128void TextChecker::closeSpellDocumentWithTag(int64_t) 129{ 130 notImplemented(); 131} 132 133#if USE(UNIFIED_TEXT_CHECKING) 134 135Vector<TextCheckingResult> TextChecker::checkTextOfParagraph(int64_t, StringView, uint64_t) 136{ 137 notImplemented(); 138 return Vector<TextCheckingResult>(); 139} 140 141#endif 142 143void TextChecker::checkSpellingOfString(int64_t, StringView, int32_t&, int32_t&) 144{ 145 notImplemented(); 146} 147 148void TextChecker::checkGrammarOfString(int64_t, StringView, Vector<WebCore::GrammarDetail>&, int32_t&, int32_t&) 149{ 150 notImplemented(); 151} 152 153bool TextChecker::spellingUIIsShowing() 154{ 155 notImplemented(); 156 return false; 157} 158 159void TextChecker::toggleSpellingUIIsShowing() 160{ 161 notImplemented(); 162} 163 164void TextChecker::updateSpellingUIWithMisspelledWord(int64_t, const String&) 165{ 166 notImplemented(); 167} 168 169void TextChecker::updateSpellingUIWithGrammarString(int64_t, const String&, const GrammarDetail&) 170{ 171 notImplemented(); 172} 173 174void TextChecker::getGuessesForWord(int64_t, const String&, const String&, Vector<String>&) 175{ 176 notImplemented(); 177} 178 179void TextChecker::learnWord(int64_t, const String&) 180{ 181 notImplemented(); 182} 183 184void TextChecker::ignoreWord(int64_t, const String&) 185{ 186 notImplemented(); 187} 188 189void TextChecker::requestCheckingOfString(PassRefPtr<TextCheckerCompletion>) 190{ 191 notImplemented(); 192} 193 194} // namespace WebKit 195 196#endif // PLATFORM(IOS) 197