| 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 aa309ae46cede98167b2e93b8754743bedc1200c..904349421d0e75b620ae3f2fb80e4e1b670f1d43 100644
|
| --- a/sdk/lib/html/dart2js/html_dart2js.dart
|
| +++ b/sdk/lib/html/dart2js/html_dart2js.dart
|
| @@ -6335,17 +6335,6 @@ class DataTransferItemList extends Interceptor native "DataTransferItemList" {
|
| // 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.
|
|
|
| -// WARNING: Do not edit - generated code.
|
| -
|
| -
|
| -@DomName('DatabaseCallback')
|
| -// http://www.w3.org/TR/webdatabase/#databasecallback
|
| -@Experimental() // deprecated
|
| -typedef void DatabaseCallback(database);
|
| -// 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('DedicatedWorkerGlobalScope')
|
| @@ -16765,68 +16754,6 @@ typedef void MutationCallback(List<MutationRecord> mutations, MutationObserver o
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
|
|
| -@DomName('MutationEvent')
|
| -// http://www.w3.org/TR/DOM-Level-3-Events/#events-mutationevents
|
| -@deprecated
|
| -class MutationEvent extends Event native "MutationEvent" {
|
| - factory MutationEvent(String type,
|
| - {bool canBubble: false, bool cancelable: false, Node relatedNode,
|
| - String prevValue, String newValue, String attrName, int attrChange: 0}) {
|
| -
|
| - var event = document._createEvent('MutationEvent');
|
| - event._initMutationEvent(type, canBubble, cancelable, relatedNode,
|
| - prevValue, newValue, attrName, attrChange);
|
| - return event;
|
| - }
|
| - // To suppress missing implicit constructor warnings.
|
| - factory MutationEvent._() { throw new UnsupportedError("Not supported"); }
|
| -
|
| - @DomName('MutationEvent.ADDITION')
|
| - @DocsEditable()
|
| - static const int ADDITION = 2;
|
| -
|
| - @DomName('MutationEvent.MODIFICATION')
|
| - @DocsEditable()
|
| - static const int MODIFICATION = 1;
|
| -
|
| - @DomName('MutationEvent.REMOVAL')
|
| - @DocsEditable()
|
| - static const int REMOVAL = 3;
|
| -
|
| - @DomName('MutationEvent.attrChange')
|
| - @DocsEditable()
|
| - final int attrChange;
|
| -
|
| - @DomName('MutationEvent.attrName')
|
| - @DocsEditable()
|
| - final String attrName;
|
| -
|
| - @DomName('MutationEvent.newValue')
|
| - @DocsEditable()
|
| - final String newValue;
|
| -
|
| - @DomName('MutationEvent.prevValue')
|
| - @DocsEditable()
|
| - final String prevValue;
|
| -
|
| - @DomName('MutationEvent.relatedNode')
|
| - @DocsEditable()
|
| - final Node relatedNode;
|
| -
|
| - @JSName('initMutationEvent')
|
| - @DomName('MutationEvent.initMutationEvent')
|
| - @DocsEditable()
|
| - void _initMutationEvent(String type, bool canBubble, bool cancelable, Node relatedNode, String prevValue, String newValue, String attrName, int attrChange) 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.
|
| -
|
| -
|
| @DomName('MutationObserver')
|
| @SupportedBrowser(SupportedBrowser.CHROME)
|
| @SupportedBrowser(SupportedBrowser.FIREFOX)
|
| @@ -17599,13 +17526,6 @@ class Node extends EventTarget native "Node" {
|
| * Print out a String representation of this Node.
|
| */
|
| String toString() => nodeValue == null ? super.toString() : nodeValue;
|
| -
|
| - /**
|
| - * Use ownerDocument instead.
|
| - */
|
| - @deprecated
|
| - Document get document => ownerDocument;
|
| -
|
| // To suppress missing implicit constructor warnings.
|
| factory Node._() { throw new UnsupportedError("Not supported"); }
|
|
|
| @@ -18062,48 +17982,6 @@ class Notification extends EventTarget native "Notification" {
|
| // 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('NotificationCenter')
|
| -@SupportedBrowser(SupportedBrowser.CHROME)
|
| -@SupportedBrowser(SupportedBrowser.SAFARI)
|
| -@Experimental()
|
| -// http://www.w3.org/TR/notifications/#showing-a-notification
|
| -@deprecated // deprecated
|
| -class NotificationCenter extends Interceptor native "NotificationCenter" {
|
| - // To suppress missing implicit constructor warnings.
|
| - factory NotificationCenter._() { throw new UnsupportedError("Not supported"); }
|
| -
|
| - /// Checks if this type is supported on the current platform.
|
| - static bool get supported => JS('bool', '!!(window.webkitNotifications)');
|
| -
|
| - @DomName('NotificationCenter.checkPermission')
|
| - @DocsEditable()
|
| - int checkPermission() native;
|
| -
|
| - @DomName('NotificationCenter.createNotification')
|
| - @DocsEditable()
|
| - Notification createNotification(String iconUrl, String title, String body) native;
|
| -
|
| - @JSName('requestPermission')
|
| - @DomName('NotificationCenter.requestPermission')
|
| - @DocsEditable()
|
| - void _requestPermission([VoidCallback callback]) native;
|
| -
|
| - @JSName('requestPermission')
|
| - @DomName('NotificationCenter.requestPermission')
|
| - @DocsEditable()
|
| - Future requestPermission() {
|
| - var completer = new Completer();
|
| - _requestPermission(
|
| - () { completer.complete(); });
|
| - return completer.future;
|
| - }
|
| -}
|
| -// 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.
|
| -
|
| // WARNING: Do not edit - generated code.
|
|
|
|
|
| @@ -24881,6 +24759,7 @@ class Window extends EventTarget implements WindowBase, _WindowTimers, WindowBas
|
| @DocsEditable()
|
| void _moveTo(num x, num y) native;
|
|
|
| + @JSName('openDatabase')
|
| @DomName('Window.openDatabase')
|
| @DocsEditable()
|
| @SupportedBrowser(SupportedBrowser.CHROME)
|
| @@ -24889,7 +24768,23 @@ class Window extends EventTarget implements WindowBase, _WindowTimers, WindowBas
|
| // http://www.w3.org/TR/webdatabase/
|
| @Experimental() // deprecated
|
| @Creates('SqlDatabase')
|
| - SqlDatabase openDatabase(String name, String version, String displayName, int estimatedSize, [DatabaseCallback creationCallback]) native;
|
| + SqlDatabase _openDatabase(String name, String version, String displayName, int estimatedSize, [_DatabaseCallback creationCallback]) native;
|
| +
|
| + @JSName('openDatabase')
|
| + @DomName('Window.openDatabase')
|
| + @DocsEditable()
|
| + @SupportedBrowser(SupportedBrowser.CHROME)
|
| + @SupportedBrowser(SupportedBrowser.SAFARI)
|
| + @Experimental()
|
| + // http://www.w3.org/TR/webdatabase/
|
| + @Experimental() // deprecated
|
| + @Creates('SqlDatabase')
|
| + Future openDatabase(String name, String version, String displayName, int estimatedSize) {
|
| + var completer = new Completer();
|
| + _openDatabase(name, version, displayName, estimatedSize,
|
| + (value) { completer.complete(value); });
|
| + return completer.future;
|
| + }
|
|
|
| @DomName('Window.postMessage')
|
| @DocsEditable()
|
| @@ -25510,22 +25405,46 @@ class WorkerGlobalScope extends EventTarget implements _WindowTimers, WindowBase
|
| @SupportedBrowser(SupportedBrowser.SAFARI)
|
| @Experimental()
|
| @Experimental() // untriaged
|
| - final NotificationCenter notifications;
|
| + final _NotificationCenter _webkitNotifications;
|
|
|
| @DomName('WorkerGlobalScope.close')
|
| @DocsEditable()
|
| @Experimental() // untriaged
|
| void close() native;
|
|
|
| + @JSName('openDatabase')
|
| + @DomName('WorkerGlobalScope.openDatabase')
|
| + @DocsEditable()
|
| + @Experimental() // untriaged
|
| + SqlDatabase _openDatabase(String name, String version, String displayName, int estimatedSize, [_DatabaseCallback creationCallback]) native;
|
| +
|
| + @JSName('openDatabase')
|
| @DomName('WorkerGlobalScope.openDatabase')
|
| @DocsEditable()
|
| @Experimental() // untriaged
|
| - SqlDatabase openDatabase(String name, String version, String displayName, int estimatedSize, [DatabaseCallback creationCallback]) native;
|
| + Future openDatabase(String name, String version, String displayName, int estimatedSize) {
|
| + var completer = new Completer();
|
| + _openDatabase(name, version, displayName, estimatedSize,
|
| + (value) { completer.complete(value); });
|
| + return completer.future;
|
| + }
|
|
|
| + @JSName('openDatabaseSync')
|
| @DomName('WorkerGlobalScope.openDatabaseSync')
|
| @DocsEditable()
|
| @Experimental() // untriaged
|
| - _DatabaseSync openDatabaseSync(String name, String version, String displayName, int estimatedSize, [DatabaseCallback creationCallback]) native;
|
| + _DatabaseSync _openDatabaseSync(String name, String version, String displayName, int estimatedSize, [_DatabaseCallback creationCallback]) native;
|
| +
|
| + @JSName('openDatabaseSync')
|
| + @DomName('WorkerGlobalScope.openDatabaseSync')
|
| + @DocsEditable()
|
| + @Experimental() // untriaged
|
| + Future openDatabaseSync(String name, String version, String displayName, int estimatedSize) {
|
| + var completer = new Completer();
|
| + _openDatabaseSync(name, version, displayName, estimatedSize,
|
| + (value) { completer.complete(value); });
|
| + return completer.future;
|
| + }
|
|
|
| @JSName('webkitRequestFileSystem')
|
| @DomName('WorkerGlobalScope.webkitRequestFileSystem')
|
| @@ -26824,6 +26743,31 @@ abstract class _HTMLMarqueeElement extends HtmlElement native "HTMLMarqueeElemen
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
|
|
| +@DomName('MutationEvent')
|
| +// http://www.w3.org/TR/DOM-Level-3-Events/#events-mutationevents
|
| +@deprecated
|
| +abstract class _MutationEvent extends Event native "MutationEvent" {
|
| + factory _MutationEvent(String type,
|
| + {bool canBubble: false, bool cancelable: false, Node relatedNode,
|
| + String prevValue, String newValue, String attrName, int attrChange: 0}) {
|
| +
|
| + var event = document._createEvent('MutationEvent');
|
| + event._initMutationEvent(type, canBubble, cancelable, relatedNode,
|
| + prevValue, newValue, attrName, attrChange);
|
| + return event;
|
| + }
|
| + // To suppress missing implicit constructor warnings.
|
| + factory _MutationEvent._() { 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('NamedNodeMap')
|
| // http://dom.spec.whatwg.org/#namednodemap
|
| @@ -26931,6 +26875,25 @@ abstract class _Notation extends Node native "Notation" {
|
|
|
|
|
| @DocsEditable()
|
| +@DomName('NotificationCenter')
|
| +@SupportedBrowser(SupportedBrowser.CHROME)
|
| +@SupportedBrowser(SupportedBrowser.SAFARI)
|
| +@Experimental()
|
| +// http://www.w3.org/TR/notifications/#showing-a-notification
|
| +@deprecated // deprecated
|
| +abstract class _NotificationCenter extends Interceptor native "NotificationCenter" {
|
| + // To suppress missing implicit constructor warnings.
|
| + factory _NotificationCenter._() { throw new UnsupportedError("Not supported"); }
|
| +
|
| + /// Checks if this type is supported on the current platform.
|
| + static bool get supported => JS('bool', '!!(window.webkitNotifications)');
|
| +}
|
| +// 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('PagePopupController')
|
| @deprecated // nonstandard
|
| abstract class _PagePopupController extends Interceptor native "PagePopupController" {
|
|
|