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

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

Issue 11415184: Adding @domName annotations to impl files what were missing them. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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 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 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 427
428 // WARNING: Do not edit - generated code. 428 // WARNING: Do not edit - generated code.
429 429
430 430
431 typedef void AudioBufferCallback(AudioBuffer audioBuffer); 431 typedef void AudioBufferCallback(AudioBuffer audioBuffer);
432 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 432 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
433 // for details. All rights reserved. Use of this source code is governed by a 433 // for details. All rights reserved. Use of this source code is governed by a
434 // BSD-style license that can be found in the LICENSE file. 434 // BSD-style license that can be found in the LICENSE file.
435 435
436 436
437 /// @domName AudioBufferSourceNode
437 class AudioBufferSourceNode extends AudioSourceNode native "*AudioBufferSourceNo de" { 438 class AudioBufferSourceNode extends AudioSourceNode native "*AudioBufferSourceNo de" {
438 439
439 // TODO(efortuna): Remove these methods when Chrome stable also uses start 440 // TODO(efortuna): Remove these methods when Chrome stable also uses start
440 // instead of noteOn. 441 // instead of noteOn.
441 void start(num when, [num grainOffset, num grainDuration]) { 442 void start(num when, [num grainOffset, num grainDuration]) {
442 if (JS('bool', '!!#.start', this)) { 443 if (JS('bool', '!!#.start', this)) {
443 if (?grainDuration) { 444 if (?grainDuration) {
444 JS('void', '#.start(#, #, #)', this, when, grainOffset, grainDuration); 445 JS('void', '#.start(#, #, #)', this, when, grainOffset, grainDuration);
445 } else if (?grainOffset) { 446 } else if (?grainOffset) {
446 JS('void', '#.start(#, #)', this, when, grainOffset); 447 JS('void', '#.start(#, #)', this, when, grainOffset);
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 495
495 /// @domName AudioBufferSourceNode.playbackState; @docsEditable true 496 /// @domName AudioBufferSourceNode.playbackState; @docsEditable true
496 final int playbackState; 497 final int playbackState;
497 498
498 } 499 }
499 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 500 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
500 // for details. All rights reserved. Use of this source code is governed by a 501 // for details. All rights reserved. Use of this source code is governed by a
501 // BSD-style license that can be found in the LICENSE file. 502 // BSD-style license that can be found in the LICENSE file.
502 503
503 504
505 /// @domName AudioContext
504 class AudioContext extends EventTarget native "*AudioContext" { 506 class AudioContext extends EventTarget native "*AudioContext" {
505 factory AudioContext() => _AudioContextFactoryProvider.createAudioContext(); 507 factory AudioContext() => _AudioContextFactoryProvider.createAudioContext();
506 508
507 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev entTarget.dispatchEvent; @docsEditable true 509 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev entTarget.dispatchEvent; @docsEditable true
508 AudioContextEvents get on => 510 AudioContextEvents get on =>
509 new AudioContextEvents(this); 511 new AudioContextEvents(this);
510 512
511 /// @domName AudioContext.activeSourceCount; @docsEditable true 513 /// @domName AudioContext.activeSourceCount; @docsEditable true
512 final int activeSourceCount; 514 final int activeSourceCount;
513 515
(...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after
1424 _cachedBrowserPrefix = '-ms-'; 1426 _cachedBrowserPrefix = '-ms-';
1425 } else if (_Device.isOpera) { 1427 } else if (_Device.isOpera) {
1426 _cachedBrowserPrefix = '-o-'; 1428 _cachedBrowserPrefix = '-o-';
1427 } else { 1429 } else {
1428 _cachedBrowserPrefix = '-webkit-'; 1430 _cachedBrowserPrefix = '-webkit-';
1429 } 1431 }
1430 } 1432 }
1431 return _cachedBrowserPrefix; 1433 return _cachedBrowserPrefix;
1432 } 1434 }
1433 1435
1436 /// @domName CSSStyleDeclaration
1434 class CSSStyleDeclaration native "*CSSStyleDeclaration" { 1437 class CSSStyleDeclaration native "*CSSStyleDeclaration" {
1435 factory CSSStyleDeclaration() => _CSSStyleDeclarationFactoryProvider.createCSS StyleDeclaration(); 1438 factory CSSStyleDeclaration() => _CSSStyleDeclarationFactoryProvider.createCSS StyleDeclaration();
1436 factory CSSStyleDeclaration.css(String css) => 1439 factory CSSStyleDeclaration.css(String css) =>
1437 _CSSStyleDeclarationFactoryProvider.createCSSStyleDeclaration_css(css); 1440 _CSSStyleDeclarationFactoryProvider.createCSSStyleDeclaration_css(css);
1438 1441
1439 1442
1440 /// @domName CSSStyleDeclaration.cssText; @docsEditable true 1443 /// @domName CSSStyleDeclaration.cssText; @docsEditable true
1441 String cssText; 1444 String cssText;
1442 1445
1443 /// @domName CSSStyleDeclaration.length; @docsEditable true 1446 /// @domName CSSStyleDeclaration.length; @docsEditable true
(...skipping 3314 matching lines...) Expand 10 before | Expand all | Expand 10 after
4758 String cssText; 4761 String cssText;
4759 4762
4760 /// @domName CSSValue.cssValueType; @docsEditable true 4763 /// @domName CSSValue.cssValueType; @docsEditable true
4761 final int cssValueType; 4764 final int cssValueType;
4762 } 4765 }
4763 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 4766 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4764 // for details. All rights reserved. Use of this source code is governed by a 4767 // for details. All rights reserved. Use of this source code is governed by a
4765 // BSD-style license that can be found in the LICENSE file. 4768 // BSD-style license that can be found in the LICENSE file.
4766 4769
4767 4770
4771 /// @domName HTMLCanvasElement
4768 class CanvasElement extends Element implements Element native "*HTMLCanvasElemen t" { 4772 class CanvasElement extends Element implements Element native "*HTMLCanvasElemen t" {
4769 4773
4770 factory CanvasElement({int width, int height}) { 4774 factory CanvasElement({int width, int height}) {
4771 var e = document.$dom_createElement("canvas"); 4775 var e = document.$dom_createElement("canvas");
4772 if (width != null) e.width = width; 4776 if (width != null) e.width = width;
4773 if (height != null) e.height = height; 4777 if (height != null) e.height = height;
4774 return e; 4778 return e;
4775 } 4779 }
4776 4780
4777 /// @domName HTMLCanvasElement.height; @docsEditable true 4781 /// @domName HTMLCanvasElement.height; @docsEditable true
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
4815 class CanvasRenderingContext native "*CanvasRenderingContext" { 4819 class CanvasRenderingContext native "*CanvasRenderingContext" {
4816 4820
4817 /// @domName CanvasRenderingContext.canvas; @docsEditable true 4821 /// @domName CanvasRenderingContext.canvas; @docsEditable true
4818 final CanvasElement canvas; 4822 final CanvasElement canvas;
4819 } 4823 }
4820 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 4824 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4821 // for details. All rights reserved. Use of this source code is governed by a 4825 // for details. All rights reserved. Use of this source code is governed by a
4822 // BSD-style license that can be found in the LICENSE file. 4826 // BSD-style license that can be found in the LICENSE file.
4823 4827
4824 4828
4829 /// @domName CanvasRenderingContext2D
4825 class CanvasRenderingContext2D extends CanvasRenderingContext native "*CanvasRen deringContext2D" { 4830 class CanvasRenderingContext2D extends CanvasRenderingContext native "*CanvasRen deringContext2D" {
4826 4831
4827 /// @domName CanvasRenderingContext2D.fillStyle; @docsEditable true 4832 /// @domName CanvasRenderingContext2D.fillStyle; @docsEditable true
4828 dynamic fillStyle; 4833 dynamic fillStyle;
4829 4834
4830 /// @domName CanvasRenderingContext2D.font; @docsEditable true 4835 /// @domName CanvasRenderingContext2D.font; @docsEditable true
4831 String font; 4836 String font;
4832 4837
4833 /// @domName CanvasRenderingContext2D.globalAlpha; @docsEditable true 4838 /// @domName CanvasRenderingContext2D.globalAlpha; @docsEditable true
4834 num globalAlpha; 4839 num globalAlpha;
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
5258 final String data; 5263 final String data;
5259 5264
5260 /// @domName CompositionEvent.initCompositionEvent; @docsEditable true 5265 /// @domName CompositionEvent.initCompositionEvent; @docsEditable true
5261 void initCompositionEvent(String typeArg, bool canBubbleArg, bool cancelableAr g, LocalWindow viewArg, String dataArg) native; 5266 void initCompositionEvent(String typeArg, bool canBubbleArg, bool cancelableAr g, LocalWindow viewArg, String dataArg) native;
5262 } 5267 }
5263 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5268 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5264 // for details. All rights reserved. Use of this source code is governed by a 5269 // for details. All rights reserved. Use of this source code is governed by a
5265 // BSD-style license that can be found in the LICENSE file. 5270 // BSD-style license that can be found in the LICENSE file.
5266 5271
5267 5272
5273 /// @domName Console
5268 class Console 5274 class Console
5269 // Console is sometimes a singleton bag-of-properties without a prototype. 5275 // Console is sometimes a singleton bag-of-properties without a prototype.
5270 native "=(typeof console == 'undefined' ? {} : console)" { 5276 native "=(typeof console == 'undefined' ? {} : console)" {
5271 5277
5272 /// @domName Console.memory; @docsEditable true 5278 /// @domName Console.memory; @docsEditable true
5273 final MemoryInfo memory; 5279 final MemoryInfo memory;
5274 5280
5275 /// @domName Console.profiles; @docsEditable true 5281 /// @domName Console.profiles; @docsEditable true
5276 final List<ScriptProfile> profiles; 5282 final List<ScriptProfile> profiles;
5277 5283
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
5424 /// @domName Crypto.getRandomValues; @docsEditable true 5430 /// @domName Crypto.getRandomValues; @docsEditable true
5425 void getRandomValues(ArrayBufferView array) native; 5431 void getRandomValues(ArrayBufferView array) native;
5426 } 5432 }
5427 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5433 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5428 // for details. All rights reserved. Use of this source code is governed by a 5434 // for details. All rights reserved. Use of this source code is governed by a
5429 // BSD-style license that can be found in the LICENSE file. 5435 // BSD-style license that can be found in the LICENSE file.
5430 5436
5431 // WARNING: Do not edit - generated code. 5437 // WARNING: Do not edit - generated code.
5432 5438
5433 5439
5440 /// @domName CustomEvent
5434 class CustomEvent extends Event native "*CustomEvent" { 5441 class CustomEvent extends Event native "*CustomEvent" {
5435 factory CustomEvent(String type, [bool canBubble = true, bool cancelable = tru e, 5442 factory CustomEvent(String type, [bool canBubble = true, bool cancelable = tru e,
5436 Object detail]) => _CustomEventFactoryProvider.createCustomEvent( 5443 Object detail]) => _CustomEventFactoryProvider.createCustomEvent(
5437 type, canBubble, cancelable, detail); 5444 type, canBubble, cancelable, detail);
5438 5445
5439 /// @domName CustomEvent.detail; @docsEditable true 5446 /// @domName CustomEvent.detail; @docsEditable true
5440 final Object detail; 5447 final Object detail;
5441 5448
5442 /// @domName CustomEvent.initCustomEvent; @docsEditable true 5449 /// @domName CustomEvent.initCustomEvent; @docsEditable true
5443 void $dom_initCustomEvent(String typeArg, bool canBubbleArg, bool cancelableAr g, Object detailArg) native "initCustomEvent"; 5450 void $dom_initCustomEvent(String typeArg, bool canBubbleArg, bool cancelableAr g, Object detailArg) native "initCustomEvent";
(...skipping 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after
6465 /// @domName HTMLDivElement; @docsEditable true 6472 /// @domName HTMLDivElement; @docsEditable true
6466 class DivElement extends Element implements Element native "*HTMLDivElement" { 6473 class DivElement extends Element implements Element native "*HTMLDivElement" {
6467 6474
6468 factory DivElement() => document.$dom_createElement("div"); 6475 factory DivElement() => document.$dom_createElement("div");
6469 } 6476 }
6470 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6477 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6471 // for details. All rights reserved. Use of this source code is governed by a 6478 // for details. All rights reserved. Use of this source code is governed by a
6472 // BSD-style license that can be found in the LICENSE file. 6479 // BSD-style license that can be found in the LICENSE file.
6473 6480
6474 6481
6482 /// @domName Document
6475 class Document extends Node native "*Document" 6483 class Document extends Node native "*Document"
6476 { 6484 {
6477 6485
6478 6486
6479 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev entTarget.dispatchEvent; @docsEditable true 6487 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev entTarget.dispatchEvent; @docsEditable true
6480 DocumentEvents get on => 6488 DocumentEvents get on =>
6481 new DocumentEvents(this); 6489 new DocumentEvents(this);
6482 6490
6483 /// @domName Document.body; @docsEditable true 6491 /// @domName Document.body; @docsEditable true
6484 Element get $dom_body => JS("Element", "#.body", this); 6492 Element get $dom_body => JS("Element", "#.body", this);
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
6702 class _FrozenCssClassSet extends CssClassSet { 6710 class _FrozenCssClassSet extends CssClassSet {
6703 void writeClasses(Set s) { 6711 void writeClasses(Set s) {
6704 throw new UnsupportedError( 6712 throw new UnsupportedError(
6705 'frozen class set cannot be modified'); 6713 'frozen class set cannot be modified');
6706 } 6714 }
6707 Set<String> readClasses() => new Set<String>(); 6715 Set<String> readClasses() => new Set<String>();
6708 6716
6709 bool get frozen => true; 6717 bool get frozen => true;
6710 } 6718 }
6711 6719
6720 /// @domName DocumentFragment
6712 class DocumentFragment extends Node native "*DocumentFragment" { 6721 class DocumentFragment extends Node native "*DocumentFragment" {
6713 factory DocumentFragment() => _DocumentFragmentFactoryProvider.createDocumentF ragment(); 6722 factory DocumentFragment() => _DocumentFragmentFactoryProvider.createDocumentF ragment();
6714 6723
6715 factory DocumentFragment.html(String html) => 6724 factory DocumentFragment.html(String html) =>
6716 _DocumentFragmentFactoryProvider.createDocumentFragment_html(html); 6725 _DocumentFragmentFactoryProvider.createDocumentFragment_html(html);
6717 6726
6718 factory DocumentFragment.svg(String svgContent) => 6727 factory DocumentFragment.svg(String svgContent) =>
6719 _DocumentFragmentFactoryProvider.createDocumentFragment_svg(svgContent); 6728 _DocumentFragmentFactoryProvider.createDocumentFragment_svg(svgContent);
6720 6729
6721 List<Element> get elements => this.children; 6730 List<Element> get elements => this.children;
(...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after
7350 } 7359 }
7351 return s; 7360 return s;
7352 } 7361 }
7353 7362
7354 void writeClasses(Set<String> s) { 7363 void writeClasses(Set<String> s) {
7355 List list = new List.from(s); 7364 List list = new List.from(s);
7356 _element.$dom_className = Strings.join(list, ' '); 7365 _element.$dom_className = Strings.join(list, ' ');
7357 } 7366 }
7358 } 7367 }
7359 7368
7369 /// @domName Element
7360 abstract class Element extends Node implements ElementTraversal native "*Element " { 7370 abstract class Element extends Node implements ElementTraversal native "*Element " {
7361 7371
7362 factory Element.html(String html) => 7372 factory Element.html(String html) =>
7363 _ElementFactoryProvider.createElement_html(html); 7373 _ElementFactoryProvider.createElement_html(html);
7364 factory Element.tag(String tag) => 7374 factory Element.tag(String tag) =>
7365 _ElementFactoryProvider.createElement_tag(tag); 7375 _ElementFactoryProvider.createElement_tag(tag);
7366 7376
7367 /** 7377 /**
7368 * @domName Element.hasAttribute, Element.getAttribute, Element.setAttribute, 7378 * @domName Element.hasAttribute, Element.getAttribute, Element.setAttribute,
7369 * Element.removeAttribute 7379 * Element.removeAttribute
(...skipping 752 matching lines...) Expand 10 before | Expand all | Expand 10 after
8122 /// @domName ErrorEvent.message; @docsEditable true 8132 /// @domName ErrorEvent.message; @docsEditable true
8123 final String message; 8133 final String message;
8124 } 8134 }
8125 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 8135 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8126 // for details. All rights reserved. Use of this source code is governed by a 8136 // for details. All rights reserved. Use of this source code is governed by a
8127 // BSD-style license that can be found in the LICENSE file. 8137 // BSD-style license that can be found in the LICENSE file.
8128 8138
8129 // WARNING: Do not edit - generated code. 8139 // WARNING: Do not edit - generated code.
8130 8140
8131 8141
8142 /// @domName Event
8132 class Event native "*Event" { 8143 class Event native "*Event" {
8133 // In JS, canBubble and cancelable are technically required parameters to 8144 // In JS, canBubble and cancelable are technically required parameters to
8134 // init*Event. In practice, though, if they aren't provided they simply 8145 // init*Event. In practice, though, if they aren't provided they simply
8135 // default to false (since that's Boolean(undefined)). 8146 // default to false (since that's Boolean(undefined)).
8136 // 8147 //
8137 // Contrary to JS, we default canBubble and cancelable to true, since that's 8148 // Contrary to JS, we default canBubble and cancelable to true, since that's
8138 // what people want most of the time anyway. 8149 // what people want most of the time anyway.
8139 factory Event(String type, [bool canBubble = true, bool cancelable = true]) => 8150 factory Event(String type, [bool canBubble = true, bool cancelable = true]) =>
8140 _EventFactoryProvider.createEvent(type, canBubble, cancelable); 8151 _EventFactoryProvider.createEvent(type, canBubble, cancelable);
8141 8152
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
8342 8353
8343 void _add(EventListener listener, bool useCapture) { 8354 void _add(EventListener listener, bool useCapture) {
8344 _ptr.$dom_addEventListener(_type, listener, useCapture); 8355 _ptr.$dom_addEventListener(_type, listener, useCapture);
8345 } 8356 }
8346 8357
8347 void _remove(EventListener listener, bool useCapture) { 8358 void _remove(EventListener listener, bool useCapture) {
8348 _ptr.$dom_removeEventListener(_type, listener, useCapture); 8359 _ptr.$dom_removeEventListener(_type, listener, useCapture);
8349 } 8360 }
8350 } 8361 }
8351 8362
8352 8363 /// @domName EventTarget
8353 class EventTarget native "*EventTarget" { 8364 class EventTarget native "*EventTarget" {
8354 8365
8355 /** @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev entTarget.dispatchEvent */ 8366 /** @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev entTarget.dispatchEvent */
8356 Events get on => new Events(this); 8367 Events get on => new Events(this);
8357 8368
8358 /// @domName EventTarget.addEventListener; @docsEditable true 8369 /// @domName EventTarget.addEventListener; @docsEditable true
8359 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 8370 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
8360 8371
8361 /// @domName EventTarget.dispatchEvent; @docsEditable true 8372 /// @domName EventTarget.dispatchEvent; @docsEditable true
8362 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; 8373 bool $dom_dispatchEvent(Event event) native "dispatchEvent";
(...skipping 1140 matching lines...) Expand 10 before | Expand all | Expand 10 after
9503 /// @domName HTMLHeadingElement.align; @docsEditable true 9514 /// @domName HTMLHeadingElement.align; @docsEditable true
9504 String align; 9515 String align;
9505 } 9516 }
9506 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9517 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9507 // for details. All rights reserved. Use of this source code is governed by a 9518 // for details. All rights reserved. Use of this source code is governed by a
9508 // BSD-style license that can be found in the LICENSE file. 9519 // BSD-style license that can be found in the LICENSE file.
9509 9520
9510 // WARNING: Do not edit - generated code. 9521 // WARNING: Do not edit - generated code.
9511 9522
9512 9523
9524 /// @domName HTMLDocument
9513 class HtmlDocument extends Document native "*HTMLDocument" { 9525 class HtmlDocument extends Document native "*HTMLDocument" {
9514 9526
9515 /// @domName HTMLDocument.activeElement; @docsEditable true 9527 /// @domName HTMLDocument.activeElement; @docsEditable true
9516 final Element activeElement; 9528 final Element activeElement;
9517 9529
9518 /** @domName Document.body */ 9530 /** @domName Document.body */
9519 BodyElement get body => document.$dom_body; 9531 BodyElement get body => document.$dom_body;
9520 9532
9521 /** @domName Document.body */ 9533 /** @domName Document.body */
9522 void set body(BodyElement value) { 9534 void set body(BodyElement value) {
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
9595 /// @domName HTMLHtmlElement; @docsEditable true 9607 /// @domName HTMLHtmlElement; @docsEditable true
9596 class HtmlElement extends Element implements Element native "*HTMLHtmlElement" { 9608 class HtmlElement extends Element implements Element native "*HTMLHtmlElement" {
9597 9609
9598 factory HtmlElement() => document.$dom_createElement("html"); 9610 factory HtmlElement() => document.$dom_createElement("html");
9599 } 9611 }
9600 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9612 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9601 // for details. All rights reserved. Use of this source code is governed by a 9613 // for details. All rights reserved. Use of this source code is governed by a
9602 // BSD-style license that can be found in the LICENSE file. 9614 // BSD-style license that can be found in the LICENSE file.
9603 9615
9604 9616
9617 /// @domName XMLHttpRequest
9605 class HttpRequest extends EventTarget native "*XMLHttpRequest" { 9618 class HttpRequest extends EventTarget native "*XMLHttpRequest" {
9606 factory HttpRequest.get(String url, onComplete(HttpRequest request)) => 9619 factory HttpRequest.get(String url, onComplete(HttpRequest request)) =>
9607 _HttpRequestFactoryProvider.createHttpRequest_get(url, onComplete); 9620 _HttpRequestFactoryProvider.createHttpRequest_get(url, onComplete);
9608 9621
9609 factory HttpRequest.getWithCredentials(String url, 9622 factory HttpRequest.getWithCredentials(String url,
9610 onComplete(HttpRequest request)) => 9623 onComplete(HttpRequest request)) =>
9611 _HttpRequestFactoryProvider.createHttpRequest_getWithCredentials(url, 9624 _HttpRequestFactoryProvider.createHttpRequest_getWithCredentials(url,
9612 onComplete); 9625 onComplete);
9613 9626
9614 9627
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
9853 9866
9854 /// @domName IDBCursorWithValue.value; @docsEditable true 9867 /// @domName IDBCursorWithValue.value; @docsEditable true
9855 @_annotation_Creates_SerializedScriptValue @_annotation_Returns_SerializedScri ptValue 9868 @_annotation_Creates_SerializedScriptValue @_annotation_Returns_SerializedScri ptValue
9856 final Object value; 9869 final Object value;
9857 } 9870 }
9858 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9871 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9859 // for details. All rights reserved. Use of this source code is governed by a 9872 // for details. All rights reserved. Use of this source code is governed by a
9860 // BSD-style license that can be found in the LICENSE file. 9873 // BSD-style license that can be found in the LICENSE file.
9861 9874
9862 9875
9876 /// @domName IDBDatabase
9863 class IDBDatabase extends EventTarget native "*IDBDatabase" { 9877 class IDBDatabase extends EventTarget native "*IDBDatabase" {
9864 9878
9865 IDBTransaction transaction(storeName_OR_storeNames, String mode) { 9879 IDBTransaction transaction(storeName_OR_storeNames, String mode) {
9866 if (mode != 'readonly' && mode != 'readwrite') { 9880 if (mode != 'readonly' && mode != 'readwrite') {
9867 throw new ArgumentError(mode); 9881 throw new ArgumentError(mode);
9868 } 9882 }
9869 9883
9870 // TODO(sra): Ensure storeName_OR_storeNames is a string or List<String>, 9884 // TODO(sra): Ensure storeName_OR_storeNames is a string or List<String>,
9871 // and copy to JavaScript array if necessary. 9885 // and copy to JavaScript array if necessary.
9872 9886
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
10182 10196
10183 10197
10184 /// @domName IDBKey; @docsEditable true 10198 /// @domName IDBKey; @docsEditable true
10185 class IDBKey native "*IDBKey" { 10199 class IDBKey native "*IDBKey" {
10186 } 10200 }
10187 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10201 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10188 // for details. All rights reserved. Use of this source code is governed by a 10202 // for details. All rights reserved. Use of this source code is governed by a
10189 // BSD-style license that can be found in the LICENSE file. 10203 // BSD-style license that can be found in the LICENSE file.
10190 10204
10191 10205
10206 /// @domName IDBKeyRange
10192 class IDBKeyRange native "*IDBKeyRange" { 10207 class IDBKeyRange native "*IDBKeyRange" {
10193 /** 10208 /**
10194 * @domName IDBKeyRange.only 10209 * @domName IDBKeyRange.only
10195 */ 10210 */
10196 factory IDBKeyRange.only(/*IDBKey*/ value) => 10211 factory IDBKeyRange.only(/*IDBKey*/ value) =>
10197 _IDBKeyRangeFactoryProvider.createIDBKeyRange_only(value); 10212 _IDBKeyRangeFactoryProvider.createIDBKeyRange_only(value);
10198 10213
10199 /** 10214 /**
10200 * @domName IDBKeyRange.lowerBound 10215 * @domName IDBKeyRange.lowerBound
10201 */ 10216 */
(...skipping 1429 matching lines...) Expand 10 before | Expand all | Expand 10 after
11631 class LocalMediaStream extends MediaStream implements EventTarget native "*Local MediaStream" { 11646 class LocalMediaStream extends MediaStream implements EventTarget native "*Local MediaStream" {
11632 11647
11633 /// @domName LocalMediaStream.stop; @docsEditable true 11648 /// @domName LocalMediaStream.stop; @docsEditable true
11634 void stop() native; 11649 void stop() native;
11635 } 11650 }
11636 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11651 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11637 // for details. All rights reserved. Use of this source code is governed by a 11652 // for details. All rights reserved. Use of this source code is governed by a
11638 // BSD-style license that can be found in the LICENSE file. 11653 // BSD-style license that can be found in the LICENSE file.
11639 11654
11640 11655
11656 /// @domName Window
11641 class LocalWindow extends EventTarget implements Window native "@*DOMWindow" { 11657 class LocalWindow extends EventTarget implements Window native "@*DOMWindow" {
11642 11658
11643 Document get document => JS('Document', '#.document', this); 11659 Document get document => JS('Document', '#.document', this);
11644 11660
11645 Window _open2(url, name) => JS('Window', '#.open(#,#)', this, url, name); 11661 Window _open2(url, name) => JS('Window', '#.open(#,#)', this, url, name);
11646 11662
11647 Window _open3(url, name, options) => 11663 Window _open3(url, name, options) =>
11648 JS('Window', '#.open(#,#,#)', this, url, name, options); 11664 JS('Window', '#.open(#,#,#)', this, url, name, options);
11649 11665
11650 Window open(String url, String name, [String options]) { 11666 Window open(String url, String name, [String options]) {
(...skipping 1436 matching lines...) Expand 10 before | Expand all | Expand 10 after
13087 String cite; 13103 String cite;
13088 13104
13089 /// @domName HTMLModElement.dateTime; @docsEditable true 13105 /// @domName HTMLModElement.dateTime; @docsEditable true
13090 String dateTime; 13106 String dateTime;
13091 } 13107 }
13092 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13108 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13093 // for details. All rights reserved. Use of this source code is governed by a 13109 // for details. All rights reserved. Use of this source code is governed by a
13094 // BSD-style license that can be found in the LICENSE file. 13110 // BSD-style license that can be found in the LICENSE file.
13095 13111
13096 13112
13113 /// @domName MouseEvent
13097 class MouseEvent extends UIEvent native "*MouseEvent" { 13114 class MouseEvent extends UIEvent native "*MouseEvent" {
13098 factory MouseEvent(String type, Window view, int detail, int screenX, 13115 factory MouseEvent(String type, Window view, int detail, int screenX,
13099 int screenY, int clientX, int clientY, int button, [bool canBubble = true, 13116 int screenY, int clientX, int clientY, int button, [bool canBubble = true,
13100 bool cancelable = true, bool ctrlKey = false, bool altKey = false, 13117 bool cancelable = true, bool ctrlKey = false, bool altKey = false,
13101 bool shiftKey = false, bool metaKey = false, 13118 bool shiftKey = false, bool metaKey = false,
13102 EventTarget relatedTarget = null]) => 13119 EventTarget relatedTarget = null]) =>
13103 _MouseEventFactoryProvider.createMouseEvent( 13120 _MouseEventFactoryProvider.createMouseEvent(
13104 type, view, detail, screenX, screenY, 13121 type, view, detail, screenX, screenY,
13105 clientX, clientY, button, canBubble, cancelable, 13122 clientX, clientY, button, canBubble, cancelable,
13106 ctrlKey, altKey, shiftKey, metaKey, 13123 ctrlKey, altKey, shiftKey, metaKey,
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
13233 final Node relatedNode; 13250 final Node relatedNode;
13234 13251
13235 /// @domName MutationEvent.initMutationEvent; @docsEditable true 13252 /// @domName MutationEvent.initMutationEvent; @docsEditable true
13236 void initMutationEvent(String type, bool canBubble, bool cancelable, Node rela tedNode, String prevValue, String newValue, String attrName, int attrChange) nat ive; 13253 void initMutationEvent(String type, bool canBubble, bool cancelable, Node rela tedNode, String prevValue, String newValue, String attrName, int attrChange) nat ive;
13237 } 13254 }
13238 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13255 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13239 // for details. All rights reserved. Use of this source code is governed by a 13256 // for details. All rights reserved. Use of this source code is governed by a
13240 // BSD-style license that can be found in the LICENSE file. 13257 // BSD-style license that can be found in the LICENSE file.
13241 13258
13242 13259
13260 /// @domName MutationObserver
13243 class MutationObserver native "*MutationObserver" { 13261 class MutationObserver native "*MutationObserver" {
13244 13262
13245 factory MutationObserver(MutationCallback callback) => _MutationObserverFactor yProvider.createMutationObserver(callback); 13263 factory MutationObserver(MutationCallback callback) => _MutationObserverFactor yProvider.createMutationObserver(callback);
13246 13264
13247 /// @domName MutationObserver.disconnect; @docsEditable true 13265 /// @domName MutationObserver.disconnect; @docsEditable true
13248 void disconnect() native; 13266 void disconnect() native;
13249 13267
13250 /// @domName MutationObserver._observe; @docsEditable true 13268 /// @domName MutationObserver._observe; @docsEditable true
13251 void _observe(Node target, Map options) { 13269 void _observe(Node target, Map options) {
13252 var options_1 = _convertDartToNative_Dictionary(options); 13270 var options_1 = _convertDartToNative_Dictionary(options);
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
13683 13701
13684 // -- end List<Node> mixins. 13702 // -- end List<Node> mixins.
13685 13703
13686 // TODO(jacobr): benchmark whether this is more efficient or whether caching 13704 // TODO(jacobr): benchmark whether this is more efficient or whether caching
13687 // a local copy of $dom_childNodes is more efficient. 13705 // a local copy of $dom_childNodes is more efficient.
13688 int get length => _this.$dom_childNodes.length; 13706 int get length => _this.$dom_childNodes.length;
13689 13707
13690 Node operator[](int index) => _this.$dom_childNodes[index]; 13708 Node operator[](int index) => _this.$dom_childNodes[index];
13691 } 13709 }
13692 13710
13711 /// @domName Node
13693 class Node extends EventTarget native "*Node" { 13712 class Node extends EventTarget native "*Node" {
13694 _ChildNodeListLazy get nodes { 13713 _ChildNodeListLazy get nodes {
13695 return new _ChildNodeListLazy(this); 13714 return new _ChildNodeListLazy(this);
13696 } 13715 }
13697 13716
13698 void set nodes(Collection<Node> value) { 13717 void set nodes(Collection<Node> value) {
13699 // Copy list first since we don't want liveness during iteration. 13718 // Copy list first since we don't want liveness during iteration.
13700 // TODO(jacobr): there is a better way to do this. 13719 // TODO(jacobr): there is a better way to do this.
13701 List copy = new List.from(value); 13720 List copy = new List.from(value);
13702 text = ''; 13721 text = '';
(...skipping 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after
14742 /// @domName PerformanceTiming.unloadEventStart; @docsEditable true 14761 /// @domName PerformanceTiming.unloadEventStart; @docsEditable true
14743 final int unloadEventStart; 14762 final int unloadEventStart;
14744 } 14763 }
14745 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14764 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14746 // for details. All rights reserved. Use of this source code is governed by a 14765 // for details. All rights reserved. Use of this source code is governed by a
14747 // BSD-style license that can be found in the LICENSE file. 14766 // BSD-style license that can be found in the LICENSE file.
14748 14767
14749 // WARNING: Do not edit - generated code. 14768 // WARNING: Do not edit - generated code.
14750 14769
14751 14770
14771 /// @domName WebKitPoint
14752 class Point native "*WebKitPoint" { 14772 class Point native "*WebKitPoint" {
14753 factory Point(num x, num y) => _PointFactoryProvider.createPoint(x, y); 14773 factory Point(num x, num y) => _PointFactoryProvider.createPoint(x, y);
14754 14774
14755 /// @domName WebKitPoint.x; @docsEditable true 14775 /// @domName WebKitPoint.x; @docsEditable true
14756 num x; 14776 num x;
14757 14777
14758 /// @domName WebKitPoint.y; @docsEditable true 14778 /// @domName WebKitPoint.y; @docsEditable true
14759 num y; 14779 num y;
14760 14780
14761 } 14781 }
(...skipping 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after
15796 final bool visible; 15816 final bool visible;
15797 15817
15798 /// @domName ScriptProfileNode.children; @docsEditable true 15818 /// @domName ScriptProfileNode.children; @docsEditable true
15799 List<ScriptProfileNode> children() native; 15819 List<ScriptProfileNode> children() native;
15800 } 15820 }
15801 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15821 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15802 // for details. All rights reserved. Use of this source code is governed by a 15822 // for details. All rights reserved. Use of this source code is governed by a
15803 // BSD-style license that can be found in the LICENSE file. 15823 // BSD-style license that can be found in the LICENSE file.
15804 15824
15805 15825
15826 /// @domName HTMLSelectElement
15806 class SelectElement extends Element implements Element native "*HTMLSelectElemen t" { 15827 class SelectElement extends Element implements Element native "*HTMLSelectElemen t" {
15807 15828
15808 factory SelectElement() => document.$dom_createElement("select"); 15829 factory SelectElement() => document.$dom_createElement("select");
15809 15830
15810 /// @domName HTMLSelectElement.autofocus; @docsEditable true 15831 /// @domName HTMLSelectElement.autofocus; @docsEditable true
15811 bool autofocus; 15832 bool autofocus;
15812 15833
15813 /// @domName HTMLSelectElement.disabled; @docsEditable true 15834 /// @domName HTMLSelectElement.disabled; @docsEditable true
15814 bool disabled; 15835 bool disabled;
15815 15836
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
15908 /// @domName HTMLShadowElement.resetStyleInheritance; @docsEditable true 15929 /// @domName HTMLShadowElement.resetStyleInheritance; @docsEditable true
15909 bool resetStyleInheritance; 15930 bool resetStyleInheritance;
15910 } 15931 }
15911 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15932 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15912 // for details. All rights reserved. Use of this source code is governed by a 15933 // for details. All rights reserved. Use of this source code is governed by a
15913 // BSD-style license that can be found in the LICENSE file. 15934 // BSD-style license that can be found in the LICENSE file.
15914 15935
15915 // WARNING: Do not edit - generated code. 15936 // WARNING: Do not edit - generated code.
15916 15937
15917 15938
15939 /// @domName ShadowRoot
15918 class ShadowRoot extends DocumentFragment native "*ShadowRoot" { 15940 class ShadowRoot extends DocumentFragment native "*ShadowRoot" {
15919 15941
15920 factory ShadowRoot(Element host) => _ShadowRootFactoryProvider.createShadowRoo t(host); 15942 factory ShadowRoot(Element host) => _ShadowRootFactoryProvider.createShadowRoo t(host);
15921 15943
15922 /// @domName ShadowRoot.activeElement; @docsEditable true 15944 /// @domName ShadowRoot.activeElement; @docsEditable true
15923 final Element activeElement; 15945 final Element activeElement;
15924 15946
15925 /// @domName ShadowRoot.applyAuthorStyles; @docsEditable true 15947 /// @domName ShadowRoot.applyAuthorStyles; @docsEditable true
15926 bool applyAuthorStyles; 15948 bool applyAuthorStyles;
15927 15949
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after
16456 final int length; 16478 final int length;
16457 16479
16458 /// @domName SpeechRecognitionResult.item; @docsEditable true 16480 /// @domName SpeechRecognitionResult.item; @docsEditable true
16459 SpeechRecognitionAlternative item(int index) native; 16481 SpeechRecognitionAlternative item(int index) native;
16460 } 16482 }
16461 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16483 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16462 // for details. All rights reserved. Use of this source code is governed by a 16484 // for details. All rights reserved. Use of this source code is governed by a
16463 // BSD-style license that can be found in the LICENSE file. 16485 // BSD-style license that can be found in the LICENSE file.
16464 16486
16465 16487
16488 /// @domName Storage
16466 class Storage implements Map<String, String> native "*Storage" { 16489 class Storage implements Map<String, String> native "*Storage" {
16467 16490
16468 // TODO(nweiz): update this when maps support lazy iteration 16491 // TODO(nweiz): update this when maps support lazy iteration
16469 bool containsValue(String value) => values.some((e) => e == value); 16492 bool containsValue(String value) => values.some((e) => e == value);
16470 16493
16471 bool containsKey(String key) => $dom_getItem(key) != null; 16494 bool containsKey(String key) => $dom_getItem(key) != null;
16472 16495
16473 String operator [](String key) => $dom_getItem(key); 16496 String operator [](String key) => $dom_getItem(key);
16474 16497
16475 void operator []=(String key, String value) { $dom_setItem(key, value); } 16498 void operator []=(String key, String value) { $dom_setItem(key, value); }
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
16769 String vAlign; 16792 String vAlign;
16770 16793
16771 /// @domName HTMLTableColElement.width; @docsEditable true 16794 /// @domName HTMLTableColElement.width; @docsEditable true
16772 String width; 16795 String width;
16773 } 16796 }
16774 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16797 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16775 // for details. All rights reserved. Use of this source code is governed by a 16798 // for details. All rights reserved. Use of this source code is governed by a
16776 // BSD-style license that can be found in the LICENSE file. 16799 // BSD-style license that can be found in the LICENSE file.
16777 16800
16778 16801
16802 /// @domName HTMLTableElement
16779 class TableElement extends Element implements Element native "*HTMLTableElement" { 16803 class TableElement extends Element implements Element native "*HTMLTableElement" {
16780 16804
16781 factory TableElement() => document.$dom_createElement("table"); 16805 factory TableElement() => document.$dom_createElement("table");
16782 16806
16783 /// @domName HTMLTableElement.align; @docsEditable true 16807 /// @domName HTMLTableElement.align; @docsEditable true
16784 String align; 16808 String align;
16785 16809
16786 /// @domName HTMLTableElement.bgColor; @docsEditable true 16810 /// @domName HTMLTableElement.bgColor; @docsEditable true
16787 String bgColor; 16811 String bgColor;
16788 16812
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
16927 /// @domName HTMLTableSectionElement.insertRow; @docsEditable true 16951 /// @domName HTMLTableSectionElement.insertRow; @docsEditable true
16928 Element insertRow(int index) native; 16952 Element insertRow(int index) native;
16929 } 16953 }
16930 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16954 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16931 // for details. All rights reserved. Use of this source code is governed by a 16955 // for details. All rights reserved. Use of this source code is governed by a
16932 // BSD-style license that can be found in the LICENSE file. 16956 // BSD-style license that can be found in the LICENSE file.
16933 16957
16934 // WARNING: Do not edit - generated code. 16958 // WARNING: Do not edit - generated code.
16935 16959
16936 16960
16961 /// @domName Text
16937 class Text extends CharacterData native "*Text" { 16962 class Text extends CharacterData native "*Text" {
16938 factory Text(String data) => _TextFactoryProvider.createText(data); 16963 factory Text(String data) => _TextFactoryProvider.createText(data);
16939 16964
16940 /// @domName Text.wholeText; @docsEditable true 16965 /// @domName Text.wholeText; @docsEditable true
16941 final String wholeText; 16966 final String wholeText;
16942 16967
16943 /// @domName Text.replaceWholeText; @docsEditable true 16968 /// @domName Text.replaceWholeText; @docsEditable true
16944 Text replaceWholeText(String content) native; 16969 Text replaceWholeText(String content) native;
16945 16970
16946 /// @domName Text.splitText; @docsEditable true 16971 /// @domName Text.splitText; @docsEditable true
(...skipping 1202 matching lines...) Expand 10 before | Expand all | Expand 10 after
18149 18174
18150 18175
18151 /// @domName HTMLUnknownElement; @docsEditable true 18176 /// @domName HTMLUnknownElement; @docsEditable true
18152 class UnknownElement extends Element implements Element native "*HTMLUnknownElem ent" { 18177 class UnknownElement extends Element implements Element native "*HTMLUnknownElem ent" {
18153 } 18178 }
18154 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18179 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18155 // for details. All rights reserved. Use of this source code is governed by a 18180 // for details. All rights reserved. Use of this source code is governed by a
18156 // BSD-style license that can be found in the LICENSE file. 18181 // BSD-style license that can be found in the LICENSE file.
18157 18182
18158 18183
18184 /// @domName URL
18159 class Url native "*URL" { 18185 class Url native "*URL" {
18160 18186
18161 static String createObjectUrl(blob_OR_source_OR_stream) => 18187 static String createObjectUrl(blob_OR_source_OR_stream) =>
18162 JS('String', 18188 JS('String',
18163 '(window.URL || window.webkitURL).createObjectURL(#)', 18189 '(window.URL || window.webkitURL).createObjectURL(#)',
18164 blob_OR_source_OR_stream); 18190 blob_OR_source_OR_stream);
18165 18191
18166 static void revokeObjectUrl(String objectUrl) => 18192 static void revokeObjectUrl(String objectUrl) =>
18167 JS('void', 18193 JS('void',
18168 '(window.URL || window.webkitURL).revokeObjectURL(#)', objectUrl); 18194 '(window.URL || window.webkitURL).revokeObjectURL(#)', objectUrl);
(...skipping 1472 matching lines...) Expand 10 before | Expand all | Expand 10 after
19641 /// @domName WebKitNamedFlow.removeEventListener; @docsEditable true 19667 /// @domName WebKitNamedFlow.removeEventListener; @docsEditable true
19642 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 19668 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
19643 } 19669 }
19644 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19670 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19645 // for details. All rights reserved. Use of this source code is governed by a 19671 // for details. All rights reserved. Use of this source code is governed by a
19646 // BSD-style license that can be found in the LICENSE file. 19672 // BSD-style license that can be found in the LICENSE file.
19647 19673
19648 // WARNING: Do not edit - generated code. 19674 // WARNING: Do not edit - generated code.
19649 19675
19650 19676
19677 /// @domName WebSocket
19651 class WebSocket extends EventTarget native "*WebSocket" { 19678 class WebSocket extends EventTarget native "*WebSocket" {
19652 factory WebSocket(String url) => _WebSocketFactoryProvider.createWebSocket(url ); 19679 factory WebSocket(String url) => _WebSocketFactoryProvider.createWebSocket(url );
19653 19680
19654 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev entTarget.dispatchEvent; @docsEditable true 19681 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev entTarget.dispatchEvent; @docsEditable true
19655 WebSocketEvents get on => 19682 WebSocketEvents get on =>
19656 new WebSocketEvents(this); 19683 new WebSocketEvents(this);
19657 19684
19658 static const int CLOSED = 3; 19685 static const int CLOSED = 3;
19659 19686
19660 static const int CLOSING = 2; 19687 static const int CLOSING = 2;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
19710 19737
19711 EventListenerList get message => this['message']; 19738 EventListenerList get message => this['message'];
19712 19739
19713 EventListenerList get open => this['open']; 19740 EventListenerList get open => this['open'];
19714 } 19741 }
19715 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19742 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19716 // for details. All rights reserved. Use of this source code is governed by a 19743 // for details. All rights reserved. Use of this source code is governed by a
19717 // BSD-style license that can be found in the LICENSE file. 19744 // BSD-style license that can be found in the LICENSE file.
19718 19745
19719 19746
19747 /// @domName WheelEvent
19720 class WheelEvent extends MouseEvent native "*WheelEvent" { 19748 class WheelEvent extends MouseEvent native "*WheelEvent" {
19721 19749
19722 /// @domName WheelEvent.webkitDirectionInvertedFromDevice; @docsEditable true 19750 /// @domName WheelEvent.webkitDirectionInvertedFromDevice; @docsEditable true
19723 final bool webkitDirectionInvertedFromDevice; 19751 final bool webkitDirectionInvertedFromDevice;
19724 19752
19725 /// @domName WheelEvent.initWebKitWheelEvent; @docsEditable true 19753 /// @domName WheelEvent.initWebKitWheelEvent; @docsEditable true
19726 void initWebKitWheelEvent(int wheelDeltaX, int wheelDeltaY, LocalWindow view, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, b ool shiftKey, bool metaKey) native; 19754 void initWebKitWheelEvent(int wheelDeltaX, int wheelDeltaY, LocalWindow view, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, b ool shiftKey, bool metaKey) native;
19727 19755
19728 19756
19729 /** @domName WheelEvent.deltaY */ 19757 /** @domName WheelEvent.deltaY */
(...skipping 5384 matching lines...) Expand 10 before | Expand all | Expand 10 after
25114 if (length < 0) throw new ArgumentError('length'); 25142 if (length < 0) throw new ArgumentError('length');
25115 if (start < 0) throw new RangeError.value(start); 25143 if (start < 0) throw new RangeError.value(start);
25116 int end = start + length; 25144 int end = start + length;
25117 if (end > a.length) throw new RangeError.value(end); 25145 if (end > a.length) throw new RangeError.value(end);
25118 for (int i = start; i < end; i++) { 25146 for (int i = start; i < end; i++) {
25119 accumulator.add(a[i]); 25147 accumulator.add(a[i]);
25120 } 25148 }
25121 return accumulator; 25149 return accumulator;
25122 } 25150 }
25123 } 25151 }
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