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); |
+}; |
+ |