1 /* Copyright (c) 2011 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 /* File Comment. */ 7 8 label Chrome { 9 M13 = 0.0, 10 M14 = 1.0, 11 M15 = 2.0 12 }; 13 14 describe { 15 int32_t; 16 }; 17 18 /*REL: M13 M15 */ 19 [version=0.0] 20 interface iFoo { 21 /** 22 * Comment for function x 23 */ 24 [version=0.0] int32_t Bar([in] int32_t x); 25 /** 26 * Comment for function x,y,z 27 */ 28 [version=2.0] int32_t Bar([in] int32_t x, [in] int32_t y, [in] int32_t z); 29 }; 30 31 32 /*REL: M13 M15 */ 33 [version=0.0] 34 struct iBar { 35 /** 36 * Comment for function x 37 */ 38 [version=0.0] iFoo x; 39 }; 40 41 /*REL: M13 M14 M15 */ 42 [version=0.0] 43 struct iX { 44 /** 45 * Comment for function x 46 */ 47 [version=0.0] iFoo x; 48 /** 49 * Comment for member y 50 */ 51 [version=1.0] int32_t y; 52 }; 53 54 55 /** 56 * Typedef to generate M13-M14, M15 57 */ 58 typedef int32_t callback_t([in] int32_t x, [in, version=2.0] int32_t y); 59 60 /*REL: M13 M14 M15 */ 61 interface iFooX { 62 /** 63 * Comment for function Bar 64 */ 65 int32_t Bar([in, version=1.0] callback_t cb); 66 };