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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/c/dev/ppb_alarms_dev.h ('k') | ppapi/c/pp_macros.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /* Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file.
4 */
5
6 /* From dev/ppb_foobar_dev.idl modified Mon Dec 09 11:49:38 2013. */
7
8 #ifndef PPAPI_C_DEV_PPB_FOOBAR_DEV_H_
9 #define PPAPI_C_DEV_PPB_FOOBAR_DEV_H_
10
11 #include "ppapi/c/dev/pp_array_structs_dev.h"
12 #include "ppapi/c/dev/pp_optional_structs_dev.h"
13 #include "ppapi/c/pp_array_output.h"
14 #include "ppapi/c/pp_bool.h"
15 #include "ppapi/c/pp_completion_callback.h"
16 #include "ppapi/c/pp_instance.h"
17 #include "ppapi/c/pp_macros.h"
18 #include "ppapi/c/pp_stdint.h"
19 #include "ppapi/c/pp_var.h"
20
21 #define PPB_FOOBAR_INTERFACE_0_1 "PPB_Foobar;0.1"
22 #define PPB_FOOBAR_INTERFACE PPB_FOOBAR_INTERFACE_0_1
23
24 /**
25 * @file
26 * This file defines testing data types and interfaces.
27 */
28
29
30 /**
31 * @addtogroup Structs
32 * @{
33 */
34 struct PP_Bar {
35
36 };
37
38 struct PP_Bar_Array {
39 uint32_t size;
40 struct PP_Bar *elements;
41 };
42
43 struct PP_Optional_Bar {
44 struct PP_Bar value;
45 PP_Bool is_set;
46 };
47
48 struct PP_Optional_Bar_Array {
49 struct PP_Bar_Array value;
50 PP_Bool is_set;
51 };
52
53 struct PP_Foo {
54 double a;
55 struct PP_Optional_Double b;
56 struct PP_Double_Array c;
57 struct PP_Optional_Double_Array d;
58 struct PP_Var e;
59 /** optional
60 * TODO(yzshen): we cannot tell from the type.
61 */
62 struct PP_Var f;
63 struct PP_String_Array g;
64 struct PP_Optional_String_Array h;
65 struct PP_Bar i;
66 struct PP_Optional_Bar j;
67 struct PP_Bar_Array k;
68 struct PP_Optional_Bar_Array l;
69 };
70
71 struct PP_Foo_Array {
72 uint32_t size;
73 struct PP_Foo *elements;
74 };
75 /**
76 * @}
77 */
78
79 /**
80 * @addtogroup Interfaces
81 * @{
82 */
83 struct PPB_Foobar_0_1 {
84 int32_t (*Baz)(PP_Instance instance,
85 struct PP_Var str,
86 struct PP_Var optional_str,
87 const struct PP_Optional_Double* dbl,
88 struct PP_Foo* foo,
89 struct PP_CompletionCallback callback);
90 int32_t (*Qux)(PP_Instance instance,
91 struct PP_Double_Array* foo_array,
92 struct PP_ArrayOutput array_allocator,
93 struct PP_CompletionCallback callback);
94 int32_t (*Blah)(PP_Instance instance,
95 struct PP_Foo_Array* foo_array,
96 struct PP_ArrayOutput array_allocator,
97 struct PP_CompletionCallback callback);
98 };
99
100 typedef struct PPB_Foobar_0_1 PPB_Foobar;
101 /**
102 * @}
103 */
104
105 #endif /* PPAPI_C_DEV_PPB_FOOBAR_DEV_H_ */
106
OLDNEW
« 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