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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
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 /**
7 * This file defines testing data types and interfaces.
8 */
9
10 label Chrome {
11 M33 = 0.1
12 };
13
14 struct PP_Bar {
15 };
16
17 struct PP_Bar_Array {
18 uint32_t size;
19 [size_is(count)] PP_Bar[] elements;
20 };
21
22 struct PP_Optional_Bar {
23 PP_Bar value;
24 PP_Bool is_set;
25 };
26
27 struct PP_Optional_Bar_Array {
28 PP_Bar_Array value;
29 PP_Bool is_set;
30 };
31
32 struct PP_Foo {
33 double_t a;
34 PP_Optional_Double b;
35 PP_Double_Array c;
36 PP_Optional_Double_Array d;
37
38 PP_Var e;
39 /** optional
40 * TODO(yzshen): we cannot tell from the type.
41 */
42 PP_Var f;
43 PP_String_Array g;
44 PP_Optional_String_Array h;
45
46 PP_Bar i;
47 PP_Optional_Bar j;
48 PP_Bar_Array k;
49 PP_Optional_Bar_Array l;
50 };
51
52 struct PP_Foo_Array {
53 uint32_t size;
54 [size_is(count)] PP_Foo[] elements;
55 };
56
57 interface PPB_Foobar {
58 int32_t Baz([in] PP_Instance instance,
59 [in] PP_Var str,
60 [in] PP_Var optional_str,
61 [in] PP_Optional_Double dbl,
62 [out] PP_Foo foo,
63 [in] PP_CompletionCallback callback);
64
65 int32_t Qux([in] PP_Instance instance,
66 [out] PP_Double_Array foo_array,
67 [in] PP_ArrayOutput array_allocator,
68 [in] PP_CompletionCallback callback);
69
70 int32_t Blah([in] PP_Instance instance,
71 [out] PP_Foo_Array foo_array,
72 [in] PP_ArrayOutput array_allocator,
73 [in] PP_CompletionCallback callback);
74 };
OLDNEW
« 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