Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(292)

Side by Side Diff: sdk/lib/html/dart2js/html_dart2js.dart

Issue 14651019: Changing metadata lookup to always use interface.id (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /// The Dart HTML library. 1 /// The Dart HTML library.
2 library dart.dom.html; 2 library dart.dom.html;
3 3
4 import 'dart:async'; 4 import 'dart:async';
5 import 'dart:collection'; 5 import 'dart:collection';
6 import 'dart:_collection-dev'; 6 import 'dart:_collection-dev';
7 import 'dart:html_common'; 7 import 'dart:html_common';
8 import 'dart:indexed_db'; 8 import 'dart:indexed_db';
9 import 'dart:isolate'; 9 import 'dart:isolate';
10 import 'dart:json' as json; 10 import 'dart:json' as json;
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 // BSD-style license that can be found in the LICENSE file. 185 // BSD-style license that can be found in the LICENSE file.
186 186
187 187
188 @DocsEditable 188 @DocsEditable
189 @DomName('WebKitAnimationEvent') 189 @DomName('WebKitAnimationEvent')
190 @SupportedBrowser(SupportedBrowser.CHROME) 190 @SupportedBrowser(SupportedBrowser.CHROME)
191 @SupportedBrowser(SupportedBrowser.SAFARI) 191 @SupportedBrowser(SupportedBrowser.SAFARI)
192 @Experimental 192 @Experimental
193 class AnimationEvent extends Event native "WebKitAnimationEvent" { 193 class AnimationEvent extends Event native "WebKitAnimationEvent" {
194 194
195 @DomName('AnimationEvent.animationName') 195 @DomName('WebKitAnimationEvent.animationName')
196 @DocsEditable 196 @DocsEditable
197 final String animationName; 197 final String animationName;
198 198
199 @DomName('AnimationEvent.elapsedTime') 199 @DomName('WebKitAnimationEvent.elapsedTime')
200 @DocsEditable 200 @DocsEditable
201 final num elapsedTime; 201 final num elapsedTime;
202 } 202 }
203 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 203 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
204 // for details. All rights reserved. Use of this source code is governed by a 204 // for details. All rights reserved. Use of this source code is governed by a
205 // BSD-style license that can be found in the LICENSE file. 205 // BSD-style license that can be found in the LICENSE file.
206 206
207 207
208 @DocsEditable 208 @DocsEditable
209 @DomName('DOMApplicationCache') 209 @DomName('DOMApplicationCache')
(...skipping 6524 matching lines...) Expand 10 before | Expand all | Expand 10 after
6734 var errorName = JS('String', '#.name', this); 6734 var errorName = JS('String', '#.name', this);
6735 // Although Safari nightly has updated the name to SecurityError, Safari 5 6735 // Although Safari nightly has updated the name to SecurityError, Safari 5
6736 // and 6 still return SECURITY_ERR. 6736 // and 6 still return SECURITY_ERR.
6737 if (Device.isWebKit && errorName == 'SECURITY_ERR') return 'SecurityError'; 6737 if (Device.isWebKit && errorName == 'SECURITY_ERR') return 'SecurityError';
6738 // Chrome release still uses old string, remove this line when Chrome stable 6738 // Chrome release still uses old string, remove this line when Chrome stable
6739 // also prints out SyntaxError. 6739 // also prints out SyntaxError.
6740 if (Device.isWebKit && errorName == 'SYNTAX_ERR') return 'SyntaxError'; 6740 if (Device.isWebKit && errorName == 'SYNTAX_ERR') return 'SyntaxError';
6741 return errorName; 6741 return errorName;
6742 } 6742 }
6743 6743
6744 @DomName('DOMCoreException.message') 6744 @DomName('DOMException.message')
6745 @DocsEditable 6745 @DocsEditable
6746 final String message; 6746 final String message;
6747 6747
6748 @DomName('DOMCoreException.toString') 6748 @DomName('DOMException.toString')
6749 @DocsEditable 6749 @DocsEditable
6750 String toString() native; 6750 String toString() native;
6751 6751
6752 } 6752 }
6753 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6753 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6754 // for details. All rights reserved. Use of this source code is governed by a 6754 // for details. All rights reserved. Use of this source code is governed by a
6755 // BSD-style license that can be found in the LICENSE file. 6755 // BSD-style license that can be found in the LICENSE file.
6756 6756
6757 6757
6758 @DocsEditable 6758 @DocsEditable
(...skipping 2802 matching lines...) Expand 10 before | Expand all | Expand 10 after
9561 9561
9562 9562
9563 @DocsEditable 9563 @DocsEditable
9564 @DomName('FormData') 9564 @DomName('FormData')
9565 @SupportedBrowser(SupportedBrowser.CHROME) 9565 @SupportedBrowser(SupportedBrowser.CHROME)
9566 @SupportedBrowser(SupportedBrowser.FIREFOX) 9566 @SupportedBrowser(SupportedBrowser.FIREFOX)
9567 @SupportedBrowser(SupportedBrowser.IE, '10') 9567 @SupportedBrowser(SupportedBrowser.IE, '10')
9568 @SupportedBrowser(SupportedBrowser.SAFARI) 9568 @SupportedBrowser(SupportedBrowser.SAFARI)
9569 class FormData native "FormData" { 9569 class FormData native "FormData" {
9570 9570
9571 @DomName('DOMFormData.DOMFormData') 9571 @DomName('FormData.DOMFormData')
9572 @DocsEditable 9572 @DocsEditable
9573 factory FormData([FormElement form]) { 9573 factory FormData([FormElement form]) {
9574 if (?form) { 9574 if (?form) {
9575 return FormData._create_1(form); 9575 return FormData._create_1(form);
9576 } 9576 }
9577 return FormData._create_2(); 9577 return FormData._create_2();
9578 } 9578 }
9579 static FormData _create_1(form) => JS('FormData', 'new FormData(#)', form); 9579 static FormData _create_1(form) => JS('FormData', 'new FormData(#)', form);
9580 static FormData _create_2() => JS('FormData', 'new FormData()'); 9580 static FormData _create_2() => JS('FormData', 'new FormData()');
9581 9581
9582 /// Checks if this type is supported on the current platform. 9582 /// Checks if this type is supported on the current platform.
9583 static bool get supported => JS('bool', '!!(window.FormData)'); 9583 static bool get supported => JS('bool', '!!(window.FormData)');
9584 9584
9585 @DomName('DOMFormData.append') 9585 @DomName('FormData.append')
9586 @DocsEditable 9586 @DocsEditable
9587 void append(String name, value, [String filename]) native; 9587 void append(String name, value, [String filename]) native;
9588 } 9588 }
9589 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9589 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9590 // for details. All rights reserved. Use of this source code is governed by a 9590 // for details. All rights reserved. Use of this source code is governed by a
9591 // BSD-style license that can be found in the LICENSE file. 9591 // BSD-style license that can be found in the LICENSE file.
9592 9592
9593 9593
9594 @DocsEditable 9594 @DocsEditable
9595 @DomName('HTMLFormElement') 9595 @DomName('HTMLFormElement')
(...skipping 3882 matching lines...) Expand 10 before | Expand all | Expand 10 after
13478 } 13478 }
13479 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13479 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13480 // for details. All rights reserved. Use of this source code is governed by a 13480 // for details. All rights reserved. Use of this source code is governed by a
13481 // BSD-style license that can be found in the LICENSE file. 13481 // BSD-style license that can be found in the LICENSE file.
13482 13482
13483 13483
13484 @DocsEditable 13484 @DocsEditable
13485 @DomName('MimeType') 13485 @DomName('MimeType')
13486 class MimeType native "MimeType" { 13486 class MimeType native "MimeType" {
13487 13487
13488 @DomName('DOMMimeType.description') 13488 @DomName('MimeType.description')
13489 @DocsEditable 13489 @DocsEditable
13490 final String description; 13490 final String description;
13491 13491
13492 @DomName('DOMMimeType.enabledPlugin') 13492 @DomName('MimeType.enabledPlugin')
13493 @DocsEditable 13493 @DocsEditable
13494 final Plugin enabledPlugin; 13494 final Plugin enabledPlugin;
13495 13495
13496 @DomName('DOMMimeType.suffixes') 13496 @DomName('MimeType.suffixes')
13497 @DocsEditable 13497 @DocsEditable
13498 final String suffixes; 13498 final String suffixes;
13499 13499
13500 @DomName('DOMMimeType.type') 13500 @DomName('MimeType.type')
13501 @DocsEditable 13501 @DocsEditable
13502 final String type; 13502 final String type;
13503 } 13503 }
13504 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13504 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13505 // for details. All rights reserved. Use of this source code is governed by a 13505 // for details. All rights reserved. Use of this source code is governed by a
13506 // BSD-style license that can be found in the LICENSE file. 13506 // BSD-style license that can be found in the LICENSE file.
13507 13507
13508 13508
13509 @DocsEditable 13509 @DocsEditable
13510 @DomName('MimeTypeArray') 13510 @DomName('MimeTypeArray')
13511 class MimeTypeArray extends Object with ListMixin<MimeType>, ImmutableListMixin< MimeType> implements JavaScriptIndexingBehavior, List<MimeType> native "MimeType Array" { 13511 class MimeTypeArray extends Object with ListMixin<MimeType>, ImmutableListMixin< MimeType> implements JavaScriptIndexingBehavior, List<MimeType> native "MimeType Array" {
13512 13512
13513 @DomName('DOMMimeTypeArray.length') 13513 @DomName('MimeTypeArray.length')
13514 @DocsEditable 13514 @DocsEditable
13515 int get length => JS("int", "#.length", this); 13515 int get length => JS("int", "#.length", this);
13516 13516
13517 MimeType operator[](int index) => JS("MimeType", "#[#]", this, index); 13517 MimeType operator[](int index) => JS("MimeType", "#[#]", this, index);
13518 13518
13519 void operator[]=(int index, MimeType value) { 13519 void operator[]=(int index, MimeType value) {
13520 throw new UnsupportedError("Cannot assign element of immutable List."); 13520 throw new UnsupportedError("Cannot assign element of immutable List.");
13521 } 13521 }
13522 // -- start List<MimeType> mixins. 13522 // -- start List<MimeType> mixins.
13523 // MimeType is the element type. 13523 // MimeType is the element type.
13524 13524
13525 13525
13526 void set length(int value) { 13526 void set length(int value) {
13527 throw new UnsupportedError("Cannot resize immutable List."); 13527 throw new UnsupportedError("Cannot resize immutable List.");
13528 } 13528 }
13529 13529
13530 // -- end List<MimeType> mixins. 13530 // -- end List<MimeType> mixins.
13531 13531
13532 @DomName('DOMMimeTypeArray.item') 13532 @DomName('MimeTypeArray.item')
13533 @DocsEditable 13533 @DocsEditable
13534 MimeType item(int index) native; 13534 MimeType item(int index) native;
13535 13535
13536 @DomName('DOMMimeTypeArray.namedItem') 13536 @DomName('MimeTypeArray.namedItem')
13537 @DocsEditable 13537 @DocsEditable
13538 MimeType namedItem(String name) native; 13538 MimeType namedItem(String name) native;
13539 } 13539 }
13540 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13540 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13541 // for details. All rights reserved. Use of this source code is governed by a 13541 // for details. All rights reserved. Use of this source code is governed by a
13542 // BSD-style license that can be found in the LICENSE file. 13542 // BSD-style license that can be found in the LICENSE file.
13543 13543
13544 13544
13545 @DocsEditable 13545 @DocsEditable
13546 @DomName('HTMLModElement') 13546 @DomName('HTMLModElement')
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
13935 // BSD-style license that can be found in the LICENSE file. 13935 // BSD-style license that can be found in the LICENSE file.
13936 13936
13937 13937
13938 @DocsEditable 13938 @DocsEditable
13939 @DomName('WebKitNamedFlow') 13939 @DomName('WebKitNamedFlow')
13940 @SupportedBrowser(SupportedBrowser.CHROME) 13940 @SupportedBrowser(SupportedBrowser.CHROME)
13941 @SupportedBrowser(SupportedBrowser.SAFARI) 13941 @SupportedBrowser(SupportedBrowser.SAFARI)
13942 @Experimental 13942 @Experimental
13943 class NamedFlow extends EventTarget native "WebKitNamedFlow" { 13943 class NamedFlow extends EventTarget native "WebKitNamedFlow" {
13944 13944
13945 @DomName('NamedFlow.firstEmptyRegionIndex') 13945 @DomName('WebKitNamedFlow.firstEmptyRegionIndex')
13946 @DocsEditable 13946 @DocsEditable
13947 final int firstEmptyRegionIndex; 13947 final int firstEmptyRegionIndex;
13948 13948
13949 @DomName('NamedFlow.name') 13949 @DomName('WebKitNamedFlow.name')
13950 @DocsEditable 13950 @DocsEditable
13951 final String name; 13951 final String name;
13952 13952
13953 @DomName('NamedFlow.overset') 13953 @DomName('WebKitNamedFlow.overset')
13954 @DocsEditable 13954 @DocsEditable
13955 final bool overset; 13955 final bool overset;
13956 13956
13957 @JSName('addEventListener') 13957 @JSName('addEventListener')
13958 @DomName('NamedFlow.addEventListener') 13958 @DomName('WebKitNamedFlow.addEventListener')
13959 @DocsEditable 13959 @DocsEditable
13960 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; 13960 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
13961 13961
13962 @DomName('NamedFlow.dispatchEvent') 13962 @DomName('WebKitNamedFlow.dispatchEvent')
13963 @DocsEditable 13963 @DocsEditable
13964 bool dispatchEvent(Event event) native; 13964 bool dispatchEvent(Event event) native;
13965 13965
13966 @DomName('NamedFlow.getContent') 13966 @DomName('WebKitNamedFlow.getContent')
13967 @DocsEditable 13967 @DocsEditable
13968 @Returns('NodeList') 13968 @Returns('NodeList')
13969 @Creates('NodeList') 13969 @Creates('NodeList')
13970 List<Node> getContent() native; 13970 List<Node> getContent() native;
13971 13971
13972 @DomName('NamedFlow.getRegions') 13972 @DomName('WebKitNamedFlow.getRegions')
13973 @DocsEditable 13973 @DocsEditable
13974 @Returns('NodeList') 13974 @Returns('NodeList')
13975 @Creates('NodeList') 13975 @Creates('NodeList')
13976 List<Node> getRegions() native; 13976 List<Node> getRegions() native;
13977 13977
13978 @DomName('NamedFlow.getRegionsByContent') 13978 @DomName('WebKitNamedFlow.getRegionsByContent')
13979 @DocsEditable 13979 @DocsEditable
13980 @Returns('NodeList') 13980 @Returns('NodeList')
13981 @Creates('NodeList') 13981 @Creates('NodeList')
13982 List<Node> getRegionsByContent(Node contentNode) native; 13982 List<Node> getRegionsByContent(Node contentNode) native;
13983 13983
13984 @JSName('removeEventListener') 13984 @JSName('removeEventListener')
13985 @DomName('NamedFlow.removeEventListener') 13985 @DomName('WebKitNamedFlow.removeEventListener')
13986 @DocsEditable 13986 @DocsEditable
13987 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; 13987 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native;
13988 } 13988 }
13989 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13989 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13990 // for details. All rights reserved. Use of this source code is governed by a 13990 // for details. All rights reserved. Use of this source code is governed by a
13991 // BSD-style license that can be found in the LICENSE file. 13991 // BSD-style license that can be found in the LICENSE file.
13992 13992
13993 13993
13994 @DocsEditable 13994 @DocsEditable
13995 @DomName('WebKitNamedFlowCollection') 13995 @DomName('WebKitNamedFlowCollection')
13996 @SupportedBrowser(SupportedBrowser.CHROME) 13996 @SupportedBrowser(SupportedBrowser.CHROME)
13997 @SupportedBrowser(SupportedBrowser.SAFARI) 13997 @SupportedBrowser(SupportedBrowser.SAFARI)
13998 @Experimental 13998 @Experimental
13999 class NamedFlowCollection native "WebKitNamedFlowCollection" { 13999 class NamedFlowCollection native "WebKitNamedFlowCollection" {
14000 14000
14001 @DomName('DOMNamedFlowCollection.length') 14001 @DomName('WebKitNamedFlowCollection.length')
14002 @DocsEditable 14002 @DocsEditable
14003 final int length; 14003 final int length;
14004 14004
14005 @DomName('DOMNamedFlowCollection.item') 14005 @DomName('WebKitNamedFlowCollection.item')
14006 @DocsEditable 14006 @DocsEditable
14007 NamedFlow item(int index) native; 14007 NamedFlow item(int index) native;
14008 14008
14009 @DomName('DOMNamedFlowCollection.namedItem') 14009 @DomName('WebKitNamedFlowCollection.namedItem')
14010 @DocsEditable 14010 @DocsEditable
14011 NamedFlow namedItem(String name) native; 14011 NamedFlow namedItem(String name) native;
14012 } 14012 }
14013 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14013 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14014 // for details. All rights reserved. Use of this source code is governed by a 14014 // for details. All rights reserved. Use of this source code is governed by a
14015 // BSD-style license that can be found in the LICENSE file. 14015 // BSD-style license that can be found in the LICENSE file.
14016 14016
14017 14017
14018 @DomName('Navigator') 14018 @DomName('Navigator')
14019 class Navigator native "Navigator" { 14019 class Navigator native "Navigator" {
(...skipping 1286 matching lines...) Expand 10 before | Expand all | Expand 10 after
15306 } 15306 }
15307 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15307 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15308 // for details. All rights reserved. Use of this source code is governed by a 15308 // for details. All rights reserved. Use of this source code is governed by a
15309 // BSD-style license that can be found in the LICENSE file. 15309 // BSD-style license that can be found in the LICENSE file.
15310 15310
15311 15311
15312 @DocsEditable 15312 @DocsEditable
15313 @DomName('Path') 15313 @DomName('Path')
15314 class Path native "Path" { 15314 class Path native "Path" {
15315 15315
15316 @DomName('DOMPath.DOMPath') 15316 @DomName('Path.DOMPath')
15317 @DocsEditable 15317 @DocsEditable
15318 factory Path([path_OR_text]) { 15318 factory Path([path_OR_text]) {
15319 if (!?path_OR_text) { 15319 if (!?path_OR_text) {
15320 return Path._create_1(); 15320 return Path._create_1();
15321 } 15321 }
15322 if ((path_OR_text is Path || path_OR_text == null)) { 15322 if ((path_OR_text is Path || path_OR_text == null)) {
15323 return Path._create_2(path_OR_text); 15323 return Path._create_2(path_OR_text);
15324 } 15324 }
15325 if ((path_OR_text is String || path_OR_text == null)) { 15325 if ((path_OR_text is String || path_OR_text == null)) {
15326 return Path._create_3(path_OR_text); 15326 return Path._create_3(path_OR_text);
15327 } 15327 }
15328 throw new ArgumentError("Incorrect number or type of arguments"); 15328 throw new ArgumentError("Incorrect number or type of arguments");
15329 } 15329 }
15330 static Path _create_1() => JS('Path', 'new Path()'); 15330 static Path _create_1() => JS('Path', 'new Path()');
15331 static Path _create_2(path_OR_text) => JS('Path', 'new Path(#)', path_OR_text) ; 15331 static Path _create_2(path_OR_text) => JS('Path', 'new Path(#)', path_OR_text) ;
15332 static Path _create_3(path_OR_text) => JS('Path', 'new Path(#)', path_OR_text) ; 15332 static Path _create_3(path_OR_text) => JS('Path', 'new Path(#)', path_OR_text) ;
15333 15333
15334 @DomName('DOMPath.arc') 15334 @DomName('Path.arc')
15335 @DocsEditable 15335 @DocsEditable
15336 void arc(num x, num y, num radius, num startAngle, num endAngle, bool anticloc kwise) native; 15336 void arc(num x, num y, num radius, num startAngle, num endAngle, bool anticloc kwise) native;
15337 15337
15338 @DomName('DOMPath.arcTo') 15338 @DomName('Path.arcTo')
15339 @DocsEditable 15339 @DocsEditable
15340 void arcTo(num x1, num y1, num x2, num y2, num radius) native; 15340 void arcTo(num x1, num y1, num x2, num y2, num radius) native;
15341 15341
15342 @DomName('DOMPath.bezierCurveTo') 15342 @DomName('Path.bezierCurveTo')
15343 @DocsEditable 15343 @DocsEditable
15344 void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y) nativ e; 15344 void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y) nativ e;
15345 15345
15346 @DomName('DOMPath.closePath') 15346 @DomName('Path.closePath')
15347 @DocsEditable 15347 @DocsEditable
15348 void closePath() native; 15348 void closePath() native;
15349 15349
15350 @DomName('DOMPath.lineTo') 15350 @DomName('Path.lineTo')
15351 @DocsEditable 15351 @DocsEditable
15352 void lineTo(num x, num y) native; 15352 void lineTo(num x, num y) native;
15353 15353
15354 @DomName('DOMPath.moveTo') 15354 @DomName('Path.moveTo')
15355 @DocsEditable 15355 @DocsEditable
15356 void moveTo(num x, num y) native; 15356 void moveTo(num x, num y) native;
15357 15357
15358 @DomName('DOMPath.quadraticCurveTo') 15358 @DomName('Path.quadraticCurveTo')
15359 @DocsEditable 15359 @DocsEditable
15360 void quadraticCurveTo(num cpx, num cpy, num x, num y) native; 15360 void quadraticCurveTo(num cpx, num cpy, num x, num y) native;
15361 15361
15362 @DomName('DOMPath.rect') 15362 @DomName('Path.rect')
15363 @DocsEditable 15363 @DocsEditable
15364 void rect(num x, num y, num width, num height) native; 15364 void rect(num x, num y, num width, num height) native;
15365 } 15365 }
15366 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15366 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15367 // for details. All rights reserved. Use of this source code is governed by a 15367 // for details. All rights reserved. Use of this source code is governed by a
15368 // BSD-style license that can be found in the LICENSE file. 15368 // BSD-style license that can be found in the LICENSE file.
15369 15369
15370 15370
15371 @DocsEditable 15371 @DocsEditable
15372 @DomName('Performance') 15372 @DomName('Performance')
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
15703 } 15703 }
15704 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15704 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15705 // for details. All rights reserved. Use of this source code is governed by a 15705 // for details. All rights reserved. Use of this source code is governed by a
15706 // BSD-style license that can be found in the LICENSE file. 15706 // BSD-style license that can be found in the LICENSE file.
15707 15707
15708 15708
15709 @DocsEditable 15709 @DocsEditable
15710 @DomName('Plugin') 15710 @DomName('Plugin')
15711 class Plugin native "Plugin" { 15711 class Plugin native "Plugin" {
15712 15712
15713 @DomName('DOMPlugin.description') 15713 @DomName('Plugin.description')
15714 @DocsEditable 15714 @DocsEditable
15715 final String description; 15715 final String description;
15716 15716
15717 @DomName('DOMPlugin.filename') 15717 @DomName('Plugin.filename')
15718 @DocsEditable 15718 @DocsEditable
15719 final String filename; 15719 final String filename;
15720 15720
15721 @DomName('DOMPlugin.length') 15721 @DomName('Plugin.length')
15722 @DocsEditable 15722 @DocsEditable
15723 final int length; 15723 final int length;
15724 15724
15725 @DomName('DOMPlugin.name') 15725 @DomName('Plugin.name')
15726 @DocsEditable 15726 @DocsEditable
15727 final String name; 15727 final String name;
15728 15728
15729 @DomName('DOMPlugin.item') 15729 @DomName('Plugin.item')
15730 @DocsEditable 15730 @DocsEditable
15731 MimeType item(int index) native; 15731 MimeType item(int index) native;
15732 15732
15733 @DomName('DOMPlugin.namedItem') 15733 @DomName('Plugin.namedItem')
15734 @DocsEditable 15734 @DocsEditable
15735 MimeType namedItem(String name) native; 15735 MimeType namedItem(String name) native;
15736 } 15736 }
15737 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15737 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15738 // for details. All rights reserved. Use of this source code is governed by a 15738 // for details. All rights reserved. Use of this source code is governed by a
15739 // BSD-style license that can be found in the LICENSE file. 15739 // BSD-style license that can be found in the LICENSE file.
15740 15740
15741 15741
15742 @DocsEditable 15742 @DocsEditable
15743 @DomName('PluginArray') 15743 @DomName('PluginArray')
15744 class PluginArray extends Object with ListMixin<Plugin>, ImmutableListMixin<Plug in> implements JavaScriptIndexingBehavior, List<Plugin> native "PluginArray" { 15744 class PluginArray extends Object with ListMixin<Plugin>, ImmutableListMixin<Plug in> implements JavaScriptIndexingBehavior, List<Plugin> native "PluginArray" {
15745 15745
15746 @DomName('DOMPluginArray.length') 15746 @DomName('PluginArray.length')
15747 @DocsEditable 15747 @DocsEditable
15748 int get length => JS("int", "#.length", this); 15748 int get length => JS("int", "#.length", this);
15749 15749
15750 Plugin operator[](int index) => JS("Plugin", "#[#]", this, index); 15750 Plugin operator[](int index) => JS("Plugin", "#[#]", this, index);
15751 15751
15752 void operator[]=(int index, Plugin value) { 15752 void operator[]=(int index, Plugin value) {
15753 throw new UnsupportedError("Cannot assign element of immutable List."); 15753 throw new UnsupportedError("Cannot assign element of immutable List.");
15754 } 15754 }
15755 // -- start List<Plugin> mixins. 15755 // -- start List<Plugin> mixins.
15756 // Plugin is the element type. 15756 // Plugin is the element type.
15757 15757
15758 15758
15759 void set length(int value) { 15759 void set length(int value) {
15760 throw new UnsupportedError("Cannot resize immutable List."); 15760 throw new UnsupportedError("Cannot resize immutable List.");
15761 } 15761 }
15762 15762
15763 // -- end List<Plugin> mixins. 15763 // -- end List<Plugin> mixins.
15764 15764
15765 @DomName('DOMPluginArray.item') 15765 @DomName('PluginArray.item')
15766 @DocsEditable 15766 @DocsEditable
15767 Plugin item(int index) native; 15767 Plugin item(int index) native;
15768 15768
15769 @DomName('DOMPluginArray.namedItem') 15769 @DomName('PluginArray.namedItem')
15770 @DocsEditable 15770 @DocsEditable
15771 Plugin namedItem(String name) native; 15771 Plugin namedItem(String name) native;
15772 15772
15773 @DomName('DOMPluginArray.refresh') 15773 @DomName('PluginArray.refresh')
15774 @DocsEditable 15774 @DocsEditable
15775 void refresh(bool reload) native; 15775 void refresh(bool reload) native;
15776 } 15776 }
15777 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15777 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15778 // for details. All rights reserved. Use of this source code is governed by a 15778 // for details. All rights reserved. Use of this source code is governed by a
15779 // BSD-style license that can be found in the LICENSE file. 15779 // BSD-style license that can be found in the LICENSE file.
15780 15780
15781 15781
15782 @DocsEditable 15782 @DocsEditable
15783 @DomName('PopStateEvent') 15783 @DomName('PopStateEvent')
(...skipping 1164 matching lines...) Expand 10 before | Expand all | Expand 10 after
16948 } 16948 }
16949 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16949 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16950 // for details. All rights reserved. Use of this source code is governed by a 16950 // for details. All rights reserved. Use of this source code is governed by a
16951 // BSD-style license that can be found in the LICENSE file. 16951 // BSD-style license that can be found in the LICENSE file.
16952 16952
16953 16953
16954 @DocsEditable 16954 @DocsEditable
16955 @DomName('SecurityPolicy') 16955 @DomName('SecurityPolicy')
16956 class SecurityPolicy native "SecurityPolicy" { 16956 class SecurityPolicy native "SecurityPolicy" {
16957 16957
16958 @DomName('DOMSecurityPolicy.allowsEval') 16958 @DomName('SecurityPolicy.allowsEval')
16959 @DocsEditable 16959 @DocsEditable
16960 final bool allowsEval; 16960 final bool allowsEval;
16961 16961
16962 @DomName('DOMSecurityPolicy.allowsInlineScript') 16962 @DomName('SecurityPolicy.allowsInlineScript')
16963 @DocsEditable 16963 @DocsEditable
16964 final bool allowsInlineScript; 16964 final bool allowsInlineScript;
16965 16965
16966 @DomName('DOMSecurityPolicy.allowsInlineStyle') 16966 @DomName('SecurityPolicy.allowsInlineStyle')
16967 @DocsEditable 16967 @DocsEditable
16968 final bool allowsInlineStyle; 16968 final bool allowsInlineStyle;
16969 16969
16970 @DomName('DOMSecurityPolicy.isActive') 16970 @DomName('SecurityPolicy.isActive')
16971 @DocsEditable 16971 @DocsEditable
16972 final bool isActive; 16972 final bool isActive;
16973 16973
16974 @DomName('DOMSecurityPolicy.reportURIs') 16974 @DomName('SecurityPolicy.reportURIs')
16975 @DocsEditable 16975 @DocsEditable
16976 @Returns('DomStringList') 16976 @Returns('DomStringList')
16977 @Creates('DomStringList') 16977 @Creates('DomStringList')
16978 final List<String> reportURIs; 16978 final List<String> reportURIs;
16979 16979
16980 @DomName('DOMSecurityPolicy.allowsConnectionTo') 16980 @DomName('SecurityPolicy.allowsConnectionTo')
16981 @DocsEditable 16981 @DocsEditable
16982 bool allowsConnectionTo(String url) native; 16982 bool allowsConnectionTo(String url) native;
16983 16983
16984 @DomName('DOMSecurityPolicy.allowsFontFrom') 16984 @DomName('SecurityPolicy.allowsFontFrom')
16985 @DocsEditable 16985 @DocsEditable
16986 bool allowsFontFrom(String url) native; 16986 bool allowsFontFrom(String url) native;
16987 16987
16988 @DomName('DOMSecurityPolicy.allowsFormAction') 16988 @DomName('SecurityPolicy.allowsFormAction')
16989 @DocsEditable 16989 @DocsEditable
16990 bool allowsFormAction(String url) native; 16990 bool allowsFormAction(String url) native;
16991 16991
16992 @DomName('DOMSecurityPolicy.allowsFrameFrom') 16992 @DomName('SecurityPolicy.allowsFrameFrom')
16993 @DocsEditable 16993 @DocsEditable
16994 bool allowsFrameFrom(String url) native; 16994 bool allowsFrameFrom(String url) native;
16995 16995
16996 @DomName('DOMSecurityPolicy.allowsImageFrom') 16996 @DomName('SecurityPolicy.allowsImageFrom')
16997 @DocsEditable 16997 @DocsEditable
16998 bool allowsImageFrom(String url) native; 16998 bool allowsImageFrom(String url) native;
16999 16999
17000 @DomName('DOMSecurityPolicy.allowsMediaFrom') 17000 @DomName('SecurityPolicy.allowsMediaFrom')
17001 @DocsEditable 17001 @DocsEditable
17002 bool allowsMediaFrom(String url) native; 17002 bool allowsMediaFrom(String url) native;
17003 17003
17004 @DomName('DOMSecurityPolicy.allowsObjectFrom') 17004 @DomName('SecurityPolicy.allowsObjectFrom')
17005 @DocsEditable 17005 @DocsEditable
17006 bool allowsObjectFrom(String url) native; 17006 bool allowsObjectFrom(String url) native;
17007 17007
17008 @DomName('DOMSecurityPolicy.allowsPluginType') 17008 @DomName('SecurityPolicy.allowsPluginType')
17009 @DocsEditable 17009 @DocsEditable
17010 bool allowsPluginType(String type) native; 17010 bool allowsPluginType(String type) native;
17011 17011
17012 @DomName('DOMSecurityPolicy.allowsScriptFrom') 17012 @DomName('SecurityPolicy.allowsScriptFrom')
17013 @DocsEditable 17013 @DocsEditable
17014 bool allowsScriptFrom(String url) native; 17014 bool allowsScriptFrom(String url) native;
17015 17015
17016 @DomName('DOMSecurityPolicy.allowsStyleFrom') 17016 @DomName('SecurityPolicy.allowsStyleFrom')
17017 @DocsEditable 17017 @DocsEditable
17018 bool allowsStyleFrom(String url) native; 17018 bool allowsStyleFrom(String url) native;
17019 } 17019 }
17020 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17020 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17021 // for details. All rights reserved. Use of this source code is governed by a 17021 // for details. All rights reserved. Use of this source code is governed by a
17022 // BSD-style license that can be found in the LICENSE file. 17022 // BSD-style license that can be found in the LICENSE file.
17023 17023
17024 17024
17025 @DocsEditable 17025 @DocsEditable
17026 @DomName('SecurityPolicyViolationEvent') 17026 @DomName('SecurityPolicyViolationEvent')
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
17170 } 17170 }
17171 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17171 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17172 // for details. All rights reserved. Use of this source code is governed by a 17172 // for details. All rights reserved. Use of this source code is governed by a
17173 // BSD-style license that can be found in the LICENSE file. 17173 // BSD-style license that can be found in the LICENSE file.
17174 17174
17175 17175
17176 @DocsEditable 17176 @DocsEditable
17177 @DomName('Selection') 17177 @DomName('Selection')
17178 class Selection native "Selection" { 17178 class Selection native "Selection" {
17179 17179
17180 @DomName('DOMSelection.anchorNode') 17180 @DomName('Selection.anchorNode')
17181 @DocsEditable 17181 @DocsEditable
17182 final Node anchorNode; 17182 final Node anchorNode;
17183 17183
17184 @DomName('DOMSelection.anchorOffset') 17184 @DomName('Selection.anchorOffset')
17185 @DocsEditable 17185 @DocsEditable
17186 final int anchorOffset; 17186 final int anchorOffset;
17187 17187
17188 @DomName('DOMSelection.baseNode') 17188 @DomName('Selection.baseNode')
17189 @DocsEditable 17189 @DocsEditable
17190 final Node baseNode; 17190 final Node baseNode;
17191 17191
17192 @DomName('DOMSelection.baseOffset') 17192 @DomName('Selection.baseOffset')
17193 @DocsEditable 17193 @DocsEditable
17194 final int baseOffset; 17194 final int baseOffset;
17195 17195
17196 @DomName('DOMSelection.extentNode') 17196 @DomName('Selection.extentNode')
17197 @DocsEditable 17197 @DocsEditable
17198 final Node extentNode; 17198 final Node extentNode;
17199 17199
17200 @DomName('DOMSelection.extentOffset') 17200 @DomName('Selection.extentOffset')
17201 @DocsEditable 17201 @DocsEditable
17202 final int extentOffset; 17202 final int extentOffset;
17203 17203
17204 @DomName('DOMSelection.focusNode') 17204 @DomName('Selection.focusNode')
17205 @DocsEditable 17205 @DocsEditable
17206 final Node focusNode; 17206 final Node focusNode;
17207 17207
17208 @DomName('DOMSelection.focusOffset') 17208 @DomName('Selection.focusOffset')
17209 @DocsEditable 17209 @DocsEditable
17210 final int focusOffset; 17210 final int focusOffset;
17211 17211
17212 @DomName('DOMSelection.isCollapsed') 17212 @DomName('Selection.isCollapsed')
17213 @DocsEditable 17213 @DocsEditable
17214 final bool isCollapsed; 17214 final bool isCollapsed;
17215 17215
17216 @DomName('DOMSelection.rangeCount') 17216 @DomName('Selection.rangeCount')
17217 @DocsEditable 17217 @DocsEditable
17218 final int rangeCount; 17218 final int rangeCount;
17219 17219
17220 @DomName('DOMSelection.type') 17220 @DomName('Selection.type')
17221 @DocsEditable 17221 @DocsEditable
17222 final String type; 17222 final String type;
17223 17223
17224 @DomName('DOMSelection.addRange') 17224 @DomName('Selection.addRange')
17225 @DocsEditable 17225 @DocsEditable
17226 void addRange(Range range) native; 17226 void addRange(Range range) native;
17227 17227
17228 @DomName('DOMSelection.collapse') 17228 @DomName('Selection.collapse')
17229 @DocsEditable 17229 @DocsEditable
17230 void collapse(Node node, int index) native; 17230 void collapse(Node node, int index) native;
17231 17231
17232 @DomName('DOMSelection.collapseToEnd') 17232 @DomName('Selection.collapseToEnd')
17233 @DocsEditable 17233 @DocsEditable
17234 void collapseToEnd() native; 17234 void collapseToEnd() native;
17235 17235
17236 @DomName('DOMSelection.collapseToStart') 17236 @DomName('Selection.collapseToStart')
17237 @DocsEditable 17237 @DocsEditable
17238 void collapseToStart() native; 17238 void collapseToStart() native;
17239 17239
17240 @DomName('DOMSelection.containsNode') 17240 @DomName('Selection.containsNode')
17241 @DocsEditable 17241 @DocsEditable
17242 bool containsNode(Node node, bool allowPartial) native; 17242 bool containsNode(Node node, bool allowPartial) native;
17243 17243
17244 @DomName('DOMSelection.deleteFromDocument') 17244 @DomName('Selection.deleteFromDocument')
17245 @DocsEditable 17245 @DocsEditable
17246 void deleteFromDocument() native; 17246 void deleteFromDocument() native;
17247 17247
17248 @DomName('DOMSelection.empty') 17248 @DomName('Selection.empty')
17249 @DocsEditable 17249 @DocsEditable
17250 void empty() native; 17250 void empty() native;
17251 17251
17252 @DomName('DOMSelection.extend') 17252 @DomName('Selection.extend')
17253 @DocsEditable 17253 @DocsEditable
17254 void extend(Node node, int offset) native; 17254 void extend(Node node, int offset) native;
17255 17255
17256 @DomName('DOMSelection.getRangeAt') 17256 @DomName('Selection.getRangeAt')
17257 @DocsEditable 17257 @DocsEditable
17258 Range getRangeAt(int index) native; 17258 Range getRangeAt(int index) native;
17259 17259
17260 @DomName('DOMSelection.modify') 17260 @DomName('Selection.modify')
17261 @DocsEditable 17261 @DocsEditable
17262 void modify(String alter, String direction, String granularity) native; 17262 void modify(String alter, String direction, String granularity) native;
17263 17263
17264 @DomName('DOMSelection.removeAllRanges') 17264 @DomName('Selection.removeAllRanges')
17265 @DocsEditable 17265 @DocsEditable
17266 void removeAllRanges() native; 17266 void removeAllRanges() native;
17267 17267
17268 @DomName('DOMSelection.selectAllChildren') 17268 @DomName('Selection.selectAllChildren')
17269 @DocsEditable 17269 @DocsEditable
17270 void selectAllChildren(Node node) native; 17270 void selectAllChildren(Node node) native;
17271 17271
17272 @DomName('DOMSelection.setBaseAndExtent') 17272 @DomName('Selection.setBaseAndExtent')
17273 @DocsEditable 17273 @DocsEditable
17274 void setBaseAndExtent(Node baseNode, int baseOffset, Node extentNode, int exte ntOffset) native; 17274 void setBaseAndExtent(Node baseNode, int baseOffset, Node extentNode, int exte ntOffset) native;
17275 17275
17276 @DomName('DOMSelection.setPosition') 17276 @DomName('Selection.setPosition')
17277 @DocsEditable 17277 @DocsEditable
17278 void setPosition(Node node, int offset) native; 17278 void setPosition(Node node, int offset) native;
17279 17279
17280 @DomName('DOMSelection.toString') 17280 @DomName('Selection.toString')
17281 @DocsEditable 17281 @DocsEditable
17282 String toString() native; 17282 String toString() native;
17283 } 17283 }
17284 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17284 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17285 // for details. All rights reserved. Use of this source code is governed by a 17285 // for details. All rights reserved. Use of this source code is governed by a
17286 // BSD-style license that can be found in the LICENSE file. 17286 // BSD-style license that can be found in the LICENSE file.
17287 17287
17288 17288
17289 @DocsEditable 17289 @DocsEditable
17290 @DomName('HTMLShadowElement') 17290 @DomName('HTMLShadowElement')
(...skipping 2918 matching lines...) Expand 10 before | Expand all | Expand 10 after
20209 new _DomPoint(point.x, point.y)); 20209 new _DomPoint(point.x, point.y));
20210 return new Point(result.x, result.y); 20210 return new Point(result.x, result.y);
20211 } 20211 }
20212 20212
20213 /** 20213 /**
20214 * Checks whether [convertPointFromNodeToPage] and 20214 * Checks whether [convertPointFromNodeToPage] and
20215 * [convertPointFromPageToNode] are supported on the current platform. 20215 * [convertPointFromPageToNode] are supported on the current platform.
20216 */ 20216 */
20217 static bool get supportsPointConversions => _DomPoint.supported; 20217 static bool get supportsPointConversions => _DomPoint.supported;
20218 20218
20219 @DomName('DOMWindow.DOMContentLoadedEvent') 20219 @DomName('Window.DOMContentLoadedEvent')
20220 @DocsEditable 20220 @DocsEditable
20221 static const EventStreamProvider<Event> contentLoadedEvent = const EventStream Provider<Event>('DOMContentLoaded'); 20221 static const EventStreamProvider<Event> contentLoadedEvent = const EventStream Provider<Event>('DOMContentLoaded');
20222 20222
20223 @DomName('DOMWindow.devicemotionEvent') 20223 @DomName('Window.devicemotionEvent')
20224 @DocsEditable 20224 @DocsEditable
20225 static const EventStreamProvider<DeviceMotionEvent> deviceMotionEvent = const EventStreamProvider<DeviceMotionEvent>('devicemotion'); 20225 static const EventStreamProvider<DeviceMotionEvent> deviceMotionEvent = const EventStreamProvider<DeviceMotionEvent>('devicemotion');
20226 20226
20227 @DomName('DOMWindow.deviceorientationEvent') 20227 @DomName('Window.deviceorientationEvent')
20228 @DocsEditable 20228 @DocsEditable
20229 static const EventStreamProvider<DeviceOrientationEvent> deviceOrientationEven t = const EventStreamProvider<DeviceOrientationEvent>('deviceorientation'); 20229 static const EventStreamProvider<DeviceOrientationEvent> deviceOrientationEven t = const EventStreamProvider<DeviceOrientationEvent>('deviceorientation');
20230 20230
20231 @DomName('DOMWindow.hashchangeEvent') 20231 @DomName('Window.hashchangeEvent')
20232 @DocsEditable 20232 @DocsEditable
20233 static const EventStreamProvider<Event> hashChangeEvent = const EventStreamPro vider<Event>('hashchange'); 20233 static const EventStreamProvider<Event> hashChangeEvent = const EventStreamPro vider<Event>('hashchange');
20234 20234
20235 @DomName('DOMWindow.messageEvent') 20235 @DomName('Window.messageEvent')
20236 @DocsEditable 20236 @DocsEditable
20237 static const EventStreamProvider<MessageEvent> messageEvent = const EventStrea mProvider<MessageEvent>('message'); 20237 static const EventStreamProvider<MessageEvent> messageEvent = const EventStrea mProvider<MessageEvent>('message');
20238 20238
20239 @DomName('DOMWindow.offlineEvent') 20239 @DomName('Window.offlineEvent')
20240 @DocsEditable 20240 @DocsEditable
20241 static const EventStreamProvider<Event> offlineEvent = const EventStreamProvid er<Event>('offline'); 20241 static const EventStreamProvider<Event> offlineEvent = const EventStreamProvid er<Event>('offline');
20242 20242
20243 @DomName('DOMWindow.onlineEvent') 20243 @DomName('Window.onlineEvent')
20244 @DocsEditable 20244 @DocsEditable
20245 static const EventStreamProvider<Event> onlineEvent = const EventStreamProvide r<Event>('online'); 20245 static const EventStreamProvider<Event> onlineEvent = const EventStreamProvide r<Event>('online');
20246 20246
20247 @DomName('DOMWindow.pagehideEvent') 20247 @DomName('Window.pagehideEvent')
20248 @DocsEditable 20248 @DocsEditable
20249 static const EventStreamProvider<Event> pageHideEvent = const EventStreamProvi der<Event>('pagehide'); 20249 static const EventStreamProvider<Event> pageHideEvent = const EventStreamProvi der<Event>('pagehide');
20250 20250
20251 @DomName('DOMWindow.pageshowEvent') 20251 @DomName('Window.pageshowEvent')
20252 @DocsEditable 20252 @DocsEditable
20253 static const EventStreamProvider<Event> pageShowEvent = const EventStreamProvi der<Event>('pageshow'); 20253 static const EventStreamProvider<Event> pageShowEvent = const EventStreamProvi der<Event>('pageshow');
20254 20254
20255 @DomName('DOMWindow.popstateEvent') 20255 @DomName('Window.popstateEvent')
20256 @DocsEditable 20256 @DocsEditable
20257 static const EventStreamProvider<PopStateEvent> popStateEvent = const EventStr eamProvider<PopStateEvent>('popstate'); 20257 static const EventStreamProvider<PopStateEvent> popStateEvent = const EventStr eamProvider<PopStateEvent>('popstate');
20258 20258
20259 @DomName('DOMWindow.resizeEvent') 20259 @DomName('Window.resizeEvent')
20260 @DocsEditable 20260 @DocsEditable
20261 static const EventStreamProvider<Event> resizeEvent = const EventStreamProvide r<Event>('resize'); 20261 static const EventStreamProvider<Event> resizeEvent = const EventStreamProvide r<Event>('resize');
20262 20262
20263 @DomName('DOMWindow.storageEvent') 20263 @DomName('Window.storageEvent')
20264 @DocsEditable 20264 @DocsEditable
20265 static const EventStreamProvider<StorageEvent> storageEvent = const EventStrea mProvider<StorageEvent>('storage'); 20265 static const EventStreamProvider<StorageEvent> storageEvent = const EventStrea mProvider<StorageEvent>('storage');
20266 20266
20267 @DomName('DOMWindow.unloadEvent') 20267 @DomName('Window.unloadEvent')
20268 @DocsEditable 20268 @DocsEditable
20269 static const EventStreamProvider<Event> unloadEvent = const EventStreamProvide r<Event>('unload'); 20269 static const EventStreamProvider<Event> unloadEvent = const EventStreamProvide r<Event>('unload');
20270 20270
20271 @DomName('DOMWindow.webkitAnimationEndEvent') 20271 @DomName('Window.webkitAnimationEndEvent')
20272 @DocsEditable 20272 @DocsEditable
20273 @SupportedBrowser(SupportedBrowser.CHROME) 20273 @SupportedBrowser(SupportedBrowser.CHROME)
20274 @SupportedBrowser(SupportedBrowser.SAFARI) 20274 @SupportedBrowser(SupportedBrowser.SAFARI)
20275 @Experimental 20275 @Experimental
20276 static const EventStreamProvider<AnimationEvent> animationEndEvent = const Eve ntStreamProvider<AnimationEvent>('webkitAnimationEnd'); 20276 static const EventStreamProvider<AnimationEvent> animationEndEvent = const Eve ntStreamProvider<AnimationEvent>('webkitAnimationEnd');
20277 20277
20278 @DomName('DOMWindow.webkitAnimationIterationEvent') 20278 @DomName('Window.webkitAnimationIterationEvent')
20279 @DocsEditable 20279 @DocsEditable
20280 @SupportedBrowser(SupportedBrowser.CHROME) 20280 @SupportedBrowser(SupportedBrowser.CHROME)
20281 @SupportedBrowser(SupportedBrowser.SAFARI) 20281 @SupportedBrowser(SupportedBrowser.SAFARI)
20282 @Experimental 20282 @Experimental
20283 static const EventStreamProvider<AnimationEvent> animationIterationEvent = con st EventStreamProvider<AnimationEvent>('webkitAnimationIteration'); 20283 static const EventStreamProvider<AnimationEvent> animationIterationEvent = con st EventStreamProvider<AnimationEvent>('webkitAnimationIteration');
20284 20284
20285 @DomName('DOMWindow.webkitAnimationStartEvent') 20285 @DomName('Window.webkitAnimationStartEvent')
20286 @DocsEditable 20286 @DocsEditable
20287 @SupportedBrowser(SupportedBrowser.CHROME) 20287 @SupportedBrowser(SupportedBrowser.CHROME)
20288 @SupportedBrowser(SupportedBrowser.SAFARI) 20288 @SupportedBrowser(SupportedBrowser.SAFARI)
20289 @Experimental 20289 @Experimental
20290 static const EventStreamProvider<AnimationEvent> animationStartEvent = const E ventStreamProvider<AnimationEvent>('webkitAnimationStart'); 20290 static const EventStreamProvider<AnimationEvent> animationStartEvent = const E ventStreamProvider<AnimationEvent>('webkitAnimationStart');
20291 20291
20292 static const int PERSISTENT = 1; 20292 static const int PERSISTENT = 1;
20293 20293
20294 static const int TEMPORARY = 0; 20294 static const int TEMPORARY = 0;
20295 20295
20296 @DomName('DOMWindow.applicationCache') 20296 @DomName('Window.applicationCache')
20297 @DocsEditable 20297 @DocsEditable
20298 final ApplicationCache applicationCache; 20298 final ApplicationCache applicationCache;
20299 20299
20300 @DomName('DOMWindow.closed') 20300 @DomName('Window.closed')
20301 @DocsEditable 20301 @DocsEditable
20302 final bool closed; 20302 final bool closed;
20303 20303
20304 @DomName('DOMWindow.crypto') 20304 @DomName('Window.crypto')
20305 @DocsEditable 20305 @DocsEditable
20306 final Crypto crypto; 20306 final Crypto crypto;
20307 20307
20308 @DomName('DOMWindow.defaultStatus') 20308 @DomName('Window.defaultStatus')
20309 @DocsEditable 20309 @DocsEditable
20310 String defaultStatus; 20310 String defaultStatus;
20311 20311
20312 @DomName('DOMWindow.defaultstatus') 20312 @DomName('Window.defaultstatus')
20313 @DocsEditable 20313 @DocsEditable
20314 String defaultstatus; 20314 String defaultstatus;
20315 20315
20316 @DomName('DOMWindow.devicePixelRatio') 20316 @DomName('Window.devicePixelRatio')
20317 @DocsEditable 20317 @DocsEditable
20318 final num devicePixelRatio; 20318 final num devicePixelRatio;
20319 20319
20320 @DomName('DOMWindow.event') 20320 @DomName('Window.event')
20321 @DocsEditable 20321 @DocsEditable
20322 final Event event; 20322 final Event event;
20323 20323
20324 @DomName('DOMWindow.history') 20324 @DomName('Window.history')
20325 @DocsEditable 20325 @DocsEditable
20326 final History history; 20326 final History history;
20327 20327
20328 @DomName('DOMWindow.innerHeight') 20328 @DomName('Window.innerHeight')
20329 @DocsEditable 20329 @DocsEditable
20330 final int innerHeight; 20330 final int innerHeight;
20331 20331
20332 @DomName('DOMWindow.innerWidth') 20332 @DomName('Window.innerWidth')
20333 @DocsEditable 20333 @DocsEditable
20334 final int innerWidth; 20334 final int innerWidth;
20335 20335
20336 @DomName('DOMWindow.localStorage') 20336 @DomName('Window.localStorage')
20337 @DocsEditable 20337 @DocsEditable
20338 final Storage localStorage; 20338 final Storage localStorage;
20339 20339
20340 @DomName('DOMWindow.locationbar') 20340 @DomName('Window.locationbar')
20341 @DocsEditable 20341 @DocsEditable
20342 final BarInfo locationbar; 20342 final BarInfo locationbar;
20343 20343
20344 @DomName('DOMWindow.menubar') 20344 @DomName('Window.menubar')
20345 @DocsEditable 20345 @DocsEditable
20346 final BarInfo menubar; 20346 final BarInfo menubar;
20347 20347
20348 @DomName('DOMWindow.name') 20348 @DomName('Window.name')
20349 @DocsEditable 20349 @DocsEditable
20350 String name; 20350 String name;
20351 20351
20352 @DomName('DOMWindow.navigator') 20352 @DomName('Window.navigator')
20353 @DocsEditable 20353 @DocsEditable
20354 final Navigator navigator; 20354 final Navigator navigator;
20355 20355
20356 @DomName('DOMWindow.offscreenBuffering') 20356 @DomName('Window.offscreenBuffering')
20357 @DocsEditable 20357 @DocsEditable
20358 final bool offscreenBuffering; 20358 final bool offscreenBuffering;
20359 20359
20360 WindowBase get opener => _convertNativeToDart_Window(this._get_opener); 20360 WindowBase get opener => _convertNativeToDart_Window(this._get_opener);
20361 @JSName('opener') 20361 @JSName('opener')
20362 @DomName('DOMWindow.opener') 20362 @DomName('Window.opener')
20363 @DocsEditable 20363 @DocsEditable
20364 @Creates('Window|=Object') 20364 @Creates('Window|=Object')
20365 @Returns('Window|=Object') 20365 @Returns('Window|=Object')
20366 final dynamic _get_opener; 20366 final dynamic _get_opener;
20367 20367
20368 @DomName('DOMWindow.outerHeight') 20368 @DomName('Window.outerHeight')
20369 @DocsEditable 20369 @DocsEditable
20370 final int outerHeight; 20370 final int outerHeight;
20371 20371
20372 @DomName('DOMWindow.outerWidth') 20372 @DomName('Window.outerWidth')
20373 @DocsEditable 20373 @DocsEditable
20374 final int outerWidth; 20374 final int outerWidth;
20375 20375
20376 @DomName('DOMWindow.pageXOffset') 20376 @DomName('Window.pageXOffset')
20377 @DocsEditable 20377 @DocsEditable
20378 final int pageXOffset; 20378 final int pageXOffset;
20379 20379
20380 @DomName('DOMWindow.pageYOffset') 20380 @DomName('Window.pageYOffset')
20381 @DocsEditable 20381 @DocsEditable
20382 final int pageYOffset; 20382 final int pageYOffset;
20383 20383
20384 WindowBase get parent => _convertNativeToDart_Window(this._get_parent); 20384 WindowBase get parent => _convertNativeToDart_Window(this._get_parent);
20385 @JSName('parent') 20385 @JSName('parent')
20386 @DomName('DOMWindow.parent') 20386 @DomName('Window.parent')
20387 @DocsEditable 20387 @DocsEditable
20388 @Creates('Window|=Object') 20388 @Creates('Window|=Object')
20389 @Returns('Window|=Object') 20389 @Returns('Window|=Object')
20390 final dynamic _get_parent; 20390 final dynamic _get_parent;
20391 20391
20392 @DomName('DOMWindow.performance') 20392 @DomName('Window.performance')
20393 @DocsEditable 20393 @DocsEditable
20394 @SupportedBrowser(SupportedBrowser.CHROME) 20394 @SupportedBrowser(SupportedBrowser.CHROME)
20395 @SupportedBrowser(SupportedBrowser.FIREFOX) 20395 @SupportedBrowser(SupportedBrowser.FIREFOX)
20396 @SupportedBrowser(SupportedBrowser.IE) 20396 @SupportedBrowser(SupportedBrowser.IE)
20397 final Performance performance; 20397 final Performance performance;
20398 20398
20399 @DomName('DOMWindow.personalbar') 20399 @DomName('Window.personalbar')
20400 @DocsEditable 20400 @DocsEditable
20401 final BarInfo personalbar; 20401 final BarInfo personalbar;
20402 20402
20403 @DomName('DOMWindow.screen') 20403 @DomName('Window.screen')
20404 @DocsEditable 20404 @DocsEditable
20405 final Screen screen; 20405 final Screen screen;
20406 20406
20407 @DomName('DOMWindow.screenLeft') 20407 @DomName('Window.screenLeft')
20408 @DocsEditable 20408 @DocsEditable
20409 final int screenLeft; 20409 final int screenLeft;
20410 20410
20411 @DomName('DOMWindow.screenTop') 20411 @DomName('Window.screenTop')
20412 @DocsEditable 20412 @DocsEditable
20413 final int screenTop; 20413 final int screenTop;
20414 20414
20415 @DomName('DOMWindow.screenX') 20415 @DomName('Window.screenX')
20416 @DocsEditable 20416 @DocsEditable
20417 final int screenX; 20417 final int screenX;
20418 20418
20419 @DomName('DOMWindow.screenY') 20419 @DomName('Window.screenY')
20420 @DocsEditable 20420 @DocsEditable
20421 final int screenY; 20421 final int screenY;
20422 20422
20423 @DomName('DOMWindow.scrollX') 20423 @DomName('Window.scrollX')
20424 @DocsEditable 20424 @DocsEditable
20425 final int scrollX; 20425 final int scrollX;
20426 20426
20427 @DomName('DOMWindow.scrollY') 20427 @DomName('Window.scrollY')
20428 @DocsEditable 20428 @DocsEditable
20429 final int scrollY; 20429 final int scrollY;
20430 20430
20431 @DomName('DOMWindow.scrollbars') 20431 @DomName('Window.scrollbars')
20432 @DocsEditable 20432 @DocsEditable
20433 final BarInfo scrollbars; 20433 final BarInfo scrollbars;
20434 20434
20435 WindowBase get self => _convertNativeToDart_Window(this._get_self); 20435 WindowBase get self => _convertNativeToDart_Window(this._get_self);
20436 @JSName('self') 20436 @JSName('self')
20437 @DomName('DOMWindow.self') 20437 @DomName('Window.self')
20438 @DocsEditable 20438 @DocsEditable
20439 @Creates('Window|=Object') 20439 @Creates('Window|=Object')
20440 @Returns('Window|=Object') 20440 @Returns('Window|=Object')
20441 final dynamic _get_self; 20441 final dynamic _get_self;
20442 20442
20443 @DomName('DOMWindow.sessionStorage') 20443 @DomName('Window.sessionStorage')
20444 @DocsEditable 20444 @DocsEditable
20445 final Storage sessionStorage; 20445 final Storage sessionStorage;
20446 20446
20447 @DomName('DOMWindow.status') 20447 @DomName('Window.status')
20448 @DocsEditable 20448 @DocsEditable
20449 String status; 20449 String status;
20450 20450
20451 @DomName('DOMWindow.statusbar') 20451 @DomName('Window.statusbar')
20452 @DocsEditable 20452 @DocsEditable
20453 final BarInfo statusbar; 20453 final BarInfo statusbar;
20454 20454
20455 @DomName('DOMWindow.styleMedia') 20455 @DomName('Window.styleMedia')
20456 @DocsEditable 20456 @DocsEditable
20457 final StyleMedia styleMedia; 20457 final StyleMedia styleMedia;
20458 20458
20459 @DomName('DOMWindow.toolbar') 20459 @DomName('Window.toolbar')
20460 @DocsEditable 20460 @DocsEditable
20461 final BarInfo toolbar; 20461 final BarInfo toolbar;
20462 20462
20463 WindowBase get top => _convertNativeToDart_Window(this._get_top); 20463 WindowBase get top => _convertNativeToDart_Window(this._get_top);
20464 @JSName('top') 20464 @JSName('top')
20465 @DomName('DOMWindow.top') 20465 @DomName('Window.top')
20466 @DocsEditable 20466 @DocsEditable
20467 @Creates('Window|=Object') 20467 @Creates('Window|=Object')
20468 @Returns('Window|=Object') 20468 @Returns('Window|=Object')
20469 final dynamic _get_top; 20469 final dynamic _get_top;
20470 20470
20471 @JSName('webkitNotifications') 20471 @JSName('webkitNotifications')
20472 @DomName('DOMWindow.webkitNotifications') 20472 @DomName('Window.webkitNotifications')
20473 @DocsEditable 20473 @DocsEditable
20474 @SupportedBrowser(SupportedBrowser.CHROME) 20474 @SupportedBrowser(SupportedBrowser.CHROME)
20475 @SupportedBrowser(SupportedBrowser.SAFARI) 20475 @SupportedBrowser(SupportedBrowser.SAFARI)
20476 @Experimental 20476 @Experimental
20477 final NotificationCenter notifications; 20477 final NotificationCenter notifications;
20478 20478
20479 @JSName('webkitStorageInfo') 20479 @JSName('webkitStorageInfo')
20480 @DomName('DOMWindow.webkitStorageInfo') 20480 @DomName('Window.webkitStorageInfo')
20481 @DocsEditable 20481 @DocsEditable
20482 @SupportedBrowser(SupportedBrowser.CHROME) 20482 @SupportedBrowser(SupportedBrowser.CHROME)
20483 @SupportedBrowser(SupportedBrowser.SAFARI) 20483 @SupportedBrowser(SupportedBrowser.SAFARI)
20484 @Experimental 20484 @Experimental
20485 final StorageInfo storageInfo; 20485 final StorageInfo storageInfo;
20486 20486
20487 WindowBase get window => _convertNativeToDart_Window(this._get_window); 20487 WindowBase get window => _convertNativeToDart_Window(this._get_window);
20488 @JSName('window') 20488 @JSName('window')
20489 @DomName('DOMWindow.window') 20489 @DomName('Window.window')
20490 @DocsEditable 20490 @DocsEditable
20491 @Creates('Window|=Object') 20491 @Creates('Window|=Object')
20492 @Returns('Window|=Object') 20492 @Returns('Window|=Object')
20493 final dynamic _get_window; 20493 final dynamic _get_window;
20494 20494
20495 @JSName('addEventListener') 20495 @JSName('addEventListener')
20496 @DomName('DOMWindow.addEventListener') 20496 @DomName('Window.addEventListener')
20497 @DocsEditable 20497 @DocsEditable
20498 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; 20498 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
20499 20499
20500 @DomName('DOMWindow.alert') 20500 @DomName('Window.alert')
20501 @DocsEditable 20501 @DocsEditable
20502 void alert(String message) native; 20502 void alert(String message) native;
20503 20503
20504 @DomName('DOMWindow.atob') 20504 @DomName('Window.atob')
20505 @DocsEditable 20505 @DocsEditable
20506 String atob(String string) native; 20506 String atob(String string) native;
20507 20507
20508 @DomName('DOMWindow.btoa') 20508 @DomName('Window.btoa')
20509 @DocsEditable 20509 @DocsEditable
20510 String btoa(String string) native; 20510 String btoa(String string) native;
20511 20511
20512 @DomName('DOMWindow.captureEvents') 20512 @DomName('Window.captureEvents')
20513 @DocsEditable 20513 @DocsEditable
20514 void captureEvents() native; 20514 void captureEvents() native;
20515 20515
20516 @JSName('clearInterval') 20516 @JSName('clearInterval')
20517 @DomName('DOMWindow.clearInterval') 20517 @DomName('Window.clearInterval')
20518 @DocsEditable 20518 @DocsEditable
20519 void _clearInterval(int handle) native; 20519 void _clearInterval(int handle) native;
20520 20520
20521 @JSName('clearTimeout') 20521 @JSName('clearTimeout')
20522 @DomName('DOMWindow.clearTimeout') 20522 @DomName('Window.clearTimeout')
20523 @DocsEditable 20523 @DocsEditable
20524 void _clearTimeout(int handle) native; 20524 void _clearTimeout(int handle) native;
20525 20525
20526 @DomName('DOMWindow.close') 20526 @DomName('Window.close')
20527 @DocsEditable 20527 @DocsEditable
20528 void close() native; 20528 void close() native;
20529 20529
20530 @DomName('DOMWindow.confirm') 20530 @DomName('Window.confirm')
20531 @DocsEditable 20531 @DocsEditable
20532 bool confirm(String message) native; 20532 bool confirm(String message) native;
20533 20533
20534 @DomName('DOMWindow.dispatchEvent') 20534 @DomName('Window.dispatchEvent')
20535 @DocsEditable 20535 @DocsEditable
20536 bool dispatchEvent(Event evt) native; 20536 bool dispatchEvent(Event evt) native;
20537 20537
20538 @DomName('DOMWindow.find') 20538 @DomName('Window.find')
20539 @DocsEditable 20539 @DocsEditable
20540 bool find(String string, bool caseSensitive, bool backwards, bool wrap, bool w holeWord, bool searchInFrames, bool showDialog) native; 20540 bool find(String string, bool caseSensitive, bool backwards, bool wrap, bool w holeWord, bool searchInFrames, bool showDialog) native;
20541 20541
20542 @JSName('getComputedStyle') 20542 @JSName('getComputedStyle')
20543 @DomName('DOMWindow.getComputedStyle') 20543 @DomName('Window.getComputedStyle')
20544 @DocsEditable 20544 @DocsEditable
20545 CssStyleDeclaration $dom_getComputedStyle(Element element, String pseudoElemen t) native; 20545 CssStyleDeclaration $dom_getComputedStyle(Element element, String pseudoElemen t) native;
20546 20546
20547 @JSName('getMatchedCSSRules') 20547 @JSName('getMatchedCSSRules')
20548 @DomName('DOMWindow.getMatchedCSSRules') 20548 @DomName('Window.getMatchedCSSRules')
20549 @DocsEditable 20549 @DocsEditable
20550 @Returns('_CssRuleList') 20550 @Returns('_CssRuleList')
20551 @Creates('_CssRuleList') 20551 @Creates('_CssRuleList')
20552 List<CssRule> getMatchedCssRules(Element element, String pseudoElement) native ; 20552 List<CssRule> getMatchedCssRules(Element element, String pseudoElement) native ;
20553 20553
20554 @DomName('DOMWindow.getSelection') 20554 @DomName('Window.getSelection')
20555 @DocsEditable 20555 @DocsEditable
20556 Selection getSelection() native; 20556 Selection getSelection() native;
20557 20557
20558 @DomName('DOMWindow.matchMedia') 20558 @DomName('Window.matchMedia')
20559 @DocsEditable 20559 @DocsEditable
20560 MediaQueryList matchMedia(String query) native; 20560 MediaQueryList matchMedia(String query) native;
20561 20561
20562 @DomName('DOMWindow.moveBy') 20562 @DomName('Window.moveBy')
20563 @DocsEditable 20563 @DocsEditable
20564 void moveBy(num x, num y) native; 20564 void moveBy(num x, num y) native;
20565 20565
20566 @DomName('DOMWindow.moveTo') 20566 @DomName('Window.moveTo')
20567 @DocsEditable 20567 @DocsEditable
20568 void moveTo(num x, num y) native; 20568 void moveTo(num x, num y) native;
20569 20569
20570 @DomName('DOMWindow.openDatabase') 20570 @DomName('Window.openDatabase')
20571 @DocsEditable 20571 @DocsEditable
20572 @SupportedBrowser(SupportedBrowser.CHROME) 20572 @SupportedBrowser(SupportedBrowser.CHROME)
20573 @SupportedBrowser(SupportedBrowser.SAFARI) 20573 @SupportedBrowser(SupportedBrowser.SAFARI)
20574 @Experimental 20574 @Experimental
20575 @Creates('SqlDatabase') 20575 @Creates('SqlDatabase')
20576 SqlDatabase openDatabase(String name, String version, String displayName, int estimatedSize, [DatabaseCallback creationCallback]) native; 20576 SqlDatabase openDatabase(String name, String version, String displayName, int estimatedSize, [DatabaseCallback creationCallback]) native;
20577 20577
20578 @DomName('DOMWindow.postMessage') 20578 @DomName('Window.postMessage')
20579 @DocsEditable 20579 @DocsEditable
20580 void postMessage(/*SerializedScriptValue*/ message, String targetOrigin, [List messagePorts]) { 20580 void postMessage(/*SerializedScriptValue*/ message, String targetOrigin, [List messagePorts]) {
20581 if (?messagePorts) { 20581 if (?messagePorts) {
20582 var message_1 = convertDartToNative_SerializedScriptValue(message); 20582 var message_1 = convertDartToNative_SerializedScriptValue(message);
20583 _postMessage_1(message_1, targetOrigin, messagePorts); 20583 _postMessage_1(message_1, targetOrigin, messagePorts);
20584 return; 20584 return;
20585 } 20585 }
20586 var message_2 = convertDartToNative_SerializedScriptValue(message); 20586 var message_2 = convertDartToNative_SerializedScriptValue(message);
20587 _postMessage_2(message_2, targetOrigin); 20587 _postMessage_2(message_2, targetOrigin);
20588 return; 20588 return;
20589 } 20589 }
20590 @JSName('postMessage') 20590 @JSName('postMessage')
20591 @DomName('DOMWindow.postMessage') 20591 @DomName('Window.postMessage')
20592 @DocsEditable 20592 @DocsEditable
20593 void _postMessage_1(message, targetOrigin, List messagePorts) native; 20593 void _postMessage_1(message, targetOrigin, List messagePorts) native;
20594 @JSName('postMessage') 20594 @JSName('postMessage')
20595 @DomName('DOMWindow.postMessage') 20595 @DomName('Window.postMessage')
20596 @DocsEditable 20596 @DocsEditable
20597 void _postMessage_2(message, targetOrigin) native; 20597 void _postMessage_2(message, targetOrigin) native;
20598 20598
20599 @DomName('DOMWindow.print') 20599 @DomName('Window.print')
20600 @DocsEditable 20600 @DocsEditable
20601 void print() native; 20601 void print() native;
20602 20602
20603 @DomName('DOMWindow.releaseEvents') 20603 @DomName('Window.releaseEvents')
20604 @DocsEditable 20604 @DocsEditable
20605 void releaseEvents() native; 20605 void releaseEvents() native;
20606 20606
20607 @JSName('removeEventListener') 20607 @JSName('removeEventListener')
20608 @DomName('DOMWindow.removeEventListener') 20608 @DomName('Window.removeEventListener')
20609 @DocsEditable 20609 @DocsEditable
20610 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; 20610 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native;
20611 20611
20612 @DomName('DOMWindow.resizeBy') 20612 @DomName('Window.resizeBy')
20613 @DocsEditable 20613 @DocsEditable
20614 void resizeBy(num x, num y) native; 20614 void resizeBy(num x, num y) native;
20615 20615
20616 @DomName('DOMWindow.resizeTo') 20616 @DomName('Window.resizeTo')
20617 @DocsEditable 20617 @DocsEditable
20618 void resizeTo(num width, num height) native; 20618 void resizeTo(num width, num height) native;
20619 20619
20620 @DomName('DOMWindow.scroll') 20620 @DomName('Window.scroll')
20621 @DocsEditable 20621 @DocsEditable
20622 void scroll(int x, int y) native; 20622 void scroll(int x, int y) native;
20623 20623
20624 @DomName('DOMWindow.scrollBy') 20624 @DomName('Window.scrollBy')
20625 @DocsEditable 20625 @DocsEditable
20626 void scrollBy(int x, int y) native; 20626 void scrollBy(int x, int y) native;
20627 20627
20628 @DomName('DOMWindow.scrollTo') 20628 @DomName('Window.scrollTo')
20629 @DocsEditable 20629 @DocsEditable
20630 void scrollTo(int x, int y) native; 20630 void scrollTo(int x, int y) native;
20631 20631
20632 @JSName('setInterval') 20632 @JSName('setInterval')
20633 @DomName('DOMWindow.setInterval') 20633 @DomName('Window.setInterval')
20634 @DocsEditable 20634 @DocsEditable
20635 int _setInterval(Object handler, int timeout) native; 20635 int _setInterval(Object handler, int timeout) native;
20636 20636
20637 @JSName('setTimeout') 20637 @JSName('setTimeout')
20638 @DomName('DOMWindow.setTimeout') 20638 @DomName('Window.setTimeout')
20639 @DocsEditable 20639 @DocsEditable
20640 int _setTimeout(Object handler, int timeout) native; 20640 int _setTimeout(Object handler, int timeout) native;
20641 20641
20642 @DomName('DOMWindow.showModalDialog') 20642 @DomName('Window.showModalDialog')
20643 @DocsEditable 20643 @DocsEditable
20644 Object showModalDialog(String url, [Object dialogArgs, String featureArgs]) na tive; 20644 Object showModalDialog(String url, [Object dialogArgs, String featureArgs]) na tive;
20645 20645
20646 @DomName('DOMWindow.stop') 20646 @DomName('Window.stop')
20647 @DocsEditable 20647 @DocsEditable
20648 void stop() native; 20648 void stop() native;
20649 20649
20650 @DomName('DOMWindow.toString') 20650 @DomName('Window.toString')
20651 @DocsEditable 20651 @DocsEditable
20652 String toString() native; 20652 String toString() native;
20653 20653
20654 @JSName('webkitConvertPointFromNodeToPage') 20654 @JSName('webkitConvertPointFromNodeToPage')
20655 @DomName('DOMWindow.webkitConvertPointFromNodeToPage') 20655 @DomName('Window.webkitConvertPointFromNodeToPage')
20656 @DocsEditable 20656 @DocsEditable
20657 @SupportedBrowser(SupportedBrowser.CHROME) 20657 @SupportedBrowser(SupportedBrowser.CHROME)
20658 @SupportedBrowser(SupportedBrowser.SAFARI) 20658 @SupportedBrowser(SupportedBrowser.SAFARI)
20659 @Experimental 20659 @Experimental
20660 _DomPoint _convertPointFromNodeToPage(Node node, _DomPoint p) native; 20660 _DomPoint _convertPointFromNodeToPage(Node node, _DomPoint p) native;
20661 20661
20662 @JSName('webkitConvertPointFromPageToNode') 20662 @JSName('webkitConvertPointFromPageToNode')
20663 @DomName('DOMWindow.webkitConvertPointFromPageToNode') 20663 @DomName('Window.webkitConvertPointFromPageToNode')
20664 @DocsEditable 20664 @DocsEditable
20665 @SupportedBrowser(SupportedBrowser.CHROME) 20665 @SupportedBrowser(SupportedBrowser.CHROME)
20666 @SupportedBrowser(SupportedBrowser.SAFARI) 20666 @SupportedBrowser(SupportedBrowser.SAFARI)
20667 @Experimental 20667 @Experimental
20668 _DomPoint _convertPointFromPageToNode(Node node, _DomPoint p) native; 20668 _DomPoint _convertPointFromPageToNode(Node node, _DomPoint p) native;
20669 20669
20670 @JSName('webkitRequestFileSystem') 20670 @JSName('webkitRequestFileSystem')
20671 @DomName('DOMWindow.webkitRequestFileSystem') 20671 @DomName('Window.webkitRequestFileSystem')
20672 @DocsEditable 20672 @DocsEditable
20673 @SupportedBrowser(SupportedBrowser.CHROME) 20673 @SupportedBrowser(SupportedBrowser.CHROME)
20674 @Experimental 20674 @Experimental
20675 void __requestFileSystem(int type, int size, _FileSystemCallback successCallba ck, [_ErrorCallback errorCallback]) native; 20675 void __requestFileSystem(int type, int size, _FileSystemCallback successCallba ck, [_ErrorCallback errorCallback]) native;
20676 20676
20677 @JSName('webkitRequestFileSystem') 20677 @JSName('webkitRequestFileSystem')
20678 @DomName('DOMWindow.webkitRequestFileSystem') 20678 @DomName('Window.webkitRequestFileSystem')
20679 @DocsEditable 20679 @DocsEditable
20680 @SupportedBrowser(SupportedBrowser.CHROME) 20680 @SupportedBrowser(SupportedBrowser.CHROME)
20681 @Experimental 20681 @Experimental
20682 Future<FileSystem> _requestFileSystem(int type, int size) { 20682 Future<FileSystem> _requestFileSystem(int type, int size) {
20683 var completer = new Completer<FileSystem>(); 20683 var completer = new Completer<FileSystem>();
20684 __requestFileSystem(type, size, 20684 __requestFileSystem(type, size,
20685 (value) { completer.complete(value); }, 20685 (value) { completer.complete(value); },
20686 (error) { completer.completeError(error); }); 20686 (error) { completer.completeError(error); });
20687 return completer.future; 20687 return completer.future;
20688 } 20688 }
20689 20689
20690 @JSName('webkitResolveLocalFileSystemURL') 20690 @JSName('webkitResolveLocalFileSystemURL')
20691 @DomName('DOMWindow.webkitResolveLocalFileSystemURL') 20691 @DomName('Window.webkitResolveLocalFileSystemURL')
20692 @DocsEditable 20692 @DocsEditable
20693 @SupportedBrowser(SupportedBrowser.CHROME) 20693 @SupportedBrowser(SupportedBrowser.CHROME)
20694 @Experimental 20694 @Experimental
20695 void _resolveLocalFileSystemUrl(String url, _EntryCallback successCallback, [_ ErrorCallback errorCallback]) native; 20695 void _resolveLocalFileSystemUrl(String url, _EntryCallback successCallback, [_ ErrorCallback errorCallback]) native;
20696 20696
20697 @JSName('webkitResolveLocalFileSystemURL') 20697 @JSName('webkitResolveLocalFileSystemURL')
20698 @DomName('DOMWindow.webkitResolveLocalFileSystemURL') 20698 @DomName('Window.webkitResolveLocalFileSystemURL')
20699 @DocsEditable 20699 @DocsEditable
20700 @SupportedBrowser(SupportedBrowser.CHROME) 20700 @SupportedBrowser(SupportedBrowser.CHROME)
20701 @Experimental 20701 @Experimental
20702 Future<Entry> resolveLocalFileSystemUrl(String url) { 20702 Future<Entry> resolveLocalFileSystemUrl(String url) {
20703 var completer = new Completer<Entry>(); 20703 var completer = new Completer<Entry>();
20704 _resolveLocalFileSystemUrl(url, 20704 _resolveLocalFileSystemUrl(url,
20705 (value) { completer.complete(value); }, 20705 (value) { completer.complete(value); },
20706 (error) { completer.completeError(error); }); 20706 (error) { completer.completeError(error); });
20707 return completer.future; 20707 return completer.future;
20708 } 20708 }
20709 20709
20710 @DomName('DOMWindow.onDOMContentLoaded') 20710 @DomName('Window.onDOMContentLoaded')
20711 @DocsEditable 20711 @DocsEditable
20712 Stream<Event> get onContentLoaded => contentLoadedEvent.forTarget(this); 20712 Stream<Event> get onContentLoaded => contentLoadedEvent.forTarget(this);
20713 20713
20714 @DomName('DOMWindow.onabort') 20714 @DomName('Window.onabort')
20715 @DocsEditable 20715 @DocsEditable
20716 Stream<Event> get onAbort => Element.abortEvent.forTarget(this); 20716 Stream<Event> get onAbort => Element.abortEvent.forTarget(this);
20717 20717
20718 @DomName('DOMWindow.onblur') 20718 @DomName('Window.onblur')
20719 @DocsEditable 20719 @DocsEditable
20720 Stream<Event> get onBlur => Element.blurEvent.forTarget(this); 20720 Stream<Event> get onBlur => Element.blurEvent.forTarget(this);
20721 20721
20722 @DomName('DOMWindow.onchange') 20722 @DomName('Window.onchange')
20723 @DocsEditable 20723 @DocsEditable
20724 Stream<Event> get onChange => Element.changeEvent.forTarget(this); 20724 Stream<Event> get onChange => Element.changeEvent.forTarget(this);
20725 20725
20726 @DomName('DOMWindow.onclick') 20726 @DomName('Window.onclick')
20727 @DocsEditable 20727 @DocsEditable
20728 Stream<MouseEvent> get onClick => Element.clickEvent.forTarget(this); 20728 Stream<MouseEvent> get onClick => Element.clickEvent.forTarget(this);
20729 20729
20730 @DomName('DOMWindow.oncontextmenu') 20730 @DomName('Window.oncontextmenu')
20731 @DocsEditable 20731 @DocsEditable
20732 Stream<MouseEvent> get onContextMenu => Element.contextMenuEvent.forTarget(thi s); 20732 Stream<MouseEvent> get onContextMenu => Element.contextMenuEvent.forTarget(thi s);
20733 20733
20734 @DomName('DOMWindow.ondblclick') 20734 @DomName('Window.ondblclick')
20735 @DocsEditable 20735 @DocsEditable
20736 Stream<Event> get onDoubleClick => Element.doubleClickEvent.forTarget(this); 20736 Stream<Event> get onDoubleClick => Element.doubleClickEvent.forTarget(this);
20737 20737
20738 @DomName('DOMWindow.ondevicemotion') 20738 @DomName('Window.ondevicemotion')
20739 @DocsEditable 20739 @DocsEditable
20740 Stream<DeviceMotionEvent> get onDeviceMotion => deviceMotionEvent.forTarget(th is); 20740 Stream<DeviceMotionEvent> get onDeviceMotion => deviceMotionEvent.forTarget(th is);
20741 20741
20742 @DomName('DOMWindow.ondeviceorientation') 20742 @DomName('Window.ondeviceorientation')
20743 @DocsEditable 20743 @DocsEditable
20744 Stream<DeviceOrientationEvent> get onDeviceOrientation => deviceOrientationEve nt.forTarget(this); 20744 Stream<DeviceOrientationEvent> get onDeviceOrientation => deviceOrientationEve nt.forTarget(this);
20745 20745
20746 @DomName('DOMWindow.ondrag') 20746 @DomName('Window.ondrag')
20747 @DocsEditable 20747 @DocsEditable
20748 Stream<MouseEvent> get onDrag => Element.dragEvent.forTarget(this); 20748 Stream<MouseEvent> get onDrag => Element.dragEvent.forTarget(this);
20749 20749
20750 @DomName('DOMWindow.ondragend') 20750 @DomName('Window.ondragend')
20751 @DocsEditable 20751 @DocsEditable
20752 Stream<MouseEvent> get onDragEnd => Element.dragEndEvent.forTarget(this); 20752 Stream<MouseEvent> get onDragEnd => Element.dragEndEvent.forTarget(this);
20753 20753
20754 @DomName('DOMWindow.ondragenter') 20754 @DomName('Window.ondragenter')
20755 @DocsEditable 20755 @DocsEditable
20756 Stream<MouseEvent> get onDragEnter => Element.dragEnterEvent.forTarget(this); 20756 Stream<MouseEvent> get onDragEnter => Element.dragEnterEvent.forTarget(this);
20757 20757
20758 @DomName('DOMWindow.ondragleave') 20758 @DomName('Window.ondragleave')
20759 @DocsEditable 20759 @DocsEditable
20760 Stream<MouseEvent> get onDragLeave => Element.dragLeaveEvent.forTarget(this); 20760 Stream<MouseEvent> get onDragLeave => Element.dragLeaveEvent.forTarget(this);
20761 20761
20762 @DomName('DOMWindow.ondragover') 20762 @DomName('Window.ondragover')
20763 @DocsEditable 20763 @DocsEditable
20764 Stream<MouseEvent> get onDragOver => Element.dragOverEvent.forTarget(this); 20764 Stream<MouseEvent> get onDragOver => Element.dragOverEvent.forTarget(this);
20765 20765
20766 @DomName('DOMWindow.ondragstart') 20766 @DomName('Window.ondragstart')
20767 @DocsEditable 20767 @DocsEditable
20768 Stream<MouseEvent> get onDragStart => Element.dragStartEvent.forTarget(this); 20768 Stream<MouseEvent> get onDragStart => Element.dragStartEvent.forTarget(this);
20769 20769
20770 @DomName('DOMWindow.ondrop') 20770 @DomName('Window.ondrop')
20771 @DocsEditable 20771 @DocsEditable
20772 Stream<MouseEvent> get onDrop => Element.dropEvent.forTarget(this); 20772 Stream<MouseEvent> get onDrop => Element.dropEvent.forTarget(this);
20773 20773
20774 @DomName('DOMWindow.onerror') 20774 @DomName('Window.onerror')
20775 @DocsEditable 20775 @DocsEditable
20776 Stream<Event> get onError => Element.errorEvent.forTarget(this); 20776 Stream<Event> get onError => Element.errorEvent.forTarget(this);
20777 20777
20778 @DomName('DOMWindow.onfocus') 20778 @DomName('Window.onfocus')
20779 @DocsEditable 20779 @DocsEditable
20780 Stream<Event> get onFocus => Element.focusEvent.forTarget(this); 20780 Stream<Event> get onFocus => Element.focusEvent.forTarget(this);
20781 20781
20782 @DomName('DOMWindow.onhashchange') 20782 @DomName('Window.onhashchange')
20783 @DocsEditable 20783 @DocsEditable
20784 Stream<Event> get onHashChange => hashChangeEvent.forTarget(this); 20784 Stream<Event> get onHashChange => hashChangeEvent.forTarget(this);
20785 20785
20786 @DomName('DOMWindow.oninput') 20786 @DomName('Window.oninput')
20787 @DocsEditable 20787 @DocsEditable
20788 Stream<Event> get onInput => Element.inputEvent.forTarget(this); 20788 Stream<Event> get onInput => Element.inputEvent.forTarget(this);
20789 20789
20790 @DomName('DOMWindow.oninvalid') 20790 @DomName('Window.oninvalid')
20791 @DocsEditable 20791 @DocsEditable
20792 Stream<Event> get onInvalid => Element.invalidEvent.forTarget(this); 20792 Stream<Event> get onInvalid => Element.invalidEvent.forTarget(this);
20793 20793
20794 @DomName('DOMWindow.onkeydown') 20794 @DomName('Window.onkeydown')
20795 @DocsEditable 20795 @DocsEditable
20796 Stream<KeyboardEvent> get onKeyDown => Element.keyDownEvent.forTarget(this); 20796 Stream<KeyboardEvent> get onKeyDown => Element.keyDownEvent.forTarget(this);
20797 20797
20798 @DomName('DOMWindow.onkeypress') 20798 @DomName('Window.onkeypress')
20799 @DocsEditable 20799 @DocsEditable
20800 Stream<KeyboardEvent> get onKeyPress => Element.keyPressEvent.forTarget(this); 20800 Stream<KeyboardEvent> get onKeyPress => Element.keyPressEvent.forTarget(this);
20801 20801
20802 @DomName('DOMWindow.onkeyup') 20802 @DomName('Window.onkeyup')
20803 @DocsEditable 20803 @DocsEditable
20804 Stream<KeyboardEvent> get onKeyUp => Element.keyUpEvent.forTarget(this); 20804 Stream<KeyboardEvent> get onKeyUp => Element.keyUpEvent.forTarget(this);
20805 20805
20806 @DomName('DOMWindow.onload') 20806 @DomName('Window.onload')
20807 @DocsEditable 20807 @DocsEditable
20808 Stream<Event> get onLoad => Element.loadEvent.forTarget(this); 20808 Stream<Event> get onLoad => Element.loadEvent.forTarget(this);
20809 20809
20810 @DomName('DOMWindow.onmessage') 20810 @DomName('Window.onmessage')
20811 @DocsEditable 20811 @DocsEditable
20812 Stream<MessageEvent> get onMessage => messageEvent.forTarget(this); 20812 Stream<MessageEvent> get onMessage => messageEvent.forTarget(this);
20813 20813
20814 @DomName('DOMWindow.onmousedown') 20814 @DomName('Window.onmousedown')
20815 @DocsEditable 20815 @DocsEditable
20816 Stream<MouseEvent> get onMouseDown => Element.mouseDownEvent.forTarget(this); 20816 Stream<MouseEvent> get onMouseDown => Element.mouseDownEvent.forTarget(this);
20817 20817
20818 @DomName('DOMWindow.onmousemove') 20818 @DomName('Window.onmousemove')
20819 @DocsEditable 20819 @DocsEditable
20820 Stream<MouseEvent> get onMouseMove => Element.mouseMoveEvent.forTarget(this); 20820 Stream<MouseEvent> get onMouseMove => Element.mouseMoveEvent.forTarget(this);
20821 20821
20822 @DomName('DOMWindow.onmouseout') 20822 @DomName('Window.onmouseout')
20823 @DocsEditable 20823 @DocsEditable
20824 Stream<MouseEvent> get onMouseOut => Element.mouseOutEvent.forTarget(this); 20824 Stream<MouseEvent> get onMouseOut => Element.mouseOutEvent.forTarget(this);
20825 20825
20826 @DomName('DOMWindow.onmouseover') 20826 @DomName('Window.onmouseover')
20827 @DocsEditable 20827 @DocsEditable
20828 Stream<MouseEvent> get onMouseOver => Element.mouseOverEvent.forTarget(this); 20828 Stream<MouseEvent> get onMouseOver => Element.mouseOverEvent.forTarget(this);
20829 20829
20830 @DomName('DOMWindow.onmouseup') 20830 @DomName('Window.onmouseup')
20831 @DocsEditable 20831 @DocsEditable
20832 Stream<MouseEvent> get onMouseUp => Element.mouseUpEvent.forTarget(this); 20832 Stream<MouseEvent> get onMouseUp => Element.mouseUpEvent.forTarget(this);
20833 20833
20834 @DomName('DOMWindow.onmousewheel') 20834 @DomName('Window.onmousewheel')
20835 @DocsEditable 20835 @DocsEditable
20836 Stream<WheelEvent> get onMouseWheel => Element.mouseWheelEvent.forTarget(this) ; 20836 Stream<WheelEvent> get onMouseWheel => Element.mouseWheelEvent.forTarget(this) ;
20837 20837
20838 @DomName('DOMWindow.onoffline') 20838 @DomName('Window.onoffline')
20839 @DocsEditable 20839 @DocsEditable
20840 Stream<Event> get onOffline => offlineEvent.forTarget(this); 20840 Stream<Event> get onOffline => offlineEvent.forTarget(this);
20841 20841
20842 @DomName('DOMWindow.ononline') 20842 @DomName('Window.ononline')
20843 @DocsEditable 20843 @DocsEditable
20844 Stream<Event> get onOnline => onlineEvent.forTarget(this); 20844 Stream<Event> get onOnline => onlineEvent.forTarget(this);
20845 20845
20846 @DomName('DOMWindow.onpagehide') 20846 @DomName('Window.onpagehide')
20847 @DocsEditable 20847 @DocsEditable
20848 Stream<Event> get onPageHide => pageHideEvent.forTarget(this); 20848 Stream<Event> get onPageHide => pageHideEvent.forTarget(this);
20849 20849
20850 @DomName('DOMWindow.onpageshow') 20850 @DomName('Window.onpageshow')
20851 @DocsEditable 20851 @DocsEditable
20852 Stream<Event> get onPageShow => pageShowEvent.forTarget(this); 20852 Stream<Event> get onPageShow => pageShowEvent.forTarget(this);
20853 20853
20854 @DomName('DOMWindow.onpopstate') 20854 @DomName('Window.onpopstate')
20855 @DocsEditable 20855 @DocsEditable
20856 Stream<PopStateEvent> get onPopState => popStateEvent.forTarget(this); 20856 Stream<PopStateEvent> get onPopState => popStateEvent.forTarget(this);
20857 20857
20858 @DomName('DOMWindow.onreset') 20858 @DomName('Window.onreset')
20859 @DocsEditable 20859 @DocsEditable
20860 Stream<Event> get onReset => Element.resetEvent.forTarget(this); 20860 Stream<Event> get onReset => Element.resetEvent.forTarget(this);
20861 20861
20862 @DomName('DOMWindow.onresize') 20862 @DomName('Window.onresize')
20863 @DocsEditable 20863 @DocsEditable
20864 Stream<Event> get onResize => resizeEvent.forTarget(this); 20864 Stream<Event> get onResize => resizeEvent.forTarget(this);
20865 20865
20866 @DomName('DOMWindow.onscroll') 20866 @DomName('Window.onscroll')
20867 @DocsEditable 20867 @DocsEditable
20868 Stream<Event> get onScroll => Element.scrollEvent.forTarget(this); 20868 Stream<Event> get onScroll => Element.scrollEvent.forTarget(this);
20869 20869
20870 @DomName('DOMWindow.onsearch') 20870 @DomName('Window.onsearch')
20871 @DocsEditable 20871 @DocsEditable
20872 Stream<Event> get onSearch => Element.searchEvent.forTarget(this); 20872 Stream<Event> get onSearch => Element.searchEvent.forTarget(this);
20873 20873
20874 @DomName('DOMWindow.onselect') 20874 @DomName('Window.onselect')
20875 @DocsEditable 20875 @DocsEditable
20876 Stream<Event> get onSelect => Element.selectEvent.forTarget(this); 20876 Stream<Event> get onSelect => Element.selectEvent.forTarget(this);
20877 20877
20878 @DomName('DOMWindow.onstorage') 20878 @DomName('Window.onstorage')
20879 @DocsEditable 20879 @DocsEditable
20880 Stream<StorageEvent> get onStorage => storageEvent.forTarget(this); 20880 Stream<StorageEvent> get onStorage => storageEvent.forTarget(this);
20881 20881
20882 @DomName('DOMWindow.onsubmit') 20882 @DomName('Window.onsubmit')
20883 @DocsEditable 20883 @DocsEditable
20884 Stream<Event> get onSubmit => Element.submitEvent.forTarget(this); 20884 Stream<Event> get onSubmit => Element.submitEvent.forTarget(this);
20885 20885
20886 @DomName('DOMWindow.ontouchcancel') 20886 @DomName('Window.ontouchcancel')
20887 @DocsEditable 20887 @DocsEditable
20888 Stream<TouchEvent> get onTouchCancel => Element.touchCancelEvent.forTarget(thi s); 20888 Stream<TouchEvent> get onTouchCancel => Element.touchCancelEvent.forTarget(thi s);
20889 20889
20890 @DomName('DOMWindow.ontouchend') 20890 @DomName('Window.ontouchend')
20891 @DocsEditable 20891 @DocsEditable
20892 Stream<TouchEvent> get onTouchEnd => Element.touchEndEvent.forTarget(this); 20892 Stream<TouchEvent> get onTouchEnd => Element.touchEndEvent.forTarget(this);
20893 20893
20894 @DomName('DOMWindow.ontouchmove') 20894 @DomName('Window.ontouchmove')
20895 @DocsEditable 20895 @DocsEditable
20896 Stream<TouchEvent> get onTouchMove => Element.touchMoveEvent.forTarget(this); 20896 Stream<TouchEvent> get onTouchMove => Element.touchMoveEvent.forTarget(this);
20897 20897
20898 @DomName('DOMWindow.ontouchstart') 20898 @DomName('Window.ontouchstart')
20899 @DocsEditable 20899 @DocsEditable
20900 Stream<TouchEvent> get onTouchStart => Element.touchStartEvent.forTarget(this) ; 20900 Stream<TouchEvent> get onTouchStart => Element.touchStartEvent.forTarget(this) ;
20901 20901
20902 @DomName('DOMWindow.onunload') 20902 @DomName('Window.onunload')
20903 @DocsEditable 20903 @DocsEditable
20904 Stream<Event> get onUnload => unloadEvent.forTarget(this); 20904 Stream<Event> get onUnload => unloadEvent.forTarget(this);
20905 20905
20906 @DomName('DOMWindow.onwebkitAnimationEnd') 20906 @DomName('Window.onwebkitAnimationEnd')
20907 @DocsEditable 20907 @DocsEditable
20908 Stream<AnimationEvent> get onAnimationEnd => animationEndEvent.forTarget(this) ; 20908 Stream<AnimationEvent> get onAnimationEnd => animationEndEvent.forTarget(this) ;
20909 20909
20910 @DomName('DOMWindow.onwebkitAnimationIteration') 20910 @DomName('Window.onwebkitAnimationIteration')
20911 @DocsEditable 20911 @DocsEditable
20912 Stream<AnimationEvent> get onAnimationIteration => animationIterationEvent.for Target(this); 20912 Stream<AnimationEvent> get onAnimationIteration => animationIterationEvent.for Target(this);
20913 20913
20914 @DomName('DOMWindow.onwebkitAnimationStart') 20914 @DomName('Window.onwebkitAnimationStart')
20915 @DocsEditable 20915 @DocsEditable
20916 Stream<AnimationEvent> get onAnimationStart => animationStartEvent.forTarget(t his); 20916 Stream<AnimationEvent> get onAnimationStart => animationStartEvent.forTarget(t his);
20917 20917
20918 @DomName('DOMWindow.onwebkitTransitionEnd') 20918 @DomName('Window.onwebkitTransitionEnd')
20919 @DocsEditable 20919 @DocsEditable
20920 Stream<TransitionEvent> get onTransitionEnd => Element.transitionEndEvent.forT arget(this); 20920 Stream<TransitionEvent> get onTransitionEnd => Element.transitionEndEvent.forT arget(this);
20921 20921
20922 20922
20923 @DomName('DOMWindow.beforeunloadEvent') 20923 @DomName('DOMWindow.beforeunloadEvent')
20924 @DocsEditable 20924 @DocsEditable
20925 static const EventStreamProvider<BeforeUnloadEvent> beforeUnloadEvent = 20925 static const EventStreamProvider<BeforeUnloadEvent> beforeUnloadEvent =
20926 const _BeforeUnloadEventStreamProvider('beforeunload'); 20926 const _BeforeUnloadEventStreamProvider('beforeunload');
20927 20927
20928 @DomName('DOMWindow.onbeforeunload') 20928 @DomName('DOMWindow.onbeforeunload')
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
21547 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21547 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21548 // for details. All rights reserved. Use of this source code is governed by a 21548 // for details. All rights reserved. Use of this source code is governed by a
21549 // BSD-style license that can be found in the LICENSE file. 21549 // BSD-style license that can be found in the LICENSE file.
21550 21550
21551 21551
21552 @DocsEditable 21552 @DocsEditable
21553 @DomName('WebKitPoint') 21553 @DomName('WebKitPoint')
21554 @SupportedBrowser(SupportedBrowser.CHROME) 21554 @SupportedBrowser(SupportedBrowser.CHROME)
21555 @SupportedBrowser(SupportedBrowser.SAFARI) 21555 @SupportedBrowser(SupportedBrowser.SAFARI)
21556 @Experimental 21556 @Experimental
21557 @SupportedBrowser(SupportedBrowser.CHROME)
21558 @SupportedBrowser(SupportedBrowser.SAFARI)
21559 @Experimental
21560 class _DomPoint native "WebKitPoint" { 21557 class _DomPoint native "WebKitPoint" {
21561 21558
21562 @DomName('DOMPoint.DOMPoint') 21559 @DomName('WebKitPoint.DOMPoint')
21563 @DocsEditable 21560 @DocsEditable
21564 factory _DomPoint(num x, num y) { 21561 factory _DomPoint(num x, num y) {
21565 return _DomPoint._create_1(x, y); 21562 return _DomPoint._create_1(x, y);
21566 } 21563 }
21567 static _DomPoint _create_1(x, y) => JS('_DomPoint', 'new WebKitPoint(#,#)', x, y); 21564 static _DomPoint _create_1(x, y) => JS('_DomPoint', 'new WebKitPoint(#,#)', x, y);
21568 21565
21569 /// Checks if this type is supported on the current platform. 21566 /// Checks if this type is supported on the current platform.
21570 static bool get supported => JS('bool', '!!(window.WebKitPoint)'); 21567 static bool get supported => JS('bool', '!!(window.WebKitPoint)');
21571 21568
21572 @DomName('DOMPoint.x') 21569 @DomName('WebKitPoint.x')
21573 @DocsEditable 21570 @DocsEditable
21574 num x; 21571 num x;
21575 21572
21576 @DomName('DOMPoint.y') 21573 @DomName('WebKitPoint.y')
21577 @DocsEditable 21574 @DocsEditable
21578 num y; 21575 num y;
21579 } 21576 }
21580 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21577 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21581 // for details. All rights reserved. Use of this source code is governed by a 21578 // for details. All rights reserved. Use of this source code is governed by a
21582 // BSD-style license that can be found in the LICENSE file. 21579 // BSD-style license that can be found in the LICENSE file.
21583 21580
21584 21581
21585 @DocsEditable 21582 @DocsEditable
21586 @DomName('EntityReference') 21583 @DomName('EntityReference')
(...skipping 3990 matching lines...) Expand 10 before | Expand all | Expand 10 after
25577 _position = nextPosition; 25574 _position = nextPosition;
25578 return true; 25575 return true;
25579 } 25576 }
25580 _current = null; 25577 _current = null;
25581 _position = _array.length; 25578 _position = _array.length;
25582 return false; 25579 return false;
25583 } 25580 }
25584 25581
25585 T get current => _current; 25582 T get current => _current;
25586 } 25583 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698