- add sources.
[platform/framework/web/crosswalk.git] / src / tools / json_schema_compiler / dart_test / operatable_type.dart
1 // Copyright (c) 2013, the Dart project authors.  Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 // Generated from namespace: operatable_type
6
7 part of chrome;
8
9 /**
10  * Types
11  */
12
13 class Operatable_typeDictType extends ChromeObject {
14   /*
15    * Public constructor
16    */
17   Operatable_typeDictType({int x, int y}) {
18     if (x != null)
19       this.x = x;
20     if (y != null)
21       this.y = y;
22   }
23
24   /*
25    * Private constructor
26    */
27   Operatable_typeDictType._proxy(_jsObject) : super._proxy(_jsObject);
28
29   /*
30    * Public accessors
31    */
32   int get x => JS('int', '#.x', this._jsObject);
33
34   void set x(int x) {
35     JS('void', '#.x = #', this._jsObject, x);
36   }
37
38   int get y => JS('int', '#.y', this._jsObject);
39
40   void set y(int y) {
41     JS('void', '#.y = #', this._jsObject, y);
42   }
43
44 }
45
46 class Operatable_typeOperatableType extends ChromeObject {
47   /*
48    * Private constructor
49    */
50   Operatable_typeOperatableType._proxy(_jsObject) : super._proxy(_jsObject);
51
52   /*
53    * Public accessors
54    */
55   /// Documentation for the String t.
56   String get t => JS('String', '#.t', this._jsObject);
57
58   void set t(String t) {
59     JS('void', '#.t = #', this._jsObject, t);
60   }
61
62
63   /*
64    * Methods
65    */
66   /// Function returning nothing, taking nothing.
67   void voidFunc() => JS('void', '#.voidFunc()', this._jsObject);
68
69   /// Function returning primitive type.
70   int intRetFunc() => new int._proxy(JS('', '#.intRetFunc()', this._jsObject));
71
72   /// Function returning dictionary.
73   Operatable_typeDictType dictRetFunc() => new Operatable_typeDictType._proxy(JS('', '#.dictRetFunc()', this._jsObject));
74
75   /// Function taking primitive type.
76   void intArgFunc(int i) => JS('void', '#.intArgFunc(#)', this._jsObject, i);
77
78   /// Function taking dict type.
79   void dictArgFunc(Operatable_typeDictType d) => JS('void', '#.dictArgFunc(#)', this._jsObject, convertArgument(d));
80
81 }
82
83 /**
84  * Functions
85  */
86
87 class API_operatable_type {
88   /*
89    * API connection
90    */
91   Object _jsObject;
92   API_operatable_type(this._jsObject) {
93   }
94 }