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

Side by Side Diff: ppapi/c/ppb_mojo.h

Issue 598183002: Pepper: PPB_Mojo prototype. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 unified diff | Download patch
« no previous file with comments | « ppapi/api/ppb_mojo.idl ('k') | ppapi/examples/mojo/README » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /* Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file.
4 */
5
6 /* From ppb_mojo.idl modified Wed Sep 24 14:54:16 2014. */
7
8 #ifndef PPAPI_C_PPB_MOJO_H_
9 #define PPAPI_C_PPB_MOJO_H_
10
11 #include "ppapi/c/pp_completion_callback.h"
12 #include "ppapi/c/pp_instance.h"
13 #include "ppapi/c/pp_macros.h"
14 #include "ppapi/c/pp_stdint.h"
15
16 #define PPB_MOJO_INTERFACE_0_1 "PPB_Mojo;0.1"
17 #define PPB_MOJO_INTERFACE PPB_MOJO_INTERFACE_0_1
18
19 /**
20 * @file
21 */
22
23
24 /**
25 * @addtogroup Interfaces
26 * @{
27 */
28 /* An interface to expose Mojo services to pepper plugins. */
29 struct PPB_Mojo_0_1 {
30 /*
31 * Connects to the given service_name, and provides a mojo_handle on success.
32 *
33 * TODO(teravest): It'd be nice to use something more typesafe than int32_t
34 * here.
35 */
36 int32_t (*GetHandle)(PP_Instance instance,
37 uint32_t* mojo_handle,
38 struct PP_CompletionCallback callback);
39 };
40
41 typedef struct PPB_Mojo_0_1 PPB_Mojo;
42 /**
43 * @}
44 */
45
46 #endif /* PPAPI_C_PPB_MOJO_H_ */
47
OLDNEW
« no previous file with comments | « ppapi/api/ppb_mojo.idl ('k') | ppapi/examples/mojo/README » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698