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

Side by Side Diff: ppapi/c/dev/ppb_hello_dev.h

Issue 8414054: Hello Pepper API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/api/dev/ppb_hello_dev.idl ('k') | ppapi/cpp/dev/hello_dev.h » ('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) 2011 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 dev/ppb_hello_dev.idl modified Tue Nov 8 22:02:10 2011. */
7
8 #ifndef PPAPI_C_DEV_PPB_HELLO_DEV_H_
9 #define PPAPI_C_DEV_PPB_HELLO_DEV_H_
10
11 #include "ppapi/c/pp_bool.h"
12 #include "ppapi/c/pp_completion_callback.h"
13 #include "ppapi/c/pp_instance.h"
14 #include "ppapi/c/pp_macros.h"
15 #include "ppapi/c/pp_resource.h"
16 #include "ppapi/c/pp_stdint.h"
17
18 #define PPB_HELLO_DEV_INTERFACE_0_1 "PPB_Hello(Dev);0.1"
19 #define PPB_HELLO_DEV_INTERFACE PPB_HELLO_DEV_INTERFACE_0_1
20
21 /**
22 * @file
23 * This file define the sample Hello API.
24 */
25
26
27 /**
28 * @addtogroup Interfaces
29 * @{
30 */
31 /**
32 * The <code>PPB_Hello_Dev</code> struct.
33 */
34 struct PPB_Hello_Dev {
35 /**
36 * Create() creates a hello object.
37 *
38 * @param[in] instance A <code>PP_Hello_Dev</code> identifying the instance.
39 *
40 * @return A <code>PP_Resource</code> corresponding to a hello if successful.
41 */
42 PP_Resource (*Create)(PP_Instance instance);
43 /**
44 * IsHello() determines if the provided resource is a hello.
45 *
46 * @param[in] resource A <code>PP_Resource</code> corresponding to a hello.
47 *
48 * @return <code>PP_TRUE</code> if the resource is a
49 * <code>PPB_Hello_Dev</code>, <code>PP_FALSE</code> if the resource is
50 * invalid or some type other than <code>PP_Hello_Dev</code>.
51 */
52 PP_Bool (*IsHello)(PP_Resource resource);
53 /**
54 * SayHello() says hello.
55 *
56 * @param[in] instance A <code>PP_Resource</code> corresponding to a hello.
57 *
58 * @return Returns <code>PP_OK</code> on success or
59 * <code>PP_Error_BadResource</code> if the hello is invalid.
60 */
61 int32_t (*SayHello)(PP_Resource hello);
62 /**
63 * WhoAreYou() returns who execute this function.
64 *
65 * @param[in] instance A <code>PP_Resource</code> corresponding to a hello.
66 *
67 * @param[out] name A buffer to store the name who execute this function.
68 *
69 * @param[in] size The size of name buffer.
70 *
71 * @param[in] callback A <code>PP_CompletionCallback</code> which is invoked
72 * when asynchronous request is completed.
73 */
74 void (*WhoAreYou)(PP_Resource hello,
75 char* name,
76 uint32_t size,
77 struct PP_CompletionCallback callback);
78 };
79 /**
80 * @}
81 */
82
83 #endif /* PPAPI_C_DEV_PPB_HELLO_DEV_H_ */
84
OLDNEW
« no previous file with comments | « ppapi/api/dev/ppb_hello_dev.idl ('k') | ppapi/cpp/dev/hello_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698