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

Side by Side Diff: ppapi/generators/test_cgen/interface.idl

Issue 11235016: Change the way we generate versions (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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/generators/idl_release.py ('k') | ppapi/generators/test_namespace/bar.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2011 The Chromium Authors. All rights reserved. 2 * Copyright (c) 2011 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 /** 7 /**
8 * This file will test that the IDL snippet matches the comment. 8 * This file will test that the IDL snippet matches the comment.
9 */ 9 */
10 10
11 label Chrome {
12 M14 = 1.0,
13 M15 = 2.0
14 };
11 /* struct ist { void* X; }; */ 15 /* struct ist { void* X; }; */
12 struct ist { 16 struct ist {
13 mem_t X; 17 mem_t X;
14 }; 18 };
15 19
16 /* 20 /*
17 * struct iface1 { 21 * struct iface1 {
18 * int8_t (*mem1)(int16_t x, int32_t y); 22 * int8_t (*mem1)(int16_t x, int32_t y);
19 * int32_t (*mem2)(const struct ist* a); 23 * int32_t (*mem2)(const struct ist* a);
20 * int32_t (*mem3)(struct ist* b); 24 * int32_t (*mem3)(struct ist* b);
21 * int32_t (*mem4)(const void** ptr); 25 * int32_t (*mem4)(const void** ptr);
22 * int32_t (*mem5)(void** ptr); 26 * int32_t (*mem5)(void** ptr);
23 * int32_t (*mem6)(void** ptr); 27 * int32_t (*mem6)(void** ptr);
24 * }; 28 * };
25 */ 29 */
26 interface iface1 { 30 interface ifaceFoo {
27 int8_t mem1([in] int16_t x, [in] int32_t y); 31 int8_t mem1([in] int16_t x, [in] int32_t y);
28 int32_t mem2([in] ist a); 32 int32_t mem2([in] ist a);
29 int32_t mem3([out] ist b); 33 int32_t mem3([out] ist b);
30 int32_t mem4([in] blob_t ptr); 34 int32_t mem4([in] blob_t ptr);
31 int32_t mem5([out] blob_t ptr); 35 int32_t mem5([out] blob_t ptr);
32 int32_t mem6([inout] blob_t ptr); 36 [version=2.0] int32_t mem6([inout] blob_t ptr);
33 }; 37 };
34 38
39 interface ifaceBar {
40 int8_t testIface([in] ifaceFoo foo, [in] int32_t y);
41 ifaceFoo createIface([in] str_t name);
42 };
43
44 struct struct2 {
45 ifaceBar bar;
46 };
47
OLDNEW
« no previous file with comments | « ppapi/generators/idl_release.py ('k') | ppapi/generators/test_namespace/bar.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698