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

Side by Side Diff: ppapi/api/dev/ppb_hello_dev.idl

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 | « chrome/test/ui/ppapi_uitest.cc ('k') | ppapi/c/dev/ppb_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 /**
7 * This file define the sample Hello API.
8 */
9
10 label Chrome {
11 M16 = 0.1
12 };
13
14 /**
15 * The <code>PPB_Hello_Dev</code> struct.
16 */
17 interface PPB_Hello_Dev {
18 /**
19 * Create() creates a hello object.
20 *
21 * @param[in] instance A <code>PP_Hello_Dev</code> identifying the instance.
22 *
23 * @return A <code>PP_Resource</code> corresponding to a hello if successful.
24 */
25 PP_Resource Create([in] PP_Instance instance);
26
27 /**
28 * IsHello() determines if the provided resource is a hello.
29 *
30 * @param[in] resource A <code>PP_Resource</code> corresponding to a hello.
31 *
32 * @return <code>PP_TRUE</code> if the resource is a
33 * <code>PPB_Hello_Dev</code>, <code>PP_FALSE</code> if the resource is
34 * invalid or some type other than <code>PP_Hello_Dev</code>.
35 */
36 PP_Bool IsHello([in] PP_Resource resource);
37
38 /**
39 * SayHello() says hello.
40 *
41 * @param[in] instance A <code>PP_Resource</code> corresponding to a hello.
42 *
43 * @return Returns <code>PP_OK</code> on success or
44 * <code>PP_Error_BadResource</code> if the hello is invalid.
45 */
46 int32_t SayHello([in] PP_Resource hello);
47
48 /**
49 * WhoAreYou() returns who execute this function.
50 *
51 * @param[in] instance A <code>PP_Resource</code> corresponding to a hello.
52 *
53 * @param[out] name A buffer to store the name who execute this function.
54 *
55 * @param[in] size The size of name buffer.
56 *
57 * @param[in] callback A <code>PP_CompletionCallback</code> which is invoked
58 * when asynchronous request is completed.
59 */
60 void WhoAreYou([in] PP_Resource hello, [out] char name, [in] uint32_t size,
61 [in] PP_CompletionCallback callback);
62 };
63
OLDNEW
« no previous file with comments | « chrome/test/ui/ppapi_uitest.cc ('k') | ppapi/c/dev/ppb_hello_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698