Make certificate viewer a tab-modal dialog.
[chromium-blink-merge.git] / ppapi / generators / test_cgen / structs.idl
blobb91949c61aa556f818e173e8651e3167d55ed10d
1 /*
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
4 * found in the LICENSE file.
5 */
7 /**
8 * This file will test that the IDL snippet matches the comment.
9 */
11 label Chrome {
12 M14=1.0
15 /* typedef uint8_t s_array[3]; */
16 typedef uint8_t[3] s_array;
18 /* typedef enum { esv1 = 1, esv2 = 2 } senum; */
19 enum senum {
20 esv1=1,
21 esv2=2
24 /* struct st1 { int32_t i; senum j; }; */
25 struct st1 {
26 int32_t i;
27 senum j;
30 /* struct st2 { s_array pixels[640][480]; }; */
31 struct st2 {
32 s_array[640][480] pixels;
35 /* typedef float (*func_t)(const s_array data); */
36 typedef float_t func_t([in] s_array data);
38 /* typedef func_t (*findfunc_t)(const char* x); */
39 typedef func_t findfunc_t([in] str_t x);
42 * struct sfoo {
43 * s_array screen[480][640];
44 * findfunc_t myfunc;
45 * };
47 struct sfoo {
48 s_array[480][640] screen;
49 findfunc_t myfunc;