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

Unified Diff: ppapi/api/ppb_mojo.idl

Issue 598183002: Pepper: PPB_Mojo prototype. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « content/renderer/pepper/plugin_module.cc ('k') | ppapi/c/ppb_mojo.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/api/ppb_mojo.idl
diff --git a/ppapi/api/ppb_mojo.idl b/ppapi/api/ppb_mojo.idl
new file mode 100644
index 0000000000000000000000000000000000000000..6ab0907d0ef20ae2ca8fde4dd21b6a45a624ec15
--- /dev/null
+++ b/ppapi/api/ppb_mojo.idl
@@ -0,0 +1,26 @@
+/* Copyright (c) 2014 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.
+ */
+
+[generate_thunk]
+
+label Chrome {
+ M38 = 0.1
+};
+
+/* An interface to expose Mojo services to pepper plugins. */
+[singleton]
+interface PPB_Mojo {
+ /*
+ * Connects to the given service_name, and provides a mojo_handle on success.
+ *
+ * TODO(teravest): It'd be nice to use something more typesafe than int32_t
+ * here.
+ */
+ int32_t GetHandle([in] PP_Instance instance,
+ [out] uint32_t mojo_handle,
+ [in] PP_CompletionCallback callback);
+
+};
+
« no previous file with comments | « content/renderer/pepper/plugin_module.cc ('k') | ppapi/c/ppb_mojo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698