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

Unified Diff: third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.h

Issue 2787703002: Add mojo service for CopylessPaste in Blink (Closed)
Patch Set: only main frame 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/modules/document_metadata/CopylessPasteServer.h
diff --git a/third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.h b/third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.h
new file mode 100644
index 0000000000000000000000000000000000000000..78e77639403b0f31b7700c94db02d02d0fb7cfa7
--- /dev/null
+++ b/third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.h
@@ -0,0 +1,31 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CopylessPasteServer_h
+#define CopylessPasteServer_h
+
+#include "modules/ModulesExport.h"
+#include "platform/heap/Persistent.h"
+#include "public/platform/modules/document_metadata/copyless_paste.mojom-blink.h"
+
+namespace blink {
+
+class LocalFrame;
+
+class MODULES_EXPORT CopylessPasteServer final
haraken 2017/04/06 02:26:32 Add a class-level comment.
wychen 2017/04/06 15:34:58 I think the coding style in Blink was more like pr
+ : public mojom::blink::CopylessPaste {
+ public:
+ explicit CopylessPasteServer(LocalFrame&);
+
+ static void bindMojoRequest(LocalFrame*, mojom::blink::CopylessPasteRequest);
+
+ void GetEntities(const GetEntitiesCallback&) override;
+
+ private:
+ WeakPersistent<LocalFrame> m_frame;
+};
+
+} // namespace blink
+
+#endif // CopylessPasteServer_h

Powered by Google App Engine
This is Rietveld 408576698