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

Unified Diff: third_party/WebKit/Source/modules/ModulesInitializer.cpp

Issue 2787703002: Add mojo service for CopylessPaste in Blink (Closed)
Patch Set: update to new mojo namespace 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 | « no previous file | third_party/WebKit/Source/modules/document_metadata/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/ModulesInitializer.cpp
diff --git a/third_party/WebKit/Source/modules/ModulesInitializer.cpp b/third_party/WebKit/Source/modules/ModulesInitializer.cpp
index aa5ad9adafaf48d165e0a5e4a739e15bca229bde..b89010e4304c3992e5b49fe02899d7cc00424aaa 100644
--- a/third_party/WebKit/Source/modules/ModulesInitializer.cpp
+++ b/third_party/WebKit/Source/modules/ModulesInitializer.cpp
@@ -21,6 +21,7 @@
#include "modules/canvas2d/CanvasRenderingContext2D.h"
#include "modules/compositorworker/CompositorWorkerThread.h"
#include "modules/csspaint/CSSPaintImageGeneratorImpl.h"
+#include "modules/document_metadata/CopylessPasteServer.h"
#include "modules/filesystem/DraggedIsolatedFileSystemImpl.h"
#include "modules/imagebitmap/ImageBitmapRenderingContext.h"
#include "modules/installation/InstallationServiceImpl.h"
@@ -83,6 +84,10 @@ void ModulesInitializer::initialize() {
// Mojo Interfaces registered with LocalFrame
LocalFrame::registerInitializationCallback([](LocalFrame* frame) {
+ if (frame && frame->isMainFrame()) {
+ frame->interfaceRegistry()->addInterface(WTF::bind(
+ &CopylessPasteServer::bindMojoRequest, wrapWeakPersistent(frame)));
+ }
frame->interfaceRegistry()->addInterface(
WTF::bind(&InstallationServiceImpl::create, wrapWeakPersistent(frame)));
// TODO(dominickn): This interface should be document-scoped rather than
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/document_metadata/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698