| Index: third_party/WebKit/Source/web/SpellCheckerClientImpl.h
|
| diff --git a/third_party/WebKit/Source/web/SpellCheckerClientImpl.h b/third_party/WebKit/Source/web/SpellCheckerClientImpl.h
|
| index 78949f3023094210ce7251df582f4400654bb1dd..ca4f090c3484741cf9dfef51204b92cb6d570e0e 100644
|
| --- a/third_party/WebKit/Source/web/SpellCheckerClientImpl.h
|
| +++ b/third_party/WebKit/Source/web/SpellCheckerClientImpl.h
|
| @@ -32,32 +32,25 @@
|
| #define SpellCheckerClientImpl_h
|
|
|
| #include "core/page/SpellCheckerClient.h"
|
| -#include "platform/heap/Handle.h"
|
| -#include "platform/text/TextCheckerClient.h"
|
|
|
| namespace blink {
|
|
|
| +class TextCheckerClient;
|
| class WebViewImpl;
|
|
|
| -class SpellCheckerClientImpl final : public SpellCheckerClient,
|
| - public TextCheckerClient {
|
| +class SpellCheckerClientImpl final : public SpellCheckerClient {
|
| public:
|
| - explicit SpellCheckerClientImpl(WebViewImpl*);
|
| + explicit SpellCheckerClientImpl(WebViewImpl*, TextCheckerClient*);
|
|
|
| ~SpellCheckerClientImpl() override;
|
|
|
| bool isSpellCheckingEnabled() override;
|
| void toggleSpellCheckingEnabled() override;
|
| - void checkSpellingOfString(const String&,
|
| - int* misspellingLocation,
|
| - int* misspellingLength) override;
|
| void updateSpellingUIWithMisspelledWord(const String&) override;
|
| void showSpellingUI(bool show) override;
|
| bool spellingUIIsShowing() override;
|
| - void requestCheckingOfString(TextCheckingRequest*) override;
|
| - void cancelAllPendingRequests() override;
|
|
|
| - TextCheckerClient& textChecker() override { return *this; }
|
| + TextCheckerClient& textChecker() override { return *m_textCheckerClient; }
|
|
|
| private:
|
| // Returns whether or not the focused control needs spell-checking.
|
| @@ -70,6 +63,7 @@ class SpellCheckerClientImpl final : public SpellCheckerClient,
|
| bool shouldSpellcheckByDefault();
|
|
|
| WebViewImpl* m_webView;
|
| + TextCheckerClient* m_textCheckerClient;
|
|
|
| // This flag is set to false if spell check for this editor is manually
|
| // turned off. The default setting is SpellCheckAutomatic.
|
|
|