OLD | NEW |
| (Empty) |
1 // Copyright (c) 2012, 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 // WARNING: Do not edit - generated code. | |
6 | |
7 interface Window extends EventTarget { | |
8 | |
9 final DOMApplicationCache applicationCache; | |
10 | |
11 final Navigator clientInformation; | |
12 | |
13 final bool closed; | |
14 | |
15 final Console console; | |
16 | |
17 final Crypto crypto; | |
18 | |
19 String defaultStatus; | |
20 | |
21 String defaultstatus; | |
22 | |
23 final num devicePixelRatio; | |
24 | |
25 final Document document; | |
26 | |
27 final Event event; | |
28 | |
29 final Element frameElement; | |
30 | |
31 final DOMWindow frames; | |
32 | |
33 final History history; | |
34 | |
35 final int innerHeight; | |
36 | |
37 final int innerWidth; | |
38 | |
39 final int length; | |
40 | |
41 final Storage localStorage; | |
42 | |
43 Location location; | |
44 | |
45 final BarInfo locationbar; | |
46 | |
47 final BarInfo menubar; | |
48 | |
49 String name; | |
50 | |
51 final Navigator navigator; | |
52 | |
53 final bool offscreenBuffering; | |
54 | |
55 final DOMWindow opener; | |
56 | |
57 final int outerHeight; | |
58 | |
59 final int outerWidth; | |
60 | |
61 final int pageXOffset; | |
62 | |
63 final int pageYOffset; | |
64 | |
65 final DOMWindow parent; | |
66 | |
67 final Performance performance; | |
68 | |
69 final BarInfo personalbar; | |
70 | |
71 final Screen screen; | |
72 | |
73 final int screenLeft; | |
74 | |
75 final int screenTop; | |
76 | |
77 final int screenX; | |
78 | |
79 final int screenY; | |
80 | |
81 final int scrollX; | |
82 | |
83 final int scrollY; | |
84 | |
85 final BarInfo scrollbars; | |
86 | |
87 final DOMWindow self; | |
88 | |
89 final Storage sessionStorage; | |
90 | |
91 String status; | |
92 | |
93 final BarInfo statusbar; | |
94 | |
95 final StyleMedia styleMedia; | |
96 | |
97 final BarInfo toolbar; | |
98 | |
99 final DOMWindow top; | |
100 | |
101 final IDBFactory webkitIndexedDB; | |
102 | |
103 final NotificationCenter webkitNotifications; | |
104 | |
105 final StorageInfo webkitStorageInfo; | |
106 | |
107 final DOMWindow window; | |
108 | |
109 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
110 | |
111 void alert(String message); | |
112 | |
113 String atob(String string); | |
114 | |
115 void blur(); | |
116 | |
117 String btoa(String string); | |
118 | |
119 void captureEvents(); | |
120 | |
121 void clearInterval(int handle); | |
122 | |
123 void clearTimeout(int handle); | |
124 | |
125 void close(); | |
126 | |
127 bool confirm(String message); | |
128 | |
129 bool dispatchEvent(Event evt); | |
130 | |
131 bool find(String string, bool caseSensitive, bool backwards, bool wrap, bool w
holeWord, bool searchInFrames, bool showDialog); | |
132 | |
133 void focus(); | |
134 | |
135 CSSStyleDeclaration getComputedStyle(Element element, String pseudoElement); | |
136 | |
137 CSSRuleList getMatchedCSSRules(Element element, String pseudoElement); | |
138 | |
139 DOMSelection getSelection(); | |
140 | |
141 MediaQueryList matchMedia(String query); | |
142 | |
143 void moveBy(num x, num y); | |
144 | |
145 void moveTo(num x, num y); | |
146 | |
147 DOMWindow open(String url, String name, [String options]); | |
148 | |
149 Database openDatabase(String name, String version, String displayName, int est
imatedSize, [DatabaseCallback creationCallback]); | |
150 | |
151 void postMessage(Dynamic message, String targetOrigin, [List messagePorts]); | |
152 | |
153 void print(); | |
154 | |
155 String prompt(String message, String defaultValue); | |
156 | |
157 void releaseEvents(); | |
158 | |
159 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
160 | |
161 void resizeBy(num x, num y); | |
162 | |
163 void resizeTo(num width, num height); | |
164 | |
165 void scroll(int x, int y); | |
166 | |
167 void scrollBy(int x, int y); | |
168 | |
169 void scrollTo(int x, int y); | |
170 | |
171 int setInterval(TimeoutHandler handler, int timeout); | |
172 | |
173 int setTimeout(TimeoutHandler handler, int timeout); | |
174 | |
175 Object showModalDialog(String url, [Object dialogArgs, String featureArgs]); | |
176 | |
177 void stop(); | |
178 | |
179 void webkitCancelAnimationFrame(int id); | |
180 | |
181 void webkitCancelRequestAnimationFrame(int id); | |
182 | |
183 WebKitPoint webkitConvertPointFromNodeToPage(Node node, WebKitPoint p); | |
184 | |
185 WebKitPoint webkitConvertPointFromPageToNode(Node node, WebKitPoint p); | |
186 | |
187 void webkitPostMessage(Dynamic message, String targetOrigin, [List transferLis
t]); | |
188 | |
189 int webkitRequestAnimationFrame(RequestAnimationFrameCallback callback, Elemen
t element); | |
190 | |
191 void webkitRequestFileSystem(int type, int size, FileSystemCallback successCal
lback, [ErrorCallback errorCallback]); | |
192 | |
193 void webkitResolveLocalFileSystemURL(String url, [EntryCallback successCallbac
k, ErrorCallback errorCallback]); | |
194 } | |
195 | |
196 interface DOMWindow extends Window { | |
197 | |
198 static final int PERSISTENT = 1; | |
199 | |
200 static final int TEMPORARY = 0; | |
201 } | |
OLD | NEW |