Fix a type mismatch on Windows caused by r201738.
[chromium-blink-merge.git] / tools / json_schema_compiler / dart_test / functions.idl
blobe2283c6f75d67a316ff7e9ca9baa653bb867e0e2
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
3 // found in the LICENSE file.
5 namespace functions {
6 callback SimpleCallback = void ();
8 callback PrimitiveCallback = void (int i);
10 callback DictCallback = void ([instanceOf=DictType] object dict);
12 dictionary DictType {
13 // A field.
14 int a;
16 // A parameter.
17 static void voidFunc();
20 interface Functions {
21 // Simple function.
22 static void voidFunc();
24 // Function taking a non-optional argument.
25 static void argFunc(DOMString s);
27 // Function taking an optional argument.
28 static void optionalArgFunc(optional DOMString s);
30 // Function taking a non-optional dictionary argument.
31 static void dictArgFunc(DictType d);
33 // Function taking an optional dictionary argument.
34 static void optionalDictArgFunc(optional DictType d);
36 // Function taking an entry argument.
37 static void entryArgFunc([intanceOf=FileEntry] object entry);
39 // Function taking a simple callback.
40 static void callbackFunc(SimpleCallback c);
42 // Function taking an optional simple callback.
43 static void optionalCallbackFunc(optional SimpleCallback c);
45 // Function taking a primitive callback.
46 static void primitiveCallbackFunc(PrimitiveCallback c);
48 // Function taking a dictionary callback.
49 static void dictCallbackFunc(DictCallback c);
51 // Function returning a dictionary.
52 static DictType dictRetFunc();