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

Unified Diff: ppapi/api/dev/ppb_foobar_dev.idl

Issue 60173003: Draft: apps APIs in Pepper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | « ppapi/api/dev/ppb_alarms_dev.idl ('k') | ppapi/c/dev/pp_array_structs_dev.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
+};
« no previous file with comments | « ppapi/api/dev/ppb_alarms_dev.idl ('k') | ppapi/c/dev/pp_array_structs_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698