Index: ppapi/api/dev/ppb_foobar_dev.idl |
diff --git a/ppapi/api/dev/ppb_foobar_dev.idl b/ppapi/api/dev/ppb_foobar_dev.idl |
new file mode 100644 |
index 0000000000000000000000000000000000000000..48c8f665ddb4a5ada3ba7cd937542a5e014f59d5 |
--- /dev/null |
+++ b/ppapi/api/dev/ppb_foobar_dev.idl |
@@ -0,0 +1,74 @@ |
+/* Copyright (c) 2013 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 defines testing data types and interfaces. |
+ */ |
+ |
+label Chrome { |
+ M33 = 0.1 |
+}; |
+ |
+struct PP_Bar { |
+}; |
+ |
+struct PP_Bar_Array { |
+ uint32_t size; |
+ [size_is(count)] PP_Bar[] elements; |
+}; |
+ |
+struct PP_Optional_Bar { |
+ PP_Bar value; |
+ PP_Bool is_set; |
+}; |
+ |
+struct PP_Optional_Bar_Array { |
+ PP_Bar_Array value; |
+ PP_Bool is_set; |
+}; |
+ |
+struct PP_Foo { |
+ double_t a; |
+ PP_Optional_Double b; |
+ PP_Double_Array c; |
+ PP_Optional_Double_Array d; |
+ |
+ PP_Var e; |
+ /** optional |
+ * TODO(yzshen): we cannot tell from the type. |
+ */ |
+ PP_Var f; |
+ PP_String_Array g; |
+ PP_Optional_String_Array h; |
+ |
+ PP_Bar i; |
+ PP_Optional_Bar j; |
+ PP_Bar_Array k; |
+ PP_Optional_Bar_Array l; |
+}; |
+ |
+struct PP_Foo_Array { |
+ uint32_t size; |
+ [size_is(count)] PP_Foo[] elements; |
+}; |
+ |
+interface PPB_Foobar { |
+ int32_t Baz([in] PP_Instance instance, |
+ [in] PP_Var str, |
+ [in] PP_Var optional_str, |
+ [in] PP_Optional_Double dbl, |
+ [out] PP_Foo foo, |
+ [in] PP_CompletionCallback callback); |
+ |
+ int32_t Qux([in] PP_Instance instance, |
+ [out] PP_Double_Array foo_array, |
+ [in] PP_ArrayOutput array_allocator, |
+ [in] PP_CompletionCallback callback); |
+ |
+ int32_t Blah([in] PP_Instance instance, |
+ [out] PP_Foo_Array foo_array, |
+ [in] PP_ArrayOutput array_allocator, |
+ [in] PP_CompletionCallback callback); |
+}; |