OLD | NEW |
1 library html; | 1 library html; |
2 | 2 |
3 import 'dart:isolate'; | 3 import 'dart:isolate'; |
4 import 'dart:json'; | 4 import 'dart:json'; |
5 import 'dart:svg' as svg; | 5 import 'dart:svg' as svg; |
6 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
7 // for details. All rights reserved. Use of this source code is governed by a | 7 // for details. All rights reserved. Use of this source code is governed by a |
8 // BSD-style license that can be found in the LICENSE file. | 8 // BSD-style license that can be found in the LICENSE file. |
9 | 9 |
10 // DO NOT EDIT | 10 // DO NOT EDIT |
(...skipping 12157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12168 | 12168 |
12169 /** @domName Window.addEventListener */ | 12169 /** @domName Window.addEventListener */ |
12170 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; | 12170 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; |
12171 | 12171 |
12172 /** @domName Window.alert */ | 12172 /** @domName Window.alert */ |
12173 void alert(String message) native; | 12173 void alert(String message) native; |
12174 | 12174 |
12175 /** @domName Window.atob */ | 12175 /** @domName Window.atob */ |
12176 String atob(String string) native; | 12176 String atob(String string) native; |
12177 | 12177 |
| 12178 /** @domName Window.blur */ |
| 12179 void blur() native; |
| 12180 |
12178 /** @domName Window.btoa */ | 12181 /** @domName Window.btoa */ |
12179 String btoa(String string) native; | 12182 String btoa(String string) native; |
12180 | 12183 |
12181 /** @domName Window.captureEvents */ | 12184 /** @domName Window.captureEvents */ |
12182 void captureEvents() native; | 12185 void captureEvents() native; |
12183 | 12186 |
12184 /** @domName Window.clearInterval */ | 12187 /** @domName Window.clearInterval */ |
12185 void clearInterval(int handle) native; | 12188 void clearInterval(int handle) native; |
12186 | 12189 |
12187 /** @domName Window.clearTimeout */ | 12190 /** @domName Window.clearTimeout */ |
12188 void clearTimeout(int handle) native; | 12191 void clearTimeout(int handle) native; |
12189 | 12192 |
12190 /** @domName Window.close */ | 12193 /** @domName Window.close */ |
12191 void close() native; | 12194 void close() native; |
12192 | 12195 |
12193 /** @domName Window.confirm */ | 12196 /** @domName Window.confirm */ |
12194 bool confirm(String message) native; | 12197 bool confirm(String message) native; |
12195 | 12198 |
12196 /** @domName Window.dispatchEvent */ | 12199 /** @domName Window.dispatchEvent */ |
12197 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; | 12200 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; |
12198 | 12201 |
12199 /** @domName Window.find */ | 12202 /** @domName Window.find */ |
12200 bool find(String string, bool caseSensitive, bool backwards, bool wrap, bool w
holeWord, bool searchInFrames, bool showDialog) native; | 12203 bool find(String string, bool caseSensitive, bool backwards, bool wrap, bool w
holeWord, bool searchInFrames, bool showDialog) native; |
12201 | 12204 |
| 12205 /** @domName Window.focus */ |
| 12206 void focus() native; |
| 12207 |
12202 /** @domName Window.getComputedStyle */ | 12208 /** @domName Window.getComputedStyle */ |
12203 CSSStyleDeclaration $dom_getComputedStyle(Element element, String pseudoElemen
t) native "getComputedStyle"; | 12209 CSSStyleDeclaration $dom_getComputedStyle(Element element, String pseudoElemen
t) native "getComputedStyle"; |
12204 | 12210 |
12205 /** @domName Window.getMatchedCSSRules */ | 12211 /** @domName Window.getMatchedCSSRules */ |
12206 List<CSSRule> getMatchedCSSRules(Element element, String pseudoElement) native
; | 12212 List<CSSRule> getMatchedCSSRules(Element element, String pseudoElement) native
; |
12207 | 12213 |
12208 /** @domName Window.getSelection */ | 12214 /** @domName Window.getSelection */ |
12209 DOMSelection getSelection() native; | 12215 DOMSelection getSelection() native; |
12210 | 12216 |
12211 /** @domName Window.matchMedia */ | 12217 /** @domName Window.matchMedia */ |
(...skipping 10039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
22251 * myIFrame.elements.add(innerIFrame); | 22257 * myIFrame.elements.add(innerIFrame); |
22252 * | 22258 * |
22253 * print(myIframe.contentWindow.top == window) // 'true' | 22259 * print(myIframe.contentWindow.top == window) // 'true' |
22254 * print(innerIFrame.contentWindow.top == window) // 'true' | 22260 * print(innerIFrame.contentWindow.top == window) // 'true' |
22255 * | 22261 * |
22256 * print(window.top == window) // 'true' | 22262 * print(window.top == window) // 'true' |
22257 */ | 22263 */ |
22258 Window get top; | 22264 Window get top; |
22259 | 22265 |
22260 // Methods. | 22266 // Methods. |
| 22267 void focus(); |
| 22268 void blur(); |
22261 void close(); | 22269 void close(); |
22262 void postMessage(var message, String targetOrigin, [List messagePorts = null])
; | 22270 void postMessage(var message, String targetOrigin, [List messagePorts = null])
; |
22263 } | 22271 } |
22264 | 22272 |
22265 abstract class Location { | 22273 abstract class Location { |
22266 void set href(String val); | 22274 void set href(String val); |
22267 } | 22275 } |
22268 | 22276 |
22269 abstract class History { | 22277 abstract class History { |
22270 void back(); | 22278 void back(); |
(...skipping 2840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
25111 if (length < 0) throw new ArgumentError('length'); | 25119 if (length < 0) throw new ArgumentError('length'); |
25112 if (start < 0) throw new RangeError.value(start); | 25120 if (start < 0) throw new RangeError.value(start); |
25113 int end = start + length; | 25121 int end = start + length; |
25114 if (end > a.length) throw new RangeError.value(end); | 25122 if (end > a.length) throw new RangeError.value(end); |
25115 for (int i = start; i < end; i++) { | 25123 for (int i = start; i < end; i++) { |
25116 accumulator.add(a[i]); | 25124 accumulator.add(a[i]); |
25117 } | 25125 } |
25118 return accumulator; | 25126 return accumulator; |
25119 } | 25127 } |
25120 } | 25128 } |
OLD | NEW |