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

Unified Diff: ppapi/c/dev/ppb_foobar_dev.h

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/c/dev/ppb_alarms_dev.h ('k') | ppapi/c/pp_macros.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/c/dev/ppb_foobar_dev.h
diff --git a/ppapi/c/dev/ppb_foobar_dev.h b/ppapi/c/dev/ppb_foobar_dev.h
new file mode 100644
index 0000000000000000000000000000000000000000..197e89a5d519be7b28cb6407d6bd505688d63104
--- /dev/null
+++ b/ppapi/c/dev/ppb_foobar_dev.h
@@ -0,0 +1,106 @@
+/* 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.
+ */
+
+/* From dev/ppb_foobar_dev.idl modified Mon Dec 09 11:49:38 2013. */
+
+#ifndef PPAPI_C_DEV_PPB_FOOBAR_DEV_H_
+#define PPAPI_C_DEV_PPB_FOOBAR_DEV_H_
+
+#include "ppapi/c/dev/pp_array_structs_dev.h"
+#include "ppapi/c/dev/pp_optional_structs_dev.h"
+#include "ppapi/c/pp_array_output.h"
+#include "ppapi/c/pp_bool.h"
+#include "ppapi/c/pp_completion_callback.h"
+#include "ppapi/c/pp_instance.h"
+#include "ppapi/c/pp_macros.h"
+#include "ppapi/c/pp_stdint.h"
+#include "ppapi/c/pp_var.h"
+
+#define PPB_FOOBAR_INTERFACE_0_1 "PPB_Foobar;0.1"
+#define PPB_FOOBAR_INTERFACE PPB_FOOBAR_INTERFACE_0_1
+
+/**
+ * @file
+ * This file defines testing data types and interfaces.
+ */
+
+
+/**
+ * @addtogroup Structs
+ * @{
+ */
+struct PP_Bar {
+
+};
+
+struct PP_Bar_Array {
+ uint32_t size;
+ struct PP_Bar *elements;
+};
+
+struct PP_Optional_Bar {
+ struct PP_Bar value;
+ PP_Bool is_set;
+};
+
+struct PP_Optional_Bar_Array {
+ struct PP_Bar_Array value;
+ PP_Bool is_set;
+};
+
+struct PP_Foo {
+ double a;
+ struct PP_Optional_Double b;
+ struct PP_Double_Array c;
+ struct PP_Optional_Double_Array d;
+ struct PP_Var e;
+ /** optional
+ * TODO(yzshen): we cannot tell from the type.
+ */
+ struct PP_Var f;
+ struct PP_String_Array g;
+ struct PP_Optional_String_Array h;
+ struct PP_Bar i;
+ struct PP_Optional_Bar j;
+ struct PP_Bar_Array k;
+ struct PP_Optional_Bar_Array l;
+};
+
+struct PP_Foo_Array {
+ uint32_t size;
+ struct PP_Foo *elements;
+};
+/**
+ * @}
+ */
+
+/**
+ * @addtogroup Interfaces
+ * @{
+ */
+struct PPB_Foobar_0_1 {
+ int32_t (*Baz)(PP_Instance instance,
+ struct PP_Var str,
+ struct PP_Var optional_str,
+ const struct PP_Optional_Double* dbl,
+ struct PP_Foo* foo,
+ struct PP_CompletionCallback callback);
+ int32_t (*Qux)(PP_Instance instance,
+ struct PP_Double_Array* foo_array,
+ struct PP_ArrayOutput array_allocator,
+ struct PP_CompletionCallback callback);
+ int32_t (*Blah)(PP_Instance instance,
+ struct PP_Foo_Array* foo_array,
+ struct PP_ArrayOutput array_allocator,
+ struct PP_CompletionCallback callback);
+};
+
+typedef struct PPB_Foobar_0_1 PPB_Foobar;
+/**
+ * @}
+ */
+
+#endif /* PPAPI_C_DEV_PPB_FOOBAR_DEV_H_ */
+
« no previous file with comments | « ppapi/c/dev/ppb_alarms_dev.h ('k') | ppapi/c/pp_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698