Index: sdk/lib/html/dart2js/html_dart2js.dart |
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart |
index 6373ad033b4569925b9b459322fdfa5c317a28e0..864fbb476d77abc7e5c978657b87e20c94301475 100644 |
--- a/sdk/lib/html/dart2js/html_dart2js.dart |
+++ b/sdk/lib/html/dart2js/html_dart2js.dart |
@@ -153,24 +153,6 @@ abstract class AbstractWorker extends Interceptor implements EventTarget { |
@DocsEditable() |
-@DomName('AesKeyAlgorithm') |
-@Experimental() // untriaged |
-@Native("AesKeyAlgorithm") |
-class AesKeyAlgorithm extends KeyAlgorithm { |
- // To suppress missing implicit constructor warnings. |
- factory AesKeyAlgorithm._() { throw new UnsupportedError("Not supported"); } |
- |
- @DomName('AesKeyAlgorithm.length') |
- @DocsEditable() |
- @Experimental() // untriaged |
- final int length; |
-} |
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
-// for details. All rights reserved. Use of this source code is governed by a |
-// BSD-style license that can be found in the LICENSE file. |
- |
- |
-@DocsEditable() |
@DomName('HTMLAnchorElement') |
@Native("HTMLAnchorElement") |
class AnchorElement extends HtmlElement implements UrlUtils { |
@@ -433,11 +415,6 @@ class AnimationPlayer extends EventTarget { |
@Experimental() // untriaged |
num startTime; |
- @DomName('AnimationPlayer.timeLag') |
- @DocsEditable() |
- @Experimental() // untriaged |
- final double timeLag; |
- |
@DomName('AnimationPlayer.cancel') |
@DocsEditable() |
@Experimental() // untriaged |
@@ -504,6 +481,11 @@ class AnimationTimeline extends Interceptor { |
@Experimental() // untriaged |
final double currentTime; |
+ @DomName('AnimationTimeline.getAnimationPlayers') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ List<AnimationPlayer> getAnimationPlayers() native; |
+ |
@DomName('AnimationTimeline.play') |
@DocsEditable() |
@Experimental() // untriaged |
@@ -1442,6 +1424,19 @@ class CDataSection extends Text { |
@DocsEditable() |
+@DomName('CacheStorage') |
+@Experimental() // untriaged |
+@Native("CacheStorage") |
+class CacheStorage extends Interceptor { |
+ // To suppress missing implicit constructor warnings. |
+ factory CacheStorage._() { throw new UnsupportedError("Not supported"); } |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DocsEditable() |
@DomName('Canvas2DContextAttributes') |
// http://wiki.whatwg.org/wiki/CanvasOpaque#Suggested_IDL |
@Experimental() |
@@ -1830,10 +1825,38 @@ class CanvasRenderingContext2D extends Interceptor implements CanvasRenderingCon |
@DocsEditable() |
String textBaseline; |
+ @DomName('CanvasRenderingContext2D.addHitRegion') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ void addHitRegion([Map options]) { |
+ if (options != null) { |
+ var options_1 = convertDartToNative_Dictionary(options); |
+ _addHitRegion_1(options_1); |
+ return; |
+ } |
+ _addHitRegion_2(); |
+ return; |
+ } |
+ @JSName('addHitRegion') |
+ @DomName('CanvasRenderingContext2D.addHitRegion') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ void _addHitRegion_1(options) native; |
+ @JSName('addHitRegion') |
+ @DomName('CanvasRenderingContext2D.addHitRegion') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ void _addHitRegion_2() native; |
+ |
@DomName('CanvasRenderingContext2D.beginPath') |
@DocsEditable() |
void beginPath() native; |
+ @DomName('CanvasRenderingContext2D.clearHitRegions') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ void clearHitRegions() native; |
+ |
@DomName('CanvasRenderingContext2D.clearRect') |
@DocsEditable() |
void clearRect(num x, num y, num width, num height) native; |
@@ -1957,6 +1980,11 @@ class CanvasRenderingContext2D extends Interceptor implements CanvasRenderingCon |
@DocsEditable() |
void _putImageData_2(imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight) native; |
+ @DomName('CanvasRenderingContext2D.removeHitRegion') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ void removeHitRegion(String id) native; |
+ |
@DomName('CanvasRenderingContext2D.resetTransform') |
@DocsEditable() |
@Experimental() // untriaged |
@@ -2415,22 +2443,44 @@ abstract class ChildNode extends Interceptor { |
@DocsEditable() |
-@DomName('Client') |
+@DomName('CircularRegion') |
@Experimental() // untriaged |
-@Native("Client") |
-class Client extends Interceptor { |
+@Native("CircularRegion") |
+class CircularRegion extends GeofencingRegion { |
// To suppress missing implicit constructor warnings. |
- factory Client._() { throw new UnsupportedError("Not supported"); } |
+ factory CircularRegion._() { throw new UnsupportedError("Not supported"); } |
- @DomName('Client.id') |
+ @DomName('CircularRegion.CircularRegion') |
+ @DocsEditable() |
+ factory CircularRegion(Map init) { |
+ return CircularRegion._create_1(init); |
+ } |
+ static CircularRegion _create_1(init) => JS('CircularRegion', 'new CircularRegion(#)', init); |
+ |
+ @DomName('CircularRegion.MAX_RADIUS') |
@DocsEditable() |
@Experimental() // untriaged |
- final int id; |
+ static const num MAX_RADIUS = 100.0; |
- @DomName('Client.postMessage') |
+ @DomName('CircularRegion.MIN_RADIUS') |
@DocsEditable() |
@Experimental() // untriaged |
- void postMessage(/*SerializedScriptValue*/ message, [List<MessagePort> messagePorts]) native; |
+ static const num MIN_RADIUS = 1.0; |
+ |
+ @DomName('CircularRegion.latitude') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final double latitude; |
+ |
+ @DomName('CircularRegion.longitude') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final double longitude; |
+ |
+ @DomName('CircularRegion.radius') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final double radius; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -2511,6 +2561,11 @@ class CompositionEvent extends UIEvent { |
@DocsEditable() |
final String data; |
+ @DomName('CompositionEvent.getSegments') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ List<int> getSegments() native; |
+ |
@JSName('initCompositionEvent') |
@DomName('CompositionEvent.initCompositionEvent') |
@DocsEditable() |
@@ -2729,6 +2784,48 @@ class Coordinates extends Interceptor { |
@DocsEditable() |
+@DomName('Credential') |
+@Experimental() // untriaged |
+@Native("Credential") |
+class Credential extends Interceptor { |
+ // To suppress missing implicit constructor warnings. |
+ factory Credential._() { throw new UnsupportedError("Not supported"); } |
+ |
+ @JSName('avatarURL') |
+ @DomName('Credential.avatarURL') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final String avatarUrl; |
+ |
+ @DomName('Credential.id') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final String id; |
+ |
+ @DomName('Credential.name') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final String name; |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DocsEditable() |
+@DomName('CredentialsContainer') |
+@Experimental() // untriaged |
+@Native("CredentialsContainer") |
+class CredentialsContainer extends Interceptor { |
+ // To suppress missing implicit constructor warnings. |
+ factory CredentialsContainer._() { throw new UnsupportedError("Not supported"); } |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DocsEditable() |
@DomName('Crypto') |
@SupportedBrowser(SupportedBrowser.CHROME) |
@SupportedBrowser(SupportedBrowser.SAFARI) |
@@ -2759,29 +2856,29 @@ class Crypto extends Interceptor { |
@DocsEditable() |
-@DomName('Key') |
+@DomName('CryptoKey') |
@Experimental() // untriaged |
-@Native("Key") |
+@Native("CryptoKey") |
class CryptoKey extends Interceptor { |
// To suppress missing implicit constructor warnings. |
factory CryptoKey._() { throw new UnsupportedError("Not supported"); } |
- @DomName('Key.algorithm') |
+ @DomName('CryptoKey.algorithm') |
@DocsEditable() |
@Experimental() // untriaged |
- final KeyAlgorithm algorithm; |
+ final Object algorithm; |
- @DomName('Key.extractable') |
+ @DomName('CryptoKey.extractable') |
@DocsEditable() |
@Experimental() // untriaged |
final bool extractable; |
- @DomName('Key.type') |
+ @DomName('CryptoKey.type') |
@DocsEditable() |
@Experimental() // untriaged |
final String type; |
- @DomName('Key.usages') |
+ @DomName('CryptoKey.usages') |
@DocsEditable() |
@Experimental() // untriaged |
final List<String> usages; |
@@ -2853,25 +2950,6 @@ class CssFilterRule extends CssRule { |
@DocsEditable() |
-@DomName('CSSFontFaceLoadEvent') |
-// http://www.w3.org/TR/css3-fonts/ |
-@Experimental() |
-@Native("CSSFontFaceLoadEvent") |
-class CssFontFaceLoadEvent extends Event { |
- // To suppress missing implicit constructor warnings. |
- factory CssFontFaceLoadEvent._() { throw new UnsupportedError("Not supported"); } |
- |
- @DomName('CSSFontFaceLoadEvent.fontfaces') |
- @DocsEditable() |
- @Experimental() // untriaged |
- final List<FontFace> fontfaces; |
-} |
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
-// for details. All rights reserved. Use of this source code is governed by a |
-// BSD-style license that can be found in the LICENSE file. |
- |
- |
-@DocsEditable() |
@DomName('CSSFontFaceRule') |
@Native("CSSFontFaceRule") |
class CssFontFaceRule extends CssRule { |
@@ -6650,7 +6728,7 @@ class DataTransfer extends Interceptor { |
@DomName('DataTransfer.setData') |
@DocsEditable() |
@Experimental() // untriaged |
- bool setData(String type, String data) native; |
+ void setData(String type, String data) native; |
@DomName('DataTransfer.setDragImage') |
@DocsEditable() |
@@ -6796,7 +6874,7 @@ class DedicatedWorkerGlobalScope extends WorkerGlobalScope { |
@DomName('DedicatedWorkerGlobalScope.postMessage') |
@DocsEditable() |
@Experimental() // untriaged |
- void postMessage(Object message, [List<MessagePort> messagePorts]) native; |
+ void postMessage(Object message, [List<MessagePort> transfer]) native; |
/// Stream of `message` events handled by this [DedicatedWorkerGlobalScope]. |
@DomName('DedicatedWorkerGlobalScope.onmessage') |
@@ -7379,34 +7457,6 @@ class Document extends Node |
@DocsEditable() |
static const EventStreamProvider<Event> selectionChangeEvent = const EventStreamProvider<Event>('selectionchange'); |
- /** |
- * Static factory designed to expose `pointerlockchange` events to event |
- * handlers that are not necessarily instances of [Document]. |
- * |
- * See [EventStreamProvider] for usage information. |
- */ |
- @DomName('Document.webkitpointerlockchangeEvent') |
- @DocsEditable() |
- @SupportedBrowser(SupportedBrowser.CHROME) |
- @SupportedBrowser(SupportedBrowser.SAFARI) |
- @Experimental() |
- // https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#widl-Document-onpointerlockchange |
- static const EventStreamProvider<Event> pointerLockChangeEvent = const EventStreamProvider<Event>('webkitpointerlockchange'); |
- |
- /** |
- * Static factory designed to expose `pointerlockerror` events to event |
- * handlers that are not necessarily instances of [Document]. |
- * |
- * See [EventStreamProvider] for usage information. |
- */ |
- @DomName('Document.webkitpointerlockerrorEvent') |
- @DocsEditable() |
- @SupportedBrowser(SupportedBrowser.CHROME) |
- @SupportedBrowser(SupportedBrowser.SAFARI) |
- @Experimental() |
- // https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#widl-Document-onpointerlockerror |
- static const EventStreamProvider<Event> pointerLockErrorEvent = const EventStreamProvider<Event>('webkitpointerlockerror'); |
- |
@DomName('Document.activeElement') |
@DocsEditable() |
@Experimental() // untriaged |
@@ -7458,6 +7508,16 @@ class Document extends Node |
@Experimental() // untriaged |
final FontFaceSet fonts; |
+ @DomName('Document.fullscreenElement') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final Element fullscreenElement; |
+ |
+ @DomName('Document.fullscreenEnabled') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final bool fullscreenEnabled; |
+ |
@JSName('head') |
@DomName('Document.head') |
@DocsEditable() |
@@ -7555,15 +7615,6 @@ class Document extends Node |
// https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/PageVisibility/Overview.html#document |
final bool _webkitHidden; |
- @JSName('webkitPointerLockElement') |
- @DomName('Document.webkitPointerLockElement') |
- @DocsEditable() |
- @SupportedBrowser(SupportedBrowser.CHROME) |
- @SupportedBrowser(SupportedBrowser.SAFARI) |
- @Experimental() |
- // https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#widl-Document-pointerLockElement |
- final Element _webkitPointerLockElement; |
- |
@JSName('webkitVisibilityState') |
@DomName('Document.webkitVisibilityState') |
@DocsEditable() |
@@ -7642,6 +7693,11 @@ class Document extends Node |
@DocsEditable() |
bool execCommand(String command, bool userInterface, String value) native; |
+ @DomName('Document.exitFullscreen') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ void exitFullscreen() native; |
+ |
@DomName('Document.exitPointerLock') |
@DocsEditable() |
@Experimental() // untriaged |
@@ -7709,15 +7765,6 @@ class Document extends Node |
// https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html#dom-document-exitfullscreen |
void _webkitExitFullscreen() native; |
- @JSName('webkitExitPointerLock') |
- @DomName('Document.webkitExitPointerLock') |
- @DocsEditable() |
- @SupportedBrowser(SupportedBrowser.CHROME) |
- @SupportedBrowser(SupportedBrowser.SAFARI) |
- @Experimental() |
- // https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#widl-Document-exitPointerLock-void |
- void _webkitExitPointerLock() native; |
- |
// From ParentNode |
@JSName('childElementCount') |
@@ -8133,20 +8180,6 @@ class Document extends Node |
@Experimental() |
Stream<Event> get onFullscreenError => Element.fullscreenErrorEvent.forTarget(this); |
- /// Stream of `pointerlockchange` events handled by this [Document]. |
- @DomName('Document.onwebkitpointerlockchange') |
- @DocsEditable() |
- // https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#widl-Document-onpointerlockchange |
- @Experimental() |
- Stream<Event> get onPointerLockChange => pointerLockChangeEvent.forTarget(this); |
- |
- /// Stream of `pointerlockerror` events handled by this [Document]. |
- @DomName('Document.onwebkitpointerlockerror') |
- @DocsEditable() |
- // https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#widl-Document-onpointerlockerror |
- @Experimental() |
- Stream<Event> get onPointerLockError => pointerLockErrorEvent.forTarget(this); |
- |
/** |
* Finds all descendant elements of this document that match the specified |
* group of selectors. |
@@ -8501,6 +8534,320 @@ class DomImplementation extends Interceptor { |
@DocsEditable() |
+@DomName('DOMMatrix') |
+@Experimental() // untriaged |
+@Native("DOMMatrix") |
+class DomMatrix extends DomMatrixReadOnly { |
+ // To suppress missing implicit constructor warnings. |
+ factory DomMatrix._() { throw new UnsupportedError("Not supported"); } |
+ |
+ @DomName('DOMMatrix.DOMMatrix') |
+ @DocsEditable() |
+ factory DomMatrix([DomMatrixReadOnly other]) { |
+ if (other == null) { |
+ return DomMatrix._create_1(); |
+ } |
+ if ((other is DomMatrixReadOnly || other == null)) { |
+ return DomMatrix._create_2(other); |
+ } |
+ throw new ArgumentError("Incorrect number or type of arguments"); |
+ } |
+ static DomMatrix _create_1() => JS('DomMatrix', 'new DOMMatrix()'); |
+ static DomMatrix _create_2(other) => JS('DomMatrix', 'new DOMMatrix(#)', other); |
+ |
+ // Shadowing definition. |
+ num get a => JS("num", "#.a", this); |
+ |
+ void set a(num value) { |
+ JS("void", "#.a = #", this, value); |
+ } |
+ |
+ // Shadowing definition. |
+ num get b => JS("num", "#.b", this); |
+ |
+ void set b(num value) { |
+ JS("void", "#.b = #", this, value); |
+ } |
+ |
+ // Shadowing definition. |
+ num get c => JS("num", "#.c", this); |
+ |
+ void set c(num value) { |
+ JS("void", "#.c = #", this, value); |
+ } |
+ |
+ // Shadowing definition. |
+ num get d => JS("num", "#.d", this); |
+ |
+ void set d(num value) { |
+ JS("void", "#.d = #", this, value); |
+ } |
+ |
+ // Shadowing definition. |
+ num get e => JS("num", "#.e", this); |
+ |
+ void set e(num value) { |
+ JS("void", "#.e = #", this, value); |
+ } |
+ |
+ // Shadowing definition. |
+ num get f => JS("num", "#.f", this); |
+ |
+ void set f(num value) { |
+ JS("void", "#.f = #", this, value); |
+ } |
+ |
+ // Shadowing definition. |
+ num get m11 => JS("num", "#.m11", this); |
+ |
+ void set m11(num value) { |
+ JS("void", "#.m11 = #", this, value); |
+ } |
+ |
+ // Shadowing definition. |
+ num get m12 => JS("num", "#.m12", this); |
+ |
+ void set m12(num value) { |
+ JS("void", "#.m12 = #", this, value); |
+ } |
+ |
+ // Shadowing definition. |
+ num get m13 => JS("num", "#.m13", this); |
+ |
+ void set m13(num value) { |
+ JS("void", "#.m13 = #", this, value); |
+ } |
+ |
+ // Shadowing definition. |
+ num get m14 => JS("num", "#.m14", this); |
+ |
+ void set m14(num value) { |
+ JS("void", "#.m14 = #", this, value); |
+ } |
+ |
+ // Shadowing definition. |
+ num get m21 => JS("num", "#.m21", this); |
+ |
+ void set m21(num value) { |
+ JS("void", "#.m21 = #", this, value); |
+ } |
+ |
+ // Shadowing definition. |
+ num get m22 => JS("num", "#.m22", this); |
+ |
+ void set m22(num value) { |
+ JS("void", "#.m22 = #", this, value); |
+ } |
+ |
+ // Shadowing definition. |
+ num get m23 => JS("num", "#.m23", this); |
+ |
+ void set m23(num value) { |
+ JS("void", "#.m23 = #", this, value); |
+ } |
+ |
+ // Shadowing definition. |
+ num get m24 => JS("num", "#.m24", this); |
+ |
+ void set m24(num value) { |
+ JS("void", "#.m24 = #", this, value); |
+ } |
+ |
+ // Shadowing definition. |
+ num get m31 => JS("num", "#.m31", this); |
+ |
+ void set m31(num value) { |
+ JS("void", "#.m31 = #", this, value); |
+ } |
+ |
+ // Shadowing definition. |
+ num get m32 => JS("num", "#.m32", this); |
+ |
+ void set m32(num value) { |
+ JS("void", "#.m32 = #", this, value); |
+ } |
+ |
+ // Shadowing definition. |
+ num get m33 => JS("num", "#.m33", this); |
+ |
+ void set m33(num value) { |
+ JS("void", "#.m33 = #", this, value); |
+ } |
+ |
+ // Shadowing definition. |
+ num get m34 => JS("num", "#.m34", this); |
+ |
+ void set m34(num value) { |
+ JS("void", "#.m34 = #", this, value); |
+ } |
+ |
+ // Shadowing definition. |
+ num get m41 => JS("num", "#.m41", this); |
+ |
+ void set m41(num value) { |
+ JS("void", "#.m41 = #", this, value); |
+ } |
+ |
+ // Shadowing definition. |
+ num get m42 => JS("num", "#.m42", this); |
+ |
+ void set m42(num value) { |
+ JS("void", "#.m42 = #", this, value); |
+ } |
+ |
+ // Shadowing definition. |
+ num get m43 => JS("num", "#.m43", this); |
+ |
+ void set m43(num value) { |
+ JS("void", "#.m43 = #", this, value); |
+ } |
+ |
+ // Shadowing definition. |
+ num get m44 => JS("num", "#.m44", this); |
+ |
+ void set m44(num value) { |
+ JS("void", "#.m44 = #", this, value); |
+ } |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DocsEditable() |
+@DomName('DOMMatrixReadOnly') |
+@Experimental() // untriaged |
+@Native("DOMMatrixReadOnly") |
+class DomMatrixReadOnly extends Interceptor { |
+ // To suppress missing implicit constructor warnings. |
+ factory DomMatrixReadOnly._() { throw new UnsupportedError("Not supported"); } |
+ |
+ @DomName('DOMMatrixReadOnly.a') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final double a; |
+ |
+ @DomName('DOMMatrixReadOnly.b') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final double b; |
+ |
+ @DomName('DOMMatrixReadOnly.c') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final double c; |
+ |
+ @DomName('DOMMatrixReadOnly.d') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final double d; |
+ |
+ @DomName('DOMMatrixReadOnly.e') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final double e; |
+ |
+ @DomName('DOMMatrixReadOnly.f') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final double f; |
+ |
+ @DomName('DOMMatrixReadOnly.is2D') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final bool is2D; |
+ |
+ @DomName('DOMMatrixReadOnly.isIdentity') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final bool isIdentity; |
+ |
+ @DomName('DOMMatrixReadOnly.m11') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final double m11; |
+ |
+ @DomName('DOMMatrixReadOnly.m12') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final double m12; |
+ |
+ @DomName('DOMMatrixReadOnly.m13') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final double m13; |
+ |
+ @DomName('DOMMatrixReadOnly.m14') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final double m14; |
+ |
+ @DomName('DOMMatrixReadOnly.m21') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final double m21; |
+ |
+ @DomName('DOMMatrixReadOnly.m22') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final double m22; |
+ |
+ @DomName('DOMMatrixReadOnly.m23') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final double m23; |
+ |
+ @DomName('DOMMatrixReadOnly.m24') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final double m24; |
+ |
+ @DomName('DOMMatrixReadOnly.m31') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final double m31; |
+ |
+ @DomName('DOMMatrixReadOnly.m32') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final double m32; |
+ |
+ @DomName('DOMMatrixReadOnly.m33') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final double m33; |
+ |
+ @DomName('DOMMatrixReadOnly.m34') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final double m34; |
+ |
+ @DomName('DOMMatrixReadOnly.m41') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final double m41; |
+ |
+ @DomName('DOMMatrixReadOnly.m42') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final double m42; |
+ |
+ @DomName('DOMMatrixReadOnly.m43') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final double m43; |
+ |
+ @DomName('DOMMatrixReadOnly.m44') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final double m44; |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DocsEditable() |
@DomName('DOMParser') |
@Native("DOMParser") |
class DomParser extends Interceptor { |
@@ -8524,6 +8871,264 @@ class DomParser extends Interceptor { |
@DocsEditable() |
+@DomName('DOMPoint') |
+@Experimental() // untriaged |
+@Native("DOMPoint") |
+class DomPoint extends DomPointReadOnly { |
+ // To suppress missing implicit constructor warnings. |
+ factory DomPoint._() { throw new UnsupportedError("Not supported"); } |
+ |
+ @DomName('DOMPoint.DOMPoint') |
+ @DocsEditable() |
+ factory DomPoint([point_OR_x, num y, num z, num w]) { |
+ if (point_OR_x == null && y == null && z == null && w == null) { |
+ return DomPoint._create_1(); |
+ } |
+ if ((point_OR_x is Map || point_OR_x == null) && y == null && z == null && w == null) { |
+ return DomPoint._create_2(point_OR_x); |
+ } |
+ if ((y is num || y == null) && (point_OR_x is num || point_OR_x == null) && z == null && w == null) { |
+ return DomPoint._create_3(point_OR_x, y); |
+ } |
+ if ((z is num || z == null) && (y is num || y == null) && (point_OR_x is num || point_OR_x == null) && w == null) { |
+ return DomPoint._create_4(point_OR_x, y, z); |
+ } |
+ if ((w is num || w == null) && (z is num || z == null) && (y is num || y == null) && (point_OR_x is num || point_OR_x == null)) { |
+ return DomPoint._create_5(point_OR_x, y, z, w); |
+ } |
+ throw new ArgumentError("Incorrect number or type of arguments"); |
+ } |
+ static DomPoint _create_1() => JS('DomPoint', 'new DOMPoint()'); |
+ static DomPoint _create_2(point_OR_x) => JS('DomPoint', 'new DOMPoint(#)', point_OR_x); |
+ static DomPoint _create_3(point_OR_x, y) => JS('DomPoint', 'new DOMPoint(#,#)', point_OR_x, y); |
+ static DomPoint _create_4(point_OR_x, y, z) => JS('DomPoint', 'new DOMPoint(#,#,#)', point_OR_x, y, z); |
+ static DomPoint _create_5(point_OR_x, y, z, w) => JS('DomPoint', 'new DOMPoint(#,#,#,#)', point_OR_x, y, z, w); |
+ |
+ // Shadowing definition. |
+ num get w => JS("num", "#.w", this); |
+ |
+ void set w(num value) { |
+ JS("void", "#.w = #", this, value); |
+ } |
+ |
+ // Shadowing definition. |
+ num get x => JS("num", "#.x", this); |
+ |
+ void set x(num value) { |
+ JS("void", "#.x = #", this, value); |
+ } |
+ |
+ // Shadowing definition. |
+ num get y => JS("num", "#.y", this); |
+ |
+ void set y(num value) { |
+ JS("void", "#.y = #", this, value); |
+ } |
+ |
+ // Shadowing definition. |
+ num get z => JS("num", "#.z", this); |
+ |
+ void set z(num value) { |
+ JS("void", "#.z = #", this, value); |
+ } |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DocsEditable() |
+@DomName('DOMPointReadOnly') |
+@Experimental() // untriaged |
+@Native("DOMPointReadOnly") |
+class DomPointReadOnly extends Interceptor { |
+ // To suppress missing implicit constructor warnings. |
+ factory DomPointReadOnly._() { throw new UnsupportedError("Not supported"); } |
+ |
+ @DomName('DOMPointReadOnly.DOMPointReadOnly') |
+ @DocsEditable() |
+ factory DomPointReadOnly(num x, num y, num z, num w) { |
+ return DomPointReadOnly._create_1(x, y, z, w); |
+ } |
+ static DomPointReadOnly _create_1(x, y, z, w) => JS('DomPointReadOnly', 'new DOMPointReadOnly(#,#,#,#)', x, y, z, w); |
+ |
+ @DomName('DOMPointReadOnly.w') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final double w; |
+ |
+ @DomName('DOMPointReadOnly.x') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final double x; |
+ |
+ @DomName('DOMPointReadOnly.y') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final double y; |
+ |
+ @DomName('DOMPointReadOnly.z') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final double z; |
+} |
+// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DocsEditable() |
+@DomName('DOMRectReadOnly') |
+@Experimental() // untriaged |
+@Native("DOMRectReadOnly") |
+class DomRectReadOnly extends Interceptor implements Rectangle { |
+ |
+ // NOTE! All code below should be common with RectangleBase. |
+ String toString() { |
+ return 'Rectangle ($left, $top) $width x $height'; |
+ } |
+ |
+ bool operator ==(other) { |
+ if (other is !Rectangle) return false; |
+ return left == other.left && top == other.top && width == other.width && |
+ height == other.height; |
+ } |
+ |
+ int get hashCode => _JenkinsSmiHash.hash4(left.hashCode, top.hashCode, |
+ width.hashCode, height.hashCode); |
+ |
+ /** |
+ * Computes the intersection of `this` and [other]. |
+ * |
+ * The intersection of two axis-aligned rectangles, if any, is always another |
+ * axis-aligned rectangle. |
+ * |
+ * Returns the intersection of this and `other`, or null if they don't |
+ * intersect. |
+ */ |
+ Rectangle intersection(Rectangle other) { |
+ var x0 = max(left, other.left); |
+ var x1 = min(left + width, other.left + other.width); |
+ |
+ if (x0 <= x1) { |
+ var y0 = max(top, other.top); |
+ var y1 = min(top + height, other.top + other.height); |
+ |
+ if (y0 <= y1) { |
+ return new Rectangle(x0, y0, x1 - x0, y1 - y0); |
+ } |
+ } |
+ return null; |
+ } |
+ |
+ |
+ /** |
+ * Returns true if `this` intersects [other]. |
+ */ |
+ bool intersects(Rectangle<num> other) { |
+ return (left <= other.left + other.width && |
+ other.left <= left + width && |
+ top <= other.top + other.height && |
+ other.top <= top + height); |
+ } |
+ |
+ /** |
+ * Returns a new rectangle which completely contains `this` and [other]. |
+ */ |
+ Rectangle boundingBox(Rectangle other) { |
+ var right = max(this.left + this.width, other.left + other.width); |
+ var bottom = max(this.top + this.height, other.top + other.height); |
+ |
+ var left = min(this.left, other.left); |
+ var top = min(this.top, other.top); |
+ |
+ return new Rectangle(left, top, right - left, bottom - top); |
+ } |
+ |
+ /** |
+ * Tests whether `this` entirely contains [another]. |
+ */ |
+ bool containsRectangle(Rectangle<num> another) { |
+ return left <= another.left && |
+ left + width >= another.left + another.width && |
+ top <= another.top && |
+ top + height >= another.top + another.height; |
+ } |
+ |
+ /** |
+ * Tests whether [another] is inside or along the edges of `this`. |
+ */ |
+ bool containsPoint(Point<num> another) { |
+ return another.x >= left && |
+ another.x <= left + width && |
+ another.y >= top && |
+ another.y <= top + height; |
+ } |
+ |
+ Point get topLeft => new Point(this.left, this.top); |
+ Point get topRight => new Point(this.left + this.width, this.top); |
+ Point get bottomRight => new Point(this.left + this.width, |
+ this.top + this.height); |
+ Point get bottomLeft => new Point(this.left, |
+ this.top + this.height); |
+ |
+ // To suppress missing implicit constructor warnings. |
+ factory DomRectReadOnly._() { throw new UnsupportedError("Not supported"); } |
+ |
+ @DomName('DOMRectReadOnly.DOMRectReadOnly') |
+ @DocsEditable() |
+ factory DomRectReadOnly(num x, num y, num width, num height) { |
+ return DomRectReadOnly._create_1(x, y, width, height); |
+ } |
+ static DomRectReadOnly _create_1(x, y, width, height) => JS('DomRectReadOnly', 'new DOMRectReadOnly(#,#,#,#)', x, y, width, height); |
+ |
+ @DomName('DOMRectReadOnly.bottom') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final double bottom; |
+ |
+ @DomName('DOMRectReadOnly.height') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final double height; |
+ |
+ @DomName('DOMRectReadOnly.left') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final double left; |
+ |
+ @DomName('DOMRectReadOnly.right') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final double right; |
+ |
+ @DomName('DOMRectReadOnly.top') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final double top; |
+ |
+ @DomName('DOMRectReadOnly.width') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final double width; |
+ |
+ @DomName('DOMRectReadOnly.x') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final double x; |
+ |
+ @DomName('DOMRectReadOnly.y') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final double y; |
+} |
+ |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DocsEditable() |
@DomName('DOMSettableTokenList') |
@Native("DOMSettableTokenList") |
class DomSettableTokenList extends DomTokenList { |
@@ -8657,10 +9262,6 @@ class DomTokenList extends Interceptor { |
@Experimental() // untriaged |
void remove(String tokens) native; |
- @DomName('DOMTokenList.toString') |
- @DocsEditable() |
- String toString() native; |
- |
@DomName('DOMTokenList.toggle') |
@DocsEditable() |
bool toggle(String token, [bool force]) native; |
@@ -11858,6 +12459,11 @@ abstract class Element extends Node implements GlobalEventHandlers, ParentNode, |
@DocsEditable() |
void focus() native; |
+ @DomName('Element.getAnimationPlayers') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ List<AnimationPlayer> getAnimationPlayers() native; |
+ |
@DomName('Element.getAttribute') |
@DocsEditable() |
@Experimental() // untriaged |
@@ -11965,34 +12571,15 @@ abstract class Element extends Node implements GlobalEventHandlers, ParentNode, |
@DocsEditable() |
void _removeAttributeNS(String namespaceURI, String localName) native; |
- @DomName('Element.requestPointerLock') |
+ @DomName('Element.requestFullscreen') |
@DocsEditable() |
@Experimental() // untriaged |
- void requestPointerLock() native; |
- |
- /** |
- * Scrolls the element by a number of lines. |
- * |
- * ## Other resources |
- * |
- * * [scrollByLines] |
- * (http://docs.webplatform.org/wiki/dom/methods/scrollByLines) from WebPlatform.org. |
- */ |
- @DomName('Element.scrollByLines') |
- @DocsEditable() |
- void scrollByLines(int lines) native; |
+ void requestFullscreen() native; |
- /** |
- * Scrolls the element by a number of pages. |
- * |
- * ## Other resources |
- * |
- * * [scrollByPages] |
- * (http://docs.webplatform.org/wiki/dom/methods/scrollByPages) from WebPlatform.org. |
- */ |
- @DomName('Element.scrollByPages') |
+ @DomName('Element.requestPointerLock') |
@DocsEditable() |
- void scrollByPages(int pages) native; |
+ @Experimental() // untriaged |
+ void requestPointerLock() native; |
@JSName('scrollIntoView') |
@DomName('Element.scrollIntoView') |
@@ -12014,26 +12601,6 @@ abstract class Element extends Node implements GlobalEventHandlers, ParentNode, |
@DocsEditable() |
void setAttributeNS(String namespaceURI, String qualifiedName, String value) native; |
- @JSName('webkitRequestFullscreen') |
- /** |
- * Displays this element fullscreen. |
- * |
- * ## Other resources |
- * |
- * * [Using the fullscreen API] |
- * (http://docs.webplatform.org/wiki/tutorials/using_the_full-screen_api) |
- * tutorial from WebPlatform.org. |
- * * [Fullscreen specification] |
- * (http://www.w3.org/TR/fullscreen/) from W3C. |
- */ |
- @DomName('Element.webkitRequestFullscreen') |
- @DocsEditable() |
- @SupportedBrowser(SupportedBrowser.CHROME) |
- @SupportedBrowser(SupportedBrowser.SAFARI) |
- @Experimental() |
- // https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html#dom-element-requestfullscreen |
- void requestFullscreen() native; |
- |
// From ChildNode |
@DomName('Element.nextElementSibling') |
@@ -13296,6 +13863,44 @@ class EventTarget extends Interceptor { |
@DocsEditable() |
+@DomName('FederatedCredential') |
+@Experimental() // untriaged |
+@Native("FederatedCredential") |
+class FederatedCredential extends Credential { |
+ // To suppress missing implicit constructor warnings. |
+ factory FederatedCredential._() { throw new UnsupportedError("Not supported"); } |
+ |
+ @DomName('FederatedCredential.FederatedCredential') |
+ @DocsEditable() |
+ factory FederatedCredential(String id, String name, String avatarURL, String federation) { |
+ return FederatedCredential._create_1(id, name, avatarURL, federation); |
+ } |
+ static FederatedCredential _create_1(id, name, avatarURL, federation) => JS('FederatedCredential', 'new FederatedCredential(#,#,#,#)', id, name, avatarURL, federation); |
+ |
+ @DomName('FederatedCredential.federation') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final String federation; |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DocsEditable() |
+@DomName('FetchBodyStream') |
+@Experimental() // untriaged |
+@Native("FetchBodyStream") |
+class FetchBodyStream extends Interceptor { |
+ // To suppress missing implicit constructor warnings. |
+ factory FetchBodyStream._() { throw new UnsupportedError("Not supported"); } |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DocsEditable() |
@DomName('FetchEvent') |
@Experimental() // untriaged |
@Native("FetchEvent") |
@@ -13303,6 +13908,11 @@ class FetchEvent extends Event { |
// To suppress missing implicit constructor warnings. |
factory FetchEvent._() { throw new UnsupportedError("Not supported"); } |
+ @DomName('FetchEvent.isReload') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final bool isReload; |
+ |
@DomName('FetchEvent.request') |
@DocsEditable() |
@Experimental() // untriaged |
@@ -14149,6 +14759,24 @@ typedef void FontFaceSetForEachCallback(FontFace fontFace, FontFace fontFaceAgai |
@DocsEditable() |
+@DomName('FontFaceSetLoadEvent') |
+@Experimental() // untriaged |
+@Native("FontFaceSetLoadEvent") |
+class FontFaceSetLoadEvent extends Event { |
+ // To suppress missing implicit constructor warnings. |
+ factory FontFaceSetLoadEvent._() { throw new UnsupportedError("Not supported"); } |
+ |
+ @DomName('FontFaceSetLoadEvent.fontfaces') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final List<FontFace> fontfaces; |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DocsEditable() |
@DomName('FormData') |
@SupportedBrowser(SupportedBrowser.CHROME) |
@SupportedBrowser(SupportedBrowser.FIREFOX) |
@@ -14365,6 +14993,37 @@ class GamepadEvent extends Event { |
@DocsEditable() |
+@DomName('Geofencing') |
+@Experimental() // untriaged |
+@Native("Geofencing") |
+class Geofencing extends Interceptor { |
+ // To suppress missing implicit constructor warnings. |
+ factory Geofencing._() { throw new UnsupportedError("Not supported"); } |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DocsEditable() |
+@DomName('GeofencingRegion') |
+@Experimental() // untriaged |
+@Native("GeofencingRegion") |
+class GeofencingRegion extends Interceptor { |
+ // To suppress missing implicit constructor warnings. |
+ factory GeofencingRegion._() { throw new UnsupportedError("Not supported"); } |
+ |
+ @DomName('GeofencingRegion.id') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final String id; |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DocsEditable() |
@DomName('Geolocation') |
@Unstable() |
@Native("Geolocation") |
@@ -14454,15 +15113,58 @@ class Geolocation extends Interceptor { |
@DocsEditable() |
void _clearWatch(int watchID) native; |
+ @DomName('Geolocation.getCurrentPosition') |
+ @DocsEditable() |
+ void _getCurrentPosition(_PositionCallback successCallback, [_PositionErrorCallback errorCallback, Map options]) { |
+ if (options != null) { |
+ var options_1 = convertDartToNative_Dictionary(options); |
+ _getCurrentPosition_1(successCallback, errorCallback, options_1); |
+ return; |
+ } |
+ if (errorCallback != null) { |
+ _getCurrentPosition_2(successCallback, errorCallback); |
+ return; |
+ } |
+ _getCurrentPosition_3(successCallback); |
+ return; |
+ } |
@JSName('getCurrentPosition') |
@DomName('Geolocation.getCurrentPosition') |
@DocsEditable() |
- void _getCurrentPosition(_PositionCallback successCallback, [_PositionErrorCallback errorCallback, Object options]) native; |
+ void _getCurrentPosition_1(_PositionCallback successCallback, _PositionErrorCallback errorCallback, options) native; |
+ @JSName('getCurrentPosition') |
+ @DomName('Geolocation.getCurrentPosition') |
+ @DocsEditable() |
+ void _getCurrentPosition_2(_PositionCallback successCallback, _PositionErrorCallback errorCallback) native; |
+ @JSName('getCurrentPosition') |
+ @DomName('Geolocation.getCurrentPosition') |
+ @DocsEditable() |
+ void _getCurrentPosition_3(_PositionCallback successCallback) native; |
+ @DomName('Geolocation.watchPosition') |
+ @DocsEditable() |
+ int _watchPosition(_PositionCallback successCallback, [_PositionErrorCallback errorCallback, Map options]) { |
+ if (options != null) { |
+ var options_1 = convertDartToNative_Dictionary(options); |
+ return _watchPosition_1(successCallback, errorCallback, options_1); |
+ } |
+ if (errorCallback != null) { |
+ return _watchPosition_2(successCallback, errorCallback); |
+ } |
+ return _watchPosition_3(successCallback); |
+ } |
+ @JSName('watchPosition') |
+ @DomName('Geolocation.watchPosition') |
+ @DocsEditable() |
+ int _watchPosition_1(_PositionCallback successCallback, _PositionErrorCallback errorCallback, options) native; |
@JSName('watchPosition') |
@DomName('Geolocation.watchPosition') |
@DocsEditable() |
- int _watchPosition(_PositionCallback successCallback, [_PositionErrorCallback errorCallback, Object options]) native; |
+ int _watchPosition_2(_PositionCallback successCallback, _PositionErrorCallback errorCallback) native; |
+ @JSName('watchPosition') |
+ @DomName('Geolocation.watchPosition') |
+ @DocsEditable() |
+ int _watchPosition_3(_PositionCallback successCallback) native; |
} |
/** |
@@ -15130,54 +15832,40 @@ class HeadElement extends HtmlElement { |
@DocsEditable() |
-@DomName('HeaderMap') |
+@DomName('Headers') |
@Experimental() // untriaged |
-@Native("HeaderMap") |
-class HeaderMap extends Interceptor { |
+@Native("Headers") |
+class Headers extends Interceptor { |
// To suppress missing implicit constructor warnings. |
- factory HeaderMap._() { throw new UnsupportedError("Not supported"); } |
+ factory Headers._() { throw new UnsupportedError("Not supported"); } |
- @DomName('HeaderMap.HeaderMap') |
+ @DomName('Headers.Headers') |
@DocsEditable() |
- factory HeaderMap() { |
- return HeaderMap._create_1(); |
+ factory Headers([input]) { |
+ if (input == null) { |
+ return Headers._create_1(); |
+ } |
+ if ((input is Headers || input == null)) { |
+ return Headers._create_2(input); |
+ } |
+ if ((input is Map || input == null)) { |
+ return Headers._create_3(input); |
+ } |
+ throw new ArgumentError("Incorrect number or type of arguments"); |
} |
- static HeaderMap _create_1() => JS('HeaderMap', 'new HeaderMap()'); |
+ static Headers _create_1() => JS('Headers', 'new Headers()'); |
+ static Headers _create_2(input) => JS('Headers', 'new Headers(#)', input); |
+ static Headers _create_3(input) => JS('Headers', 'new Headers(#)', input); |
- @DomName('HeaderMap.size') |
+ @DomName('Headers.size') |
@DocsEditable() |
@Experimental() // untriaged |
final int size; |
- @DomName('HeaderMap.clear') |
- @DocsEditable() |
- @Experimental() // untriaged |
- void clear() native; |
- |
- @DomName('HeaderMap.delete') |
- @DocsEditable() |
- @Experimental() // untriaged |
- bool delete(String key) native; |
- |
- @DomName('HeaderMap.forEach') |
- @DocsEditable() |
- @Experimental() // untriaged |
- void forEach(HeaderMapForEachCallback callback, [Object thisArg]) native; |
- |
- @DomName('HeaderMap.get') |
+ @DomName('Headers.forEach') |
@DocsEditable() |
@Experimental() // untriaged |
- String get(String key) native; |
- |
- @DomName('HeaderMap.has') |
- @DocsEditable() |
- @Experimental() // untriaged |
- bool has(String key) native; |
- |
- @DomName('HeaderMap.set') |
- @DocsEditable() |
- @Experimental() // untriaged |
- void set(String key, String value) native; |
+ void forEach(HeadersForEachCallback callback, [Object thisArg]) native; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -15186,9 +15874,9 @@ class HeaderMap extends Interceptor { |
// WARNING: Do not edit - generated code. |
-@DomName('HeaderMapForEachCallback') |
+@DomName('HeadersForEachCallback') |
@Experimental() // untriaged |
-typedef void HeaderMapForEachCallback(String value, String key, HeaderMap map); |
+typedef void HeadersForEachCallback(String value, String key, Headers map); |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
@@ -15301,29 +15989,6 @@ class History extends Interceptor implements HistoryBase { |
@DocsEditable() |
-@DomName('HmacKeyAlgorithm') |
-@Experimental() // untriaged |
-@Native("HmacKeyAlgorithm") |
-class HmacKeyAlgorithm extends KeyAlgorithm { |
- // To suppress missing implicit constructor warnings. |
- factory HmacKeyAlgorithm._() { throw new UnsupportedError("Not supported"); } |
- |
- @DomName('HmacKeyAlgorithm.hash') |
- @DocsEditable() |
- @Experimental() // untriaged |
- final KeyAlgorithm hash; |
- |
- @DomName('HmacKeyAlgorithm.length') |
- @DocsEditable() |
- @Experimental() // untriaged |
- final int length; |
-} |
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
-// for details. All rights reserved. Use of this source code is governed by a |
-// BSD-style license that can be found in the LICENSE file. |
- |
- |
-@DocsEditable() |
@DomName('HTMLCollection') |
@Native("HTMLCollection") |
class HtmlCollection extends Interceptor with ListMixin<Node>, ImmutableListMixin<Node> implements JavaScriptIndexingBehavior, List<Node> { |
@@ -15503,14 +16168,6 @@ class HtmlDocument extends Document { |
_webkitExitFullscreen(); |
} |
- @DomName('Document.webkitExitPointerLock') |
- @SupportedBrowser(SupportedBrowser.CHROME) |
- @SupportedBrowser(SupportedBrowser.SAFARI) |
- @Experimental() |
- void exitPointerLock() { |
- _webkitExitPointerLock(); |
- } |
- |
/** |
* Returns the element, if any, that is currently displayed in fullscreen. |
* |
@@ -15560,13 +16217,6 @@ class HtmlDocument extends Document { |
@Experimental() |
bool get hidden => _webkitHidden; |
- @DomName('Document.webkitPointerLockElement') |
- @SupportedBrowser(SupportedBrowser.CHROME) |
- @SupportedBrowser(SupportedBrowser.SAFARI) |
- @Experimental() |
- Element get pointerLockElement => |
- _webkitPointerLockElement; |
- |
@DomName('Document.visibilityState') |
@SupportedBrowser(SupportedBrowser.CHROME) |
@SupportedBrowser(SupportedBrowser.FIREFOX) |
@@ -16605,6 +17255,11 @@ class IFrameElement extends HtmlElement { |
*/ |
IFrameElement.created() : super.created(); |
+ @DomName('HTMLIFrameElement.allowFullscreen') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ bool allowFullscreen; |
+ |
@DomName('HTMLIFrameElement.contentWindow') |
@DocsEditable() |
WindowBase get contentWindow => _convertNativeToDart_Window(this._get_contentWindow); |
@@ -16883,6 +17538,11 @@ class InputElement extends HtmlElement implements |
@DocsEditable() |
bool autofocus; |
+ @DomName('HTMLInputElement.capture') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ bool capture; |
+ |
@DomName('HTMLInputElement.checked') |
@DocsEditable() |
bool checked; |
@@ -17748,24 +18408,6 @@ class InstallPhaseEvent extends Event { |
// BSD-style license that can be found in the LICENSE file. |
-@DocsEditable() |
-@DomName('KeyAlgorithm') |
-@Experimental() // untriaged |
-@Native("KeyAlgorithm") |
-class KeyAlgorithm extends Interceptor { |
- // To suppress missing implicit constructor warnings. |
- factory KeyAlgorithm._() { throw new UnsupportedError("Not supported"); } |
- |
- @DomName('KeyAlgorithm.name') |
- @DocsEditable() |
- @Experimental() // untriaged |
- final String name; |
-} |
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
-// for details. All rights reserved. Use of this source code is governed by a |
-// BSD-style license that can be found in the LICENSE file. |
- |
- |
/** |
* An event that describes user interaction with the keyboard. |
* |
@@ -17792,21 +18434,20 @@ class KeyboardEvent extends UIEvent { |
factory KeyboardEvent(String type, |
{Window view, bool canBubble: true, bool cancelable: true, |
int keyLocation: 1, bool ctrlKey: false, |
- bool altKey: false, bool shiftKey: false, bool metaKey: false, |
- bool altGraphKey: false}) { |
+ bool altKey: false, bool shiftKey: false, bool metaKey: false}) { |
if (view == null) { |
view = window; |
} |
final e = document._createEvent("KeyboardEvent"); |
e._initKeyboardEvent(type, canBubble, cancelable, view, "", |
- keyLocation, ctrlKey, altKey, shiftKey, metaKey, altGraphKey); |
+ keyLocation, ctrlKey, altKey, shiftKey, metaKey); |
return e; |
} |
@DomName('KeyboardEvent.initKeyboardEvent') |
void _initKeyboardEvent(String type, bool canBubble, bool cancelable, |
Window view, String keyIdentifier, int keyLocation, bool ctrlKey, |
- bool altKey, bool shiftKey, bool metaKey, bool altGraphKey) { |
+ bool altKey, bool shiftKey, bool metaKey) { |
if (JS('bool', 'typeof(#.initKeyEvent) == "function"', this)) { |
// initKeyEvent is only in Firefox (instead of initKeyboardEvent). It has |
// a slightly different signature, and allows you to specify keyCode and |
@@ -17817,9 +18458,9 @@ class KeyboardEvent extends UIEvent { |
ctrlKey, altKey, shiftKey, metaKey); |
} else { |
// initKeyboardEvent is for all other browsers. |
- JS('void', '#.initKeyboardEvent(#, #, #, #, #, #, #, #, #, #, #)', this, |
+ JS('void', '#.initKeyboardEvent(#, #, #, #, #, #, #, #, #, #)', this, |
type, canBubble, cancelable, view, keyIdentifier, keyLocation, |
- ctrlKey, altKey, shiftKey, metaKey, altGraphKey); |
+ ctrlKey, altKey, shiftKey, metaKey); |
} |
} |
@@ -17851,11 +18492,6 @@ class KeyboardEvent extends UIEvent { |
@Experimental() // untriaged |
static const int DOM_KEY_LOCATION_STANDARD = 0x00; |
- @DomName('KeyboardEvent.altGraphKey') |
- @DocsEditable() |
- @Experimental() // nonstandard |
- final bool altGraphKey; |
- |
@DomName('KeyboardEvent.altKey') |
@DocsEditable() |
final bool altKey; |
@@ -18145,6 +18781,31 @@ class LinkElement extends HtmlElement { |
return JS('bool', '("import" in #)', this); |
} |
} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DocsEditable() |
+@DomName('LocalCredential') |
+@Experimental() // untriaged |
+@Native("LocalCredential") |
+class LocalCredential extends Credential { |
+ // To suppress missing implicit constructor warnings. |
+ factory LocalCredential._() { throw new UnsupportedError("Not supported"); } |
+ |
+ @DomName('LocalCredential.LocalCredential') |
+ @DocsEditable() |
+ factory LocalCredential(String id, String name, String avatarURL, String password) { |
+ return LocalCredential._create_1(id, name, avatarURL, password); |
+ } |
+ static LocalCredential _create_1(id, name, avatarURL, password) => JS('LocalCredential', 'new LocalCredential(#,#,#,#)', id, name, avatarURL, password); |
+ |
+ @DomName('LocalCredential.password') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final String password; |
+} |
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
@@ -18884,7 +19545,7 @@ class MediaKeyMessageEvent extends Event { |
@DomName('MediaKeyMessageEvent.message') |
@DocsEditable() |
- final Uint8List message; |
+ final ByteBuffer message; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -18934,15 +19595,6 @@ class MediaKeySession extends EventTarget { |
@DomName('MediaKeySession.sessionId') |
@DocsEditable() |
final String sessionId; |
- |
- @DomName('MediaKeySession.release') |
- @DocsEditable() |
- @Experimental() // untriaged |
- void release() native; |
- |
- @DomName('MediaKeySession.update') |
- @DocsEditable() |
- void update(Uint8List response) native; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -18958,21 +19610,10 @@ class MediaKeys extends Interceptor { |
// To suppress missing implicit constructor warnings. |
factory MediaKeys._() { throw new UnsupportedError("Not supported"); } |
- @DomName('MediaKeys.MediaKeys') |
- @DocsEditable() |
- factory MediaKeys(String keySystem) { |
- return MediaKeys._create_1(keySystem); |
- } |
- static MediaKeys _create_1(keySystem) => JS('MediaKeys', 'new MediaKeys(#)', keySystem); |
- |
@DomName('MediaKeys.keySystem') |
@DocsEditable() |
final String keySystem; |
- @DomName('MediaKeys.createSession') |
- @DocsEditable() |
- MediaKeySession createSession(String type, Uint8List initData) native; |
- |
@DomName('MediaKeys.isTypeSupported') |
@DocsEditable() |
@Experimental() // untriaged |
@@ -19179,6 +19820,11 @@ class MediaStream extends EventTarget { |
@DocsEditable() |
MediaStreamTrack getTrackById(String trackId) native; |
+ @DomName('MediaStream.getTracks') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ List<MediaStreamTrack> getTracks() native; |
+ |
@DomName('MediaStream.getVideoTracks') |
@DocsEditable() |
@Creates('JSExtendableArray') |
@@ -19307,6 +19953,11 @@ class MediaStreamTrack extends EventTarget { |
@DocsEditable() |
final String label; |
+ @DomName('MediaStreamTrack.muted') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final bool muted; |
+ |
@DomName('MediaStreamTrack.readyState') |
@DocsEditable() |
final String readyState; |
@@ -19441,6 +20092,61 @@ class MenuElement extends HtmlElement { |
* This can only be called by subclasses from their created constructor. |
*/ |
MenuElement.created() : super.created(); |
+ |
+ @DomName('HTMLMenuElement.label') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ String label; |
+ |
+ @DomName('HTMLMenuElement.type') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ String type; |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DocsEditable() |
+@DomName('HTMLMenuItemElement') |
+@Experimental() // untriaged |
+@Native("HTMLMenuItemElement") |
+class MenuItemElement extends HtmlElement { |
+ // To suppress missing implicit constructor warnings. |
+ factory MenuItemElement._() { throw new UnsupportedError("Not supported"); } |
+ /** |
+ * Constructor instantiated by the DOM when a custom element has been created. |
+ * |
+ * This can only be called by subclasses from their created constructor. |
+ */ |
+ MenuItemElement.created() : super.created(); |
+ |
+ @DomName('HTMLMenuItemElement.checked') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ bool checked; |
+ |
+ @JSName('default') |
+ @DomName('HTMLMenuItemElement.default') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ bool defaultValue; |
+ |
+ @DomName('HTMLMenuItemElement.disabled') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ bool disabled; |
+ |
+ @DomName('HTMLMenuItemElement.label') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ String label; |
+ |
+ @DomName('HTMLMenuItemElement.type') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ String type; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -19558,10 +20264,10 @@ class MessagePort extends EventTarget { |
@DomName('MessagePort.postMessage') |
@DocsEditable() |
- void postMessage(/*any*/ message, [List<MessagePort> messagePorts]) { |
- if (messagePorts != null) { |
+ void postMessage(/*any*/ message, [List<MessagePort> transfer]) { |
+ if (transfer != null) { |
var message_1 = convertDartToNative_SerializedScriptValue(message); |
- _postMessage_1(message_1, messagePorts); |
+ _postMessage_1(message_1, transfer); |
return; |
} |
var message_2 = convertDartToNative_SerializedScriptValue(message); |
@@ -19571,7 +20277,7 @@ class MessagePort extends EventTarget { |
@JSName('postMessage') |
@DomName('MessagePort.postMessage') |
@DocsEditable() |
- void _postMessage_1(message, List<MessagePort> messagePorts) native; |
+ void _postMessage_1(message, List<MessagePort> transfer) native; |
@JSName('postMessage') |
@DomName('MessagePort.postMessage') |
@DocsEditable() |
@@ -20121,6 +20827,11 @@ class MouseEvent extends UIEvent { |
@Experimental() // untriaged |
final int _movementY; |
+ @DomName('MouseEvent.region') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final String region; |
+ |
@DomName('MouseEvent.relatedTarget') |
@DocsEditable() |
EventTarget get relatedTarget => _convertNativeToDart_EventTarget(this._get_relatedTarget); |
@@ -20489,12 +21200,22 @@ class Navigator extends NavigatorCpu implements NavigatorLanguage, NavigatorOnLi |
@Unstable() |
final bool cookieEnabled; |
+ @DomName('Navigator.credentials') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final CredentialsContainer credentials; |
+ |
@DomName('Navigator.doNotTrack') |
@DocsEditable() |
// http://www.w3.org/2011/tracking-protection/drafts/tracking-dnt.html#js-dom |
@Experimental() // experimental |
final String doNotTrack; |
+ @DomName('Navigator.geofencing') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final Geofencing geofencing; |
+ |
@DomName('Navigator.geolocation') |
@DocsEditable() |
@Unstable() |
@@ -20565,11 +21286,6 @@ class Navigator extends NavigatorCpu implements NavigatorLanguage, NavigatorOnLi |
@Creates('_GamepadList') |
List<Gamepad> getGamepads() native; |
- @DomName('Navigator.getMediaDevices') |
- @DocsEditable() |
- @Experimental() // untriaged |
- void getMediaDevices(MediaDeviceInfoCallback resultCallback) native; |
- |
@DomName('Navigator.getStorageUpdates') |
@DocsEditable() |
// http://www.whatwg.org/specs/web-apps/current-work/multipage/timers.html#navigatorstorageutils |
@@ -23129,7 +23845,7 @@ class Range extends Interceptor { |
@DomName('Range.collapse') |
@DocsEditable() |
- void collapse(bool toStart) native; |
+ void collapse([bool toStart]) native; |
@DomName('Range.comparePoint') |
@DocsEditable() |
@@ -23210,10 +23926,6 @@ class Range extends Interceptor { |
@DocsEditable() |
void surroundContents(Node newParent) native; |
- @DomName('Range.toString') |
- @DocsEditable() |
- String toString() native; |
- |
/** |
* Checks if createContextualFragment is supported. |
@@ -23231,6 +23943,42 @@ class Range extends Interceptor { |
@DocsEditable() |
+@DomName('ReadableStream') |
+@Experimental() // untriaged |
+@Native("ReadableStream") |
+class ReadableStream extends Interceptor { |
+ // To suppress missing implicit constructor warnings. |
+ factory ReadableStream._() { throw new UnsupportedError("Not supported"); } |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DocsEditable() |
+@DomName('RelatedEvent') |
+@Experimental() // untriaged |
+@Native("RelatedEvent") |
+class RelatedEvent extends Event { |
+ // To suppress missing implicit constructor warnings. |
+ factory RelatedEvent._() { throw new UnsupportedError("Not supported"); } |
+ |
+ @DomName('RelatedEvent.relatedTarget') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ EventTarget get relatedTarget => _convertNativeToDart_EventTarget(this._get_relatedTarget); |
+ @JSName('relatedTarget') |
+ @DomName('RelatedEvent.relatedTarget') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final dynamic _get_relatedTarget; |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DocsEditable() |
@DomName('Request') |
@Experimental() // untriaged |
@Native("Request") |
@@ -23240,29 +23988,50 @@ class Request extends Interceptor { |
@DomName('Request.Request') |
@DocsEditable() |
- factory Request([Map requestInitDict]) { |
- if (requestInitDict != null) { |
- return Request._create_1(requestInitDict); |
+ factory Request(input, [Map requestInitDict]) { |
+ if ((input is String || input == null) && requestInitDict == null) { |
+ return Request._create_1(input); |
+ } |
+ if ((requestInitDict is Map || requestInitDict == null) && (input is String || input == null)) { |
+ return Request._create_2(input, requestInitDict); |
} |
- return Request._create_2(); |
+ if ((input is Request || input == null) && requestInitDict == null) { |
+ return Request._create_3(input); |
+ } |
+ if ((requestInitDict is Map || requestInitDict == null) && (input is Request || input == null)) { |
+ return Request._create_4(input, requestInitDict); |
+ } |
+ throw new ArgumentError("Incorrect number or type of arguments"); |
} |
- static Request _create_1(requestInitDict) => JS('Request', 'new Request(#)', requestInitDict); |
- static Request _create_2() => JS('Request', 'new Request()'); |
+ static Request _create_1(input) => JS('Request', 'new Request(#)', input); |
+ static Request _create_2(input, requestInitDict) => JS('Request', 'new Request(#,#)', input, requestInitDict); |
+ static Request _create_3(input) => JS('Request', 'new Request(#)', input); |
+ static Request _create_4(input, requestInitDict) => JS('Request', 'new Request(#,#)', input, requestInitDict); |
+ |
+ @DomName('Request.credentials') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final String credentials; |
@DomName('Request.headers') |
@DocsEditable() |
@Experimental() // untriaged |
- final HeaderMap headers; |
+ final Headers headers; |
- @DomName('Request.origin') |
+ @DomName('Request.mode') |
@DocsEditable() |
@Experimental() // untriaged |
- final String origin; |
+ final String mode; |
+ |
+ @DomName('Request.referrer') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final String referrer; |
@DomName('Request.url') |
@DocsEditable() |
@Experimental() // untriaged |
- String url; |
+ final String url; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -23297,47 +24066,6 @@ class ResourceProgressEvent extends ProgressEvent { |
@DocsEditable() |
-@DomName('RsaHashedKeyAlgorithm') |
-@Experimental() // untriaged |
-@Native("RsaHashedKeyAlgorithm") |
-class RsaHashedKeyAlgorithm extends RsaKeyAlgorithm { |
- // To suppress missing implicit constructor warnings. |
- factory RsaHashedKeyAlgorithm._() { throw new UnsupportedError("Not supported"); } |
- |
- @DomName('RsaHashedKeyAlgorithm.hash') |
- @DocsEditable() |
- @Experimental() // untriaged |
- final KeyAlgorithm hash; |
-} |
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
-// for details. All rights reserved. Use of this source code is governed by a |
-// BSD-style license that can be found in the LICENSE file. |
- |
- |
-@DocsEditable() |
-@DomName('RsaKeyAlgorithm') |
-@Experimental() // untriaged |
-@Native("RsaKeyAlgorithm") |
-class RsaKeyAlgorithm extends KeyAlgorithm { |
- // To suppress missing implicit constructor warnings. |
- factory RsaKeyAlgorithm._() { throw new UnsupportedError("Not supported"); } |
- |
- @DomName('RsaKeyAlgorithm.modulusLength') |
- @DocsEditable() |
- @Experimental() // untriaged |
- final int modulusLength; |
- |
- @DomName('RsaKeyAlgorithm.publicExponent') |
- @DocsEditable() |
- @Experimental() // untriaged |
- final Uint8List publicExponent; |
-} |
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
-// for details. All rights reserved. Use of this source code is governed by a |
-// BSD-style license that can be found in the LICENSE file. |
- |
- |
-@DocsEditable() |
@DomName('RTCDataChannel') |
// http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCDataChannel |
@Experimental() |
@@ -23858,10 +24586,10 @@ class RtcPeerConnection extends EventTarget { |
@DomName('RTCPeerConnection.createOffer') |
@DocsEditable() |
- void _createOffer(_RtcSessionDescriptionCallback successCallback, [_RtcErrorCallback failureCallback, Map mediaConstraints]) { |
- if (mediaConstraints != null) { |
- var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints); |
- _createOffer_1(successCallback, failureCallback, mediaConstraints_1); |
+ void _createOffer(_RtcSessionDescriptionCallback successCallback, [_RtcErrorCallback failureCallback, Map rtcOfferOptions]) { |
+ if (rtcOfferOptions != null) { |
+ var rtcOfferOptions_1 = convertDartToNative_Dictionary(rtcOfferOptions); |
+ _createOffer_1(successCallback, failureCallback, rtcOfferOptions_1); |
return; |
} |
_createOffer_2(successCallback, failureCallback); |
@@ -23870,7 +24598,7 @@ class RtcPeerConnection extends EventTarget { |
@JSName('createOffer') |
@DomName('RTCPeerConnection.createOffer') |
@DocsEditable() |
- void _createOffer_1(_RtcSessionDescriptionCallback successCallback, _RtcErrorCallback failureCallback, mediaConstraints) native; |
+ void _createOffer_1(_RtcSessionDescriptionCallback successCallback, _RtcErrorCallback failureCallback, rtcOfferOptions) native; |
@JSName('createOffer') |
@DomName('RTCPeerConnection.createOffer') |
@DocsEditable() |
@@ -24154,7 +24882,7 @@ class Screen extends Interceptor { |
@DomName('Screen.orientation') |
@DocsEditable() |
@Experimental() // untriaged |
- final String orientation; |
+ final ScreenOrientation orientation; |
@DomName('Screen.pixelDepth') |
@DocsEditable() |
@@ -24163,11 +24891,44 @@ class Screen extends Interceptor { |
@DomName('Screen.width') |
@DocsEditable() |
final int width; |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DocsEditable() |
+@DomName('ScreenOrientation') |
+@Experimental() // untriaged |
+@Native("ScreenOrientation") |
+class ScreenOrientation extends EventTarget { |
+ // To suppress missing implicit constructor warnings. |
+ factory ScreenOrientation._() { throw new UnsupportedError("Not supported"); } |
+ |
+ @DomName('ScreenOrientation.changeEvent') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ static const EventStreamProvider<Event> changeEvent = const EventStreamProvider<Event>('change'); |
+ |
+ @DomName('ScreenOrientation.angle') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final int angle; |
+ |
+ @DomName('ScreenOrientation.type') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final String type; |
+ |
+ @DomName('ScreenOrientation.unlock') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ void unlock() native; |
- @DomName('Screen.unlockOrientation') |
+ @DomName('ScreenOrientation.onchange') |
@DocsEditable() |
@Experimental() // untriaged |
- void unlockOrientation() native; |
+ Stream<Event> get onChange => changeEvent.forTarget(this); |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -24506,7 +25267,7 @@ class Selection extends Interceptor { |
@DomName('Selection.extend') |
@DocsEditable() |
- void extend(Node node, int offset) native; |
+ void extend(Node node, [int offset]) native; |
@DomName('Selection.getRangeAt') |
@DocsEditable() |
@@ -24534,10 +25295,29 @@ class Selection extends Interceptor { |
@DocsEditable() |
@Experimental() // non-standard |
void setPosition(Node node, [int offset]) native; |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DocsEditable() |
+@DomName('ServiceWorkerClient') |
+@Experimental() // untriaged |
+@Native("ServiceWorkerClient") |
+class ServiceWorkerClient extends Interceptor { |
+ // To suppress missing implicit constructor warnings. |
+ factory ServiceWorkerClient._() { throw new UnsupportedError("Not supported"); } |
- @DomName('Selection.toString') |
+ @DomName('ServiceWorkerClient.id') |
@DocsEditable() |
- String toString() native; |
+ @Experimental() // untriaged |
+ final int id; |
+ |
+ @DomName('ServiceWorkerClient.postMessage') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ void postMessage(/*SerializedScriptValue*/ message, [List<MessagePort> transfer]) native; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -24608,6 +25388,11 @@ class ServiceWorkerGlobalScope extends WorkerGlobalScope { |
@Experimental() // untriaged |
final ServiceWorkerClients clients; |
+ @DomName('ServiceWorkerGlobalScope.nativeCaches') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final CacheStorage nativeCaches; |
+ |
@DomName('ServiceWorkerGlobalScope.scope') |
@DocsEditable() |
@Experimental() // untriaged |
@@ -24624,6 +25409,39 @@ class ServiceWorkerGlobalScope extends WorkerGlobalScope { |
@DocsEditable() |
+@DomName('ServiceWorkerRegistration') |
+@Experimental() // untriaged |
+@Native("ServiceWorkerRegistration") |
+class ServiceWorkerRegistration extends EventTarget { |
+ // To suppress missing implicit constructor warnings. |
+ factory ServiceWorkerRegistration._() { throw new UnsupportedError("Not supported"); } |
+ |
+ @DomName('ServiceWorkerRegistration.active') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final _ServiceWorker active; |
+ |
+ @DomName('ServiceWorkerRegistration.installing') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final _ServiceWorker installing; |
+ |
+ @DomName('ServiceWorkerRegistration.scope') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final String scope; |
+ |
+ @DomName('ServiceWorkerRegistration.waiting') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final _ServiceWorker waiting; |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DocsEditable() |
@DomName('HTMLShadowElement') |
@SupportedBrowser(SupportedBrowser.CHROME, '26') |
@Experimental() |
@@ -27275,6 +28093,11 @@ class Touch extends Interceptor { |
@DocsEditable() |
final double _clientY; |
+ @DomName('Touch.force') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final double force; |
+ |
@DomName('Touch.identifier') |
@DocsEditable() |
final int identifier; |
@@ -27289,6 +28112,18 @@ class Touch extends Interceptor { |
@DocsEditable() |
final double _pageY; |
+ @JSName('radiusX') |
+ @DomName('Touch.radiusX') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final double _radiusX; |
+ |
+ @JSName('radiusY') |
+ @DomName('Touch.radiusY') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final double _radiusY; |
+ |
@JSName('screenX') |
@DomName('Touch.screenX') |
@DocsEditable() |
@@ -27309,30 +28144,6 @@ class Touch extends Interceptor { |
@Returns('Element|Document') |
final dynamic _get_target; |
- @JSName('webkitForce') |
- @DomName('Touch.webkitForce') |
- @DocsEditable() |
- @SupportedBrowser(SupportedBrowser.CHROME) |
- @SupportedBrowser(SupportedBrowser.SAFARI) |
- @Experimental() |
- final double force; |
- |
- @JSName('webkitRadiusX') |
- @DomName('Touch.webkitRadiusX') |
- @DocsEditable() |
- @SupportedBrowser(SupportedBrowser.CHROME) |
- @SupportedBrowser(SupportedBrowser.SAFARI) |
- @Experimental() |
- final double _webkitRadiusX; |
- |
- @JSName('webkitRadiusY') |
- @DomName('Touch.webkitRadiusY') |
- @DocsEditable() |
- @SupportedBrowser(SupportedBrowser.CHROME) |
- @SupportedBrowser(SupportedBrowser.SAFARI) |
- @Experimental() |
- final double _webkitRadiusY; |
- |
@JSName('webkitRotationAngle') |
@DomName('Touch.webkitRotationAngle') |
@DocsEditable() |
@@ -27350,8 +28161,8 @@ class Touch extends Interceptor { |
int get __screenY => JS('num', '#.screenY', this).round(); |
int get __pageX => JS('num', '#.pageX', this).round(); |
int get __pageY => JS('num', '#.pageY', this).round(); |
- int get __webkitRadiusX => JS('num', '#.webkitRadiusX', this).round(); |
- int get __webkitRadiusY => JS('num', '#.webkitRadiusY', this).round(); |
+ int get __radiusX => JS('num', '#.radiusX', this).round(); |
+ int get __radiusY => JS('num', '#.radiusY', this).round(); |
@DomName('Touch.clientX') |
@DomName('Touch.clientY') |
@@ -27365,19 +28176,19 @@ class Touch extends Interceptor { |
@DomName('Touch.screenY') |
Point get screen => new Point(__screenX, __screenY); |
- @DomName('Touch.webkitRadiusX') |
+ @DomName('Touch.radiusX') |
@DocsEditable() |
@SupportedBrowser(SupportedBrowser.CHROME) |
@SupportedBrowser(SupportedBrowser.SAFARI) |
@Experimental() |
- int get radiusX => __webkitRadiusX; |
+ int get radiusX => __radiusX; |
- @DomName('Touch.webkitRadiusY') |
+ @DomName('Touch.radiusY') |
@DocsEditable() |
@SupportedBrowser(SupportedBrowser.CHROME) |
@SupportedBrowser(SupportedBrowser.SAFARI) |
@Experimental() |
- int get radiusY => __webkitRadiusY; |
+ int get radiusY => __radiusY; |
} |
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
@@ -27998,6 +28809,8 @@ abstract class UrlUtilsReadOnly extends Interceptor { |
final String href; |
+ final String origin; |
+ |
final String pathname; |
final String port; |
@@ -28675,7 +29488,6 @@ class WheelEvent extends MouseEvent { |
int clientY: 0, int button: 0, bool canBubble: true, |
bool cancelable: true, bool ctrlKey: false, bool altKey: false, |
bool shiftKey: false, bool metaKey: false, EventTarget relatedTarget}) { |
- |
if (view == null) { |
view = window; |
} |
@@ -28728,11 +29540,12 @@ class WheelEvent extends MouseEvent { |
} else { |
// Chrome does an auto-convert to pixels. |
deltaY = deltaY ~/ 120; |
- // Fallthrough for Dartium. |
+ |
event._initMouseEvent(type, canBubble, cancelable, view, detail, |
screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, |
metaKey, button, relatedTarget); |
- event._initWebKitWheelEvent(deltaX, deltaY, |
+ JS('void', '#.initWebKitWheelEvent(#, #, #, #, #, #, #, #, #, #, #)', |
+ event, deltaX, deltaY, |
view, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, |
metaKey); |
} |
@@ -28772,20 +29585,6 @@ class WheelEvent extends MouseEvent { |
@Experimental() // untriaged |
final double deltaZ; |
- @JSName('webkitDirectionInvertedFromDevice') |
- @DomName('WheelEvent.webkitDirectionInvertedFromDevice') |
- @DocsEditable() |
- @SupportedBrowser(SupportedBrowser.CHROME) |
- @SupportedBrowser(SupportedBrowser.SAFARI) |
- @Experimental() |
- final bool directionInvertedFromDevice; |
- |
- @JSName('initWebKitWheelEvent') |
- @DomName('WheelEvent.initWebKitWheelEvent') |
- @DocsEditable() |
- @Experimental() |
- void _initWebKitWheelEvent(int wheelDeltaX, int wheelDeltaY, Window view, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey) native; |
- |
/** |
* The amount that is expected to scroll vertically, in units determined by |
@@ -29143,46 +29942,8 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo |
} |
/** |
- * Converts a point from node coordinates to this window's coordinates. |
- * |
- * ## Other resources |
- * |
- * * [webkitConvertPointFromPageToNode] |
- * (https://developer.apple.com/library/safari/documentation/DataManagement/Reference/DOMWindowAdditionsReference/DOMWindowAdditions/DOMWindowAdditions.html#//apple_ref/javascript/instm/DOMWindow/webkitConvertPointFromNodeToPage) |
- * from Safari Development Library. |
- */ |
- @DomName('Window.convertPointFromNodeToPage') |
- @SupportedBrowser(SupportedBrowser.CHROME) |
- @SupportedBrowser(SupportedBrowser.SAFARI) |
- @Experimental() |
- Point convertPointFromNodeToPage(Node node, Point point) { |
- var result = _convertPointFromNodeToPage(node, |
- new _DomPoint(point.x, point.y)); |
- return new Point(result.x, result.y); |
- } |
- |
- /** |
- * Converts a point from this window's coordinates to node coordinates. |
- * |
- * ## Other resources |
- * |
- * * [webkitConvertPointFromPageToNode] |
- * (https://developer.apple.com/library/safari/documentation/DataManagement/Reference/DOMWindowAdditionsReference/DOMWindowAdditions/DOMWindowAdditions.html#//apple_ref/javascript/instm/DOMWindow/webkitConvertPointFromPageToNode) |
- * from Safari Development Library. |
- */ |
- @DomName('Window.convertPointFromPageToNode') |
- @SupportedBrowser(SupportedBrowser.CHROME) |
- @SupportedBrowser(SupportedBrowser.SAFARI) |
- @Experimental() |
- Point convertPointFromPageToNode(Node node, Point point) { |
- var result = _convertPointFromPageToNode(node, |
- new _DomPoint(point.x, point.y)); |
- return new Point(result.x, result.y); |
- } |
- |
- /** |
- * Checks whether [convertPointFromNodeToPage] and |
- * [convertPointFromPageToNode] are supported on the current platform. |
+ * convertPointFromNodeToPage and convertPointFromPageToNode are removed. |
+ * see http://dev.w3.org/csswg/cssom-view/#geometry |
*/ |
static bool get supportsPointConversions => _DomPoint.supported; |
// To suppress missing implicit constructor warnings. |
@@ -29961,7 +30722,7 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo |
*/ |
@DomName('Window.confirm') |
@DocsEditable() |
- bool confirm(String message) native; |
+ bool confirm([String message]) native; |
/** |
* Finds text in this window. |
@@ -30054,10 +30815,10 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo |
@DomName('Window.postMessage') |
@DocsEditable() |
- void postMessage(/*SerializedScriptValue*/ message, String targetOrigin, [List<MessagePort> messagePorts]) { |
- if (messagePorts != null) { |
+ void postMessage(/*SerializedScriptValue*/ message, String targetOrigin, [List<MessagePort> transfer]) { |
+ if (transfer != null) { |
var message_1 = convertDartToNative_SerializedScriptValue(message); |
- _postMessage_1(message_1, targetOrigin, messagePorts); |
+ _postMessage_1(message_1, targetOrigin, transfer); |
return; |
} |
var message_2 = convertDartToNative_SerializedScriptValue(message); |
@@ -30067,7 +30828,7 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo |
@JSName('postMessage') |
@DomName('Window.postMessage') |
@DocsEditable() |
- void _postMessage_1(message, targetOrigin, List<MessagePort> messagePorts) native; |
+ void _postMessage_1(message, targetOrigin, List<MessagePort> transfer) native; |
@JSName('postMessage') |
@DomName('Window.postMessage') |
@DocsEditable() |
@@ -30280,28 +31041,6 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo |
@DocsEditable() |
void stop() native; |
- @DomName('Window.toString') |
- @DocsEditable() |
- String toString() native; |
- |
- @JSName('webkitConvertPointFromNodeToPage') |
- @DomName('Window.webkitConvertPointFromNodeToPage') |
- @DocsEditable() |
- @SupportedBrowser(SupportedBrowser.CHROME) |
- @SupportedBrowser(SupportedBrowser.SAFARI) |
- @Experimental() |
- // http://developer.apple.com/library/safari/#documentation/DataManagement/Reference/DOMWindowAdditionsReference/DOMWindowAdditions/DOMWindowAdditions.html |
- _DomPoint _convertPointFromNodeToPage(Node node, _DomPoint p) native; |
- |
- @JSName('webkitConvertPointFromPageToNode') |
- @DomName('Window.webkitConvertPointFromPageToNode') |
- @DocsEditable() |
- @SupportedBrowser(SupportedBrowser.CHROME) |
- @SupportedBrowser(SupportedBrowser.SAFARI) |
- @Experimental() |
- // http://developer.apple.com/library/safari/#documentation/DataManagement/Reference/DOMWindowAdditionsReference/DOMWindowAdditions/DOMWindowAdditions.html |
- _DomPoint _convertPointFromPageToNode(Node node, _DomPoint p) native; |
- |
@JSName('webkitRequestFileSystem') |
@DomName('Window.webkitRequestFileSystem') |
@DocsEditable() |
@@ -31026,7 +31765,7 @@ class Worker extends EventTarget implements AbstractWorker { |
@DomName('Worker.postMessage') |
@DocsEditable() |
- void postMessage(/*SerializedScriptValue*/ message, [List<MessagePort> messagePorts]) native; |
+ void postMessage(/*SerializedScriptValue*/ message, [List<MessagePort> transfer]) native; |
@DomName('Worker.terminate') |
@DocsEditable() |
@@ -31606,6 +32345,19 @@ abstract class _CSSValue extends Interceptor { |
@DocsEditable() |
+@DomName('Cache') |
+@Experimental() // untriaged |
+@Native("Cache") |
+abstract class _Cache extends Interceptor { |
+ // To suppress missing implicit constructor warnings. |
+ factory _Cache._() { throw new UnsupportedError("Not supported"); } |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DocsEditable() |
@DomName('CanvasPathMethods') |
@Experimental() // untriaged |
abstract class _CanvasPathMethods extends Interceptor { |
@@ -31619,7 +32371,7 @@ abstract class _CanvasPathMethods extends Interceptor { |
@DocsEditable() |
@DomName('ClientRect') |
-@Native("ClientRect,DOMRect") |
+@Native("ClientRect") |
class _ClientRect extends Interceptor implements Rectangle { |
// NOTE! All code below should be common with RectangleBase. |
@@ -32100,6 +32852,70 @@ class _DomPoint extends Interceptor { |
@DocsEditable() |
+@DomName('DOMRect') |
+@Experimental() // untriaged |
+@Native("DOMRect") |
+class _DomRect extends DomRectReadOnly { |
+ // To suppress missing implicit constructor warnings. |
+ factory _DomRect._() { throw new UnsupportedError("Not supported"); } |
+ |
+ @DomName('DOMRect.DOMRect') |
+ @DocsEditable() |
+ factory _DomRect([num x, num y, num width, num height]) { |
+ if (height != null) { |
+ return _DomRect._create_1(x, y, width, height); |
+ } |
+ if (width != null) { |
+ return _DomRect._create_2(x, y, width); |
+ } |
+ if (y != null) { |
+ return _DomRect._create_3(x, y); |
+ } |
+ if (x != null) { |
+ return _DomRect._create_4(x); |
+ } |
+ return _DomRect._create_5(); |
+ } |
+ static _DomRect _create_1(x, y, width, height) => JS('_DomRect', 'new DOMRect(#,#,#,#)', x, y, width, height); |
+ static _DomRect _create_2(x, y, width) => JS('_DomRect', 'new DOMRect(#,#,#)', x, y, width); |
+ static _DomRect _create_3(x, y) => JS('_DomRect', 'new DOMRect(#,#)', x, y); |
+ static _DomRect _create_4(x) => JS('_DomRect', 'new DOMRect(#)', x); |
+ static _DomRect _create_5() => JS('_DomRect', 'new DOMRect()'); |
+ |
+ // Shadowing definition. |
+ num get height => JS("num", "#.height", this); |
+ |
+ void set height(num value) { |
+ JS("void", "#.height = #", this, value); |
+ } |
+ |
+ // Shadowing definition. |
+ num get width => JS("num", "#.width", this); |
+ |
+ void set width(num value) { |
+ JS("void", "#.width = #", this, value); |
+ } |
+ |
+ // Shadowing definition. |
+ num get x => JS("num", "#.x", this); |
+ |
+ void set x(num value) { |
+ JS("void", "#.x = #", this, value); |
+ } |
+ |
+ // Shadowing definition. |
+ num get y => JS("num", "#.y", this); |
+ |
+ void set y(num value) { |
+ JS("void", "#.y = #", this, value); |
+ } |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DocsEditable() |
@DomName('EntrySync') |
// http://www.w3.org/TR/file-system-api/#idl-def-EntrySync |
@Experimental() |
@@ -32558,14 +33374,25 @@ abstract class _Response extends Interceptor { |
@DomName('Response.Response') |
@DocsEditable() |
- factory _Response(Blob body, [Map responseInitDict]) { |
- if (responseInitDict != null) { |
- return _Response._create_1(body, responseInitDict); |
+ factory _Response(body, [Map responseInitDict]) { |
+ if ((body is String || body == null) && responseInitDict == null) { |
+ return _Response._create_1(body); |
} |
- return _Response._create_2(body); |
+ if ((responseInitDict is Map || responseInitDict == null) && (body is String || body == null)) { |
+ return _Response._create_2(body, responseInitDict); |
+ } |
+ if ((body is Blob || body == null) && responseInitDict == null) { |
+ return _Response._create_3(body); |
+ } |
+ if ((responseInitDict is Map || responseInitDict == null) && (body is Blob || body == null)) { |
+ return _Response._create_4(body, responseInitDict); |
+ } |
+ throw new ArgumentError("Incorrect number or type of arguments"); |
} |
- static _Response _create_1(body, responseInitDict) => JS('_Response', 'new Response(#,#)', body, responseInitDict); |
- static _Response _create_2(body) => JS('_Response', 'new Response(#)', body); |
+ static _Response _create_1(body) => JS('_Response', 'new Response(#)', body); |
+ static _Response _create_2(body, responseInitDict) => JS('_Response', 'new Response(#,#)', body, responseInitDict); |
+ static _Response _create_3(body) => JS('_Response', 'new Response(#)', body); |
+ static _Response _create_4(body, responseInitDict) => JS('_Response', 'new Response(#,#)', body, responseInitDict); |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -37096,7 +37923,7 @@ class KeyEvent extends _WrappedEvent implements KeyboardEvent { |
{Window view, bool canBubble: true, bool cancelable: true, int keyCode: 0, |
int charCode: 0, int keyLocation: 1, bool ctrlKey: false, |
bool altKey: false, bool shiftKey: false, bool metaKey: false, |
- bool altGraphKey: false, EventTarget currentTarget}) { |
+ EventTarget currentTarget}) { |
if (view == null) { |
view = window; |
} |
@@ -37122,7 +37949,6 @@ class KeyEvent extends _WrappedEvent implements KeyboardEvent { |
JS('void', '#.altKey = #', eventObj, altKey); |
JS('void', '#.shiftKey = #', eventObj, shiftKey); |
JS('void', '#.metaKey = #', eventObj, metaKey); |
- JS('void', '#.altGraphKey = #', eventObj, altGraphKey); |
} else { |
// Currently this works on everything but Safari. Safari throws an |
// "Attempting to change access mechanism for an unconfigurable property" |
@@ -37145,8 +37971,7 @@ class KeyEvent extends _WrappedEvent implements KeyboardEvent { |
var keyIdentifier = _convertToHexString(charCode, keyCode); |
eventObj._initKeyboardEvent(type, canBubble, cancelable, view, |
- keyIdentifier, keyLocation, ctrlKey, altKey, shiftKey, metaKey, |
- altGraphKey); |
+ keyIdentifier, keyLocation, ctrlKey, altKey, shiftKey, metaKey); |
JS('void', '#.keyCodeVal = #', eventObj, keyCode); |
JS('void', '#.charCodeVal = #', eventObj, charCode); |
} |
@@ -37194,8 +38019,6 @@ class KeyEvent extends _WrappedEvent implements KeyboardEvent { |
static EventStreamProvider<KeyEvent> keyPressEvent = |
new _KeyboardEventHandler('keypress'); |
- /** True if the altGraphKey is pressed during this event. */ |
- bool get altGraphKey => _parent.altGraphKey; |
/** Accessor to the clipboardData available for this event. */ |
DataTransfer get clipboardData => _parent.clipboardData; |
/** True if the ctrl key is pressed during this event. */ |
@@ -37227,8 +38050,7 @@ class KeyEvent extends _WrappedEvent implements KeyboardEvent { |
} |
void _initKeyboardEvent(String type, bool canBubble, bool cancelable, |
Window view, String keyIdentifier, int keyLocation, bool ctrlKey, |
- bool altKey, bool shiftKey, bool metaKey, |
- bool altGraphKey) { |
+ bool altKey, bool shiftKey, bool metaKey) { |
throw new UnsupportedError( |
"Cannot initialize a KeyboardEvent from a KeyEvent."); |
} |