Move WebTextCheckClient reference from WebViewImpl to WebLocalFrameImpl
This is Patch 5 of 6 for making SpellCheckProvider a RenderFrameObserver, so
that spellcheck can work in OOPIF. Full design: https://goo.gl/VfCENk
This patch moves the Blink-side reference to WebTextCheckClient from
WebViewImpl to WebLocalFrameImpl, as a preparation for changing
SpellCheckProvider from RenderViewObserver to RenderFrameObserver.
Currently, SpellCheckProvider is still view-based, and all WebLocalFrames of
the same view are holding references to the same SpellCheckProvider. Follow
up patch will change that.
For layout tests, by design there should be only one mock spell checker
instance. This patch also ensures that this instance is used by all
WebLocalFrames.
BUG=638361
Review-Url: https://codereview.chromium.org/2797073002
Cr-Commit-Position: refs/heads/master@{#462538}
diff --git a/content/shell/test_runner/test_runner.h b/content/shell/test_runner/test_runner.h
index 0cdf5fb..62a7ea8 100644
--- a/content/shell/test_runner/test_runner.h
+++ b/content/shell/test_runner/test_runner.h
@@ -100,6 +100,7 @@
bool HasCustomTextDump(std::string* custom_text_dump) const override;
bool ShouldDumpBackForwardList() const override;
blink::WebContentSettingsClient* GetWebContentSettings() const override;
+ blink::WebTextCheckClient* GetWebTextCheckClient() const override;
void InitializeWebViewWithMocks(blink::WebView* web_view) override;
void SetFocus(blink::WebView* web_view, bool focus) override;