OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
| 5 // A comment for the functions namespace. |
5 namespace functions { | 6 namespace functions { |
6 callback SimpleCallback = void (); | 7 callback SimpleCallback = void (); |
7 | 8 |
8 callback PrimitiveCallback = void (int i); | 9 callback PrimitiveCallback = void (int i); |
9 | 10 |
10 callback DictCallback = void ([instanceOf=DictType] object dict); | 11 callback DictCallback = void ([instanceOf=DictType] object dict); |
11 | 12 |
12 dictionary DictType { | 13 dictionary DictType { |
13 // A field. | 14 // A field. |
14 int a; | 15 int a; |
(...skipping 30 matching lines...) Expand all Loading... |
45 // Function taking a primitive callback. | 46 // Function taking a primitive callback. |
46 static void primitiveCallbackFunc(PrimitiveCallback c); | 47 static void primitiveCallbackFunc(PrimitiveCallback c); |
47 | 48 |
48 // Function taking a dictionary callback. | 49 // Function taking a dictionary callback. |
49 static void dictCallbackFunc(DictCallback c); | 50 static void dictCallbackFunc(DictCallback c); |
50 | 51 |
51 // Function returning a dictionary. | 52 // Function returning a dictionary. |
52 static DictType dictRetFunc(); | 53 static DictType dictRetFunc(); |
53 }; | 54 }; |
54 }; | 55 }; |
OLD | NEW |