summaryrefslogtreecommitdiff
path: root/Source/WebKit2/UIProcess/API/C/WKTextChecker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit2/UIProcess/API/C/WKTextChecker.cpp')
-rw-r--r--Source/WebKit2/UIProcess/API/C/WKTextChecker.cpp22
1 files changed, 17 insertions, 5 deletions
diff --git a/Source/WebKit2/UIProcess/API/C/WKTextChecker.cpp b/Source/WebKit2/UIProcess/API/C/WKTextChecker.cpp
index 2da94dfc2..c8e7560b1 100644
--- a/Source/WebKit2/UIProcess/API/C/WKTextChecker.cpp
+++ b/Source/WebKit2/UIProcess/API/C/WKTextChecker.cpp
@@ -25,36 +25,48 @@
#include "config.h"
#include "WKTextChecker.h"
+#include "TextChecker.h"
+#if defined(BUILDING_GTK__)
#include "WKAPICast.h"
#include "WebPageProxy.h"
#include "WebTextChecker.h"
+#endif
using namespace WebKit;
+void WKTextCheckerSetTestingMode(bool enabled)
+{
+ TextChecker::setTestingMode(enabled);
+}
+
+#if defined(BUILDING_GTK__)
+
void WKTextCheckerSetClient(const WKTextCheckerClientBase* wkClient)
{
if (wkClient && wkClient->version)
return;
- WebTextChecker::shared()->setClient(wkClient);
+ WebTextChecker::singleton()->setClient(wkClient);
}
void WKTextCheckerContinuousSpellCheckingEnabledStateChanged(bool enabled)
{
- WebTextChecker::shared()->continuousSpellCheckingEnabledStateChanged(enabled);
+ WebTextChecker::singleton()->continuousSpellCheckingEnabledStateChanged(enabled);
}
void WKTextCheckerGrammarCheckingEnabledStateChanged(bool enabled)
{
- WebTextChecker::shared()->grammarCheckingEnabledStateChanged(enabled);
+ WebTextChecker::singleton()->grammarCheckingEnabledStateChanged(enabled);
}
void WKTextCheckerCheckSpelling(WKPageRef page, bool startBeforeSelection)
{
- WebTextChecker::shared()->checkSpelling(toImpl(page), startBeforeSelection);
+ WebTextChecker::singleton()->checkSpelling(toImpl(page), startBeforeSelection);
}
void WKTextCheckerChangeSpellingToWord(WKPageRef page, WKStringRef word)
{
- WebTextChecker::shared()->changeSpellingToWord(toImpl(page), toWTFString(word));
+ WebTextChecker::singleton()->changeSpellingToWord(toImpl(page), toWTFString(word));
}
+
+#endif