OLD | NEW |
(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 }; |
OLD | NEW |