Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(398)

Unified Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.h

Issue 2795113002: Move ownership of TextCheckerClientImpl to WebLocalFrameImpl (Closed)
Patch Set: Rebased Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/web/WebLocalFrameImpl.h
diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.h b/third_party/WebKit/Source/web/WebLocalFrameImpl.h
index a57a15a315a8cac17f25fae0101c0bcc828b72de..2ec2c5c780e3980487d48ec00d7eb6d6a916a066 100644
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.h
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.h
@@ -55,6 +55,8 @@ class IntSize;
class KURL;
class ScrollableArea;
class SharedWorkerRepositoryClientImpl;
+class TextCheckerClient;
+class TextCheckerClientImpl;
class TextFinder;
class WebAssociatedURLLoader;
struct WebAssociatedURLLoaderOptions;
@@ -400,6 +402,8 @@ class WEB_EXPORT WebLocalFrameImpl final
static void selectWordAroundPosition(LocalFrame*, VisiblePosition);
+ TextCheckerClient& textCheckerClient() const;
+
TextFinder* textFinder() const;
// Returns the text finder object if it already exists.
// Otherwise creates it and then returns.
@@ -497,6 +501,9 @@ class WEB_EXPORT WebLocalFrameImpl final
std::unique_ptr<WebInputMethodControllerImpl> m_inputMethodController;
+ // Stores the TextCheckerClient which communicates with SpellCheckProvider.
+ Member<TextCheckerClientImpl> m_textCheckerClient;
+
// Oilpan: WebLocalFrameImpl must remain alive until close() is called.
// Accomplish that by keeping a self-referential Persistent<>. It is
// cleared upon close().
« no previous file with comments | « third_party/WebKit/Source/web/TextCheckerClientImpl.cpp ('k') | third_party/WebKit/Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698