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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/api/dev/ppb_hello_dev.idl
diff --git a/ppapi/api/dev/ppb_hello_dev.idl b/ppapi/api/dev/ppb_hello_dev.idl
new file mode 100644
index 0000000000000000000000000000000000000000..897fa9fb61530834ecaec2be165697c552ac5677
--- /dev/null
+++ b/ppapi/api/dev/ppb_hello_dev.idl
@@ -0,0 +1,63 @@
+/* Copyright (c) 2011 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.
+ */
+
+/**
+ * This file define the sample Hello API.
+ */
+
+label Chrome {
+ M16 = 0.1
+};
+
+/**
+ * The <code>PPB_Hello_Dev</code> struct.
+ */
+interface PPB_Hello_Dev {
+ /**
+ * Create() creates a hello object.
+ *
+ * @param[in] instance A <code>PP_Hello_Dev</code> identifying the instance.
+ *
+ * @return A <code>PP_Resource</code> corresponding to a hello if successful.
+ */
+ PP_Resource Create([in] PP_Instance instance);
+
+ /**
+ * IsHello() determines if the provided resource is a hello.
+ *
+ * @param[in] resource A <code>PP_Resource</code> corresponding to a hello.
+ *
+ * @return <code>PP_TRUE</code> if the resource is a
+ * <code>PPB_Hello_Dev</code>, <code>PP_FALSE</code> if the resource is
+ * invalid or some type other than <code>PP_Hello_Dev</code>.
+ */
+ PP_Bool IsHello([in] PP_Resource resource);
+
+ /**
+ * SayHello() says hello.
+ *
+ * @param[in] instance A <code>PP_Resource</code> corresponding to a hello.
+ *
+ * @return Returns <code>PP_OK</code> on success or
+ * <code>PP_Error_BadResource</code> if the hello is invalid.
+ */
+ int32_t SayHello([in] PP_Resource hello);
+
+ /**
+ * WhoAreYou() returns who execute this function.
+ *
+ * @param[in] instance A <code>PP_Resource</code> corresponding to a hello.
+ *
+ * @param[out] name A buffer to store the name who execute this function.
+ *
+ * @param[in] size The size of name buffer.
+ *
+ * @param[in] callback A <code>PP_CompletionCallback</code> which is invoked
+ * when asynchronous request is completed.
+ */
+ void WhoAreYou([in] PP_Resource hello, [out] char name, [in] uint32_t size,
+ [in] PP_CompletionCallback callback);
+};
+
« 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