summaryrefslogtreecommitdiffstats
path: root/tools/json_schema_compiler/dart_test/dictionaries.idl
blob: 1eb9e25e0a07fb5ca5d69e978b8f77a9802dd776 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// This comment is for the dictionaries namespace.
namespace dictionaries {
  // Documentation for ComplexType.
  dictionary InnerType {
    // Documentation for the String s.
    DOMString s;

    // Documentation for the boolean b.
    int b;

    // Documentation for the int i.
    int i;

    // Documentation for the long l.
    long l;

    // Documentation for the double d.
    double d;

    // Documentation for the file entry f.
    [instanceOf=FileEntry] object f;

    // Documentation for the optional String s.
    DOMString? os;

    // Documentation for the optional boolean ob.
    int ob;

    // Documentation for the optional int i.
    int? oi;

    // Documentation for the optional long l.
    long? ol;

    // Documentation for the optional double d.
    double? od;

    // Documentation for the optional file entry f.
    [instanceOf=FileEntry] object? of;
  };

  dictionary OuterType {
    // Documentation for the array of InnerTypes items.
    InnerType[] items;

    // Documentation for the optional array of Inner Types oitems.
    InnerType[]? oitems;
  };

  dictionary ComplexType {
    // Documentation for the int i.
    int i;

    // Documentation for the ComplexType c.
    ComplexType c;
  };
};