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

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

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
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.h ('k') | third_party/WebKit/Source/web/WebViewImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
index b92e52d602d25a9090d272ad76e8b92b69dbb01f..f7f77643884e4b780b375c28ff0c21c8c5d95973 100644
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
@@ -219,6 +219,7 @@
#include "web/RemoteFrameOwner.h"
#include "web/SharedWorkerRepositoryClientImpl.h"
#include "web/SuspendableScriptExecutor.h"
+#include "web/TextCheckerClientImpl.h"
#include "web/TextFinder.h"
#include "web/WebAssociatedURLLoaderImpl.h"
#include "web/WebDataSourceImpl.h"
@@ -1568,6 +1569,7 @@ WebLocalFrameImpl::WebLocalFrameImpl(
m_interfaceRegistry(interfaceRegistry),
m_webDevToolsFrontend(0),
m_inputMethodController(new WebInputMethodControllerImpl(this)),
+ m_textCheckerClient(new TextCheckerClientImpl(this)),
m_selfKeepAlive(this) {
DCHECK(m_client);
frameCount++;
@@ -1598,6 +1600,7 @@ DEFINE_TRACE(WebLocalFrameImpl) {
visitor->trace(m_textFinder);
visitor->trace(m_printContext);
visitor->trace(m_contextMenuNode);
+ visitor->trace(m_textCheckerClient);
WebFrame::traceFrames(visitor, this);
WebFrameImplBase::trace(visitor);
}
@@ -2520,4 +2523,8 @@ void WebLocalFrameImpl::extractSmartClipData(WebRect rectInViewport,
}
}
+TextCheckerClient& WebLocalFrameImpl::textCheckerClient() const {
+ return *m_textCheckerClient;
+}
+
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.h ('k') | third_party/WebKit/Source/web/WebViewImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698