summaryrefslogtreecommitdiffstats
path: root/Source/WebKit2/UIProcess/TextChecker.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit2/UIProcess/TextChecker.h')
-rw-r--r--Source/WebKit2/UIProcess/TextChecker.h22
1 files changed, 17 insertions, 5 deletions
diff --git a/Source/WebKit2/UIProcess/TextChecker.h b/Source/WebKit2/UIProcess/TextChecker.h
index 7a5d535..69e2837 100644
--- a/Source/WebKit2/UIProcess/TextChecker.h
+++ b/Source/WebKit2/UIProcess/TextChecker.h
@@ -31,6 +31,7 @@
namespace WebKit {
+class WebPageProxy;
struct TextCheckerState;
class TextChecker {
@@ -50,16 +51,27 @@ public:
static bool isSmartInsertDeleteEnabled();
static void setSmartInsertDeleteEnabled(bool);
+
+ static bool substitutionsPanelIsShowing();
+ static void toggleSubstitutionsPanelIsShowing();
+#elif PLATFORM(WIN)
+ static void continuousSpellCheckingEnabledStateChanged(bool);
+ static void grammarCheckingEnabledStateChanged(bool);
#endif
- static int64_t uniqueSpellDocumentTag();
+ static int64_t uniqueSpellDocumentTag(WebPageProxy*);
static void closeSpellDocumentWithTag(int64_t);
-
+#if USE(UNIFIED_TEXT_CHECKING)
static Vector<WebCore::TextCheckingResult> checkTextOfParagraph(int64_t spellDocumentTag, const UChar* text, int length, uint64_t checkingTypes);
- static void updateSpellingUIWithMisspelledWord(const String& misspelledWord);
- static void updateSpellingUIWithGrammarString(const String& badGrammarPhrase, const WebCore::GrammarDetail&);
+#endif
+ static void checkSpellingOfString(int64_t spellDocumentTag, const UChar* text, uint32_t length, int32_t& misspellingLocation, int32_t& misspellingLength);
+ static void checkGrammarOfString(int64_t spellDocumentTag, const UChar* text, uint32_t length, Vector<WebCore::GrammarDetail>&, int32_t& badGrammarLocation, int32_t& badGrammarLength);
+ static bool spellingUIIsShowing();
+ static void toggleSpellingUIIsShowing();
+ static void updateSpellingUIWithMisspelledWord(int64_t spellDocumentTag, const String& misspelledWord);
+ static void updateSpellingUIWithGrammarString(int64_t spellDocumentTag, const String& badGrammarPhrase, const WebCore::GrammarDetail&);
static void getGuessesForWord(int64_t spellDocumentTag, const String& word, const String& context, Vector<String>& guesses);
- static void learnWord(const String& word);
+ static void learnWord(int64_t spellDocumentTag, const String& word);
static void ignoreWord(int64_t spellDocumentTag, const String& word);
};