| Index: sdk/lib/html/dartium/html_dartium.dart
|
| diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
|
| index 9e74e4fa9d4b08c067295a9f561c995a7a139356..1af8c2f25c82c80b7b8fa14e85a5de3a44d8378d 100644
|
| --- a/sdk/lib/html/dartium/html_dartium.dart
|
| +++ b/sdk/lib/html/dartium/html_dartium.dart
|
| @@ -6959,50 +6959,16 @@ class DeviceOrientationEvent extends Event {
|
| void $dom_initDeviceOrientationEvent(String type, bool bubbles, bool cancelable, num alpha, num beta, num gamma, bool absolute) native "DeviceOrientationEvent_initDeviceOrientationEvent_Callback";
|
|
|
| }
|
| -// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
| +// 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.
|
| +
|
|
|
| +@DocsEditable
|
| @DomName('DirectoryEntry')
|
| class DirectoryEntry extends Entry {
|
| -
|
| - /**
|
| - * Create a new directory with the specified `path`. If `exclusive` is true,
|
| - * the returned Future will complete with an error if a directory already
|
| - * exists with the specified `path`.
|
| - */
|
| - Future<Entry> createDirectory(String path, {bool exclusive: false}) {
|
| - return _getDirectory(path, options:
|
| - {'create': true, 'exclusive': exclusive});
|
| - }
|
| -
|
| - /**
|
| - * Retrieve an already existing directory entry. The returned future will
|
| - * result in an error if a directory at `path` does not exist or if the item
|
| - * at `path` is not a directory.
|
| - */
|
| - Future<Entry> getDirectory(String path) {
|
| - return _getDirectory(path);
|
| - }
|
| -
|
| - /**
|
| - * Create a new file with the specified `path`. If `exclusive` is true,
|
| - * the returned Future will complete with an error if a file already
|
| - * exists at the specified `path`.
|
| - */
|
| - Future<Entry> createFile(String path, {bool exclusive: false}) {
|
| - return _getFile(path, options: {'create': true, 'exclusive': exclusive});
|
| - }
|
| -
|
| - /**
|
| - * Retrieve an already existing file entry. The returned future will
|
| - * result in an error if a file at `path` does not exist or if the item at
|
| - * `path` is not a file.
|
| - */
|
| - Future<Entry> getFile(String path) {
|
| - return _getFile(path);
|
| - }
|
| DirectoryEntry.internal() : super.internal();
|
|
|
| @DomName('DirectoryEntry.createReader')
|
| @@ -7011,11 +6977,11 @@ class DirectoryEntry extends Entry {
|
|
|
| @DomName('DirectoryEntry.getDirectory')
|
| @DocsEditable
|
| - void __getDirectory(String path, {Map options, _EntryCallback successCallback, _ErrorCallback errorCallback}) native "DirectoryEntry_getDirectory_Callback";
|
| + void _getDirectory(String path, {Map options, _EntryCallback successCallback, _ErrorCallback errorCallback}) native "DirectoryEntry_getDirectory_Callback";
|
|
|
| - Future<Entry> _getDirectory(String path, {Map options}) {
|
| + Future<Entry> getDirectory(String path, {Map options}) {
|
| var completer = new Completer<Entry>();
|
| - __getDirectory(path, options : options,
|
| + _getDirectory(path, options : options,
|
| successCallback : (value) { completer.complete(value); },
|
| errorCallback : (error) { completer.completeError(error); });
|
| return completer.future;
|
| @@ -7023,11 +6989,11 @@ class DirectoryEntry extends Entry {
|
|
|
| @DomName('DirectoryEntry.getFile')
|
| @DocsEditable
|
| - void __getFile(String path, {Map options, _EntryCallback successCallback, _ErrorCallback errorCallback}) native "DirectoryEntry_getFile_Callback";
|
| + void _getFile(String path, {Map options, _EntryCallback successCallback, _ErrorCallback errorCallback}) native "DirectoryEntry_getFile_Callback";
|
|
|
| - Future<Entry> _getFile(String path, {Map options}) {
|
| + Future<Entry> getFile(String path, {Map options}) {
|
| var completer = new Completer<Entry>();
|
| - __getFile(path, options : options,
|
| + _getFile(path, options : options,
|
| successCallback : (value) { completer.complete(value); },
|
| errorCallback : (error) { completer.completeError(error); });
|
| return completer.future;
|
| @@ -7046,7 +7012,6 @@ class DirectoryEntry extends Entry {
|
| }
|
|
|
| }
|
| -
|
| // 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.
|
| @@ -11106,19 +11071,16 @@ class EventException extends NativeFieldWrapperClass1 {
|
| String toString() native "EventException_toString_Callback";
|
|
|
| }
|
| -// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
| +// 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.
|
| +
|
|
|
| +@DocsEditable
|
| @DomName('EventSource')
|
| class EventSource extends EventTarget {
|
| - factory EventSource(String title, {withCredentials: false}) {
|
| - var parsedOptions = {
|
| - 'withCredentials': withCredentials,
|
| - };
|
| - return EventSource._factoryEventSource(title, parsedOptions);
|
| - }
|
| EventSource.internal() : super.internal();
|
|
|
| @DomName('EventSource.errorEvent')
|
| @@ -11135,7 +11097,7 @@ class EventSource extends EventTarget {
|
|
|
| @DomName('EventSource.EventSource')
|
| @DocsEditable
|
| - static EventSource _factoryEventSource(String url, [Map eventSourceInit]) {
|
| + factory EventSource(String url, [Map eventSourceInit]) {
|
| return EventSource._create_1(url, eventSourceInit);
|
| }
|
|
|
| @@ -18725,7 +18687,8 @@ class MutationObserver extends NativeFieldWrapperClass1 {
|
| }
|
|
|
| void observe(Node target,
|
| - {bool childList,
|
| + {Map options,
|
| + bool childList,
|
| bool attributes,
|
| bool characterData,
|
| bool subtree,
|
| @@ -18736,6 +18699,19 @@ class MutationObserver extends NativeFieldWrapperClass1 {
|
| // Parse options into map of known type.
|
| var parsedOptions = _createDict();
|
|
|
| + if (options != null) {
|
| + options.forEach((k, v) {
|
| + if (_boolKeys.containsKey(k)) {
|
| + _add(parsedOptions, k, true == v);
|
| + } else if (k == 'attributeFilter') {
|
| + _add(parsedOptions, k, _fixupList(v));
|
| + } else {
|
| + throw new ArgumentError(
|
| + "Illegal MutationObserver.observe option '$k'");
|
| + }
|
| + });
|
| + }
|
| +
|
| // Override options passed in the map with named optional arguments.
|
| override(key, value) {
|
| if (value != null) _add(parsedOptions, key, value);
|
| @@ -19824,26 +19800,16 @@ class Notation extends Node {
|
| String get systemId native "Notation_systemId_Getter";
|
|
|
| }
|
| -// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
| +// 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.
|
| +
|
|
|
| +@DocsEditable
|
| @DomName('Notification')
|
| class Notification extends EventTarget {
|
| -
|
| - factory Notification(String title, {String titleDir: null, String body: null,
|
| - String bodyDir: null, String tag: null, String iconUrl: null}) {
|
| -
|
| - var parsedOptions = {};
|
| - if (titleDir != null) parsedOptions['titleDir'] = titleDir;
|
| - if (body != null) parsedOptions['body'] = body;
|
| - if (bodyDir != null) parsedOptions['bodyDir'] = bodyDir;
|
| - if (tag != null) parsedOptions['tag'] = tag;
|
| - if (iconUrl != null) parsedOptions['iconUrl'] = iconUrl;
|
| -
|
| - return Notification._factoryNotification(title, parsedOptions);
|
| - }
|
| Notification.internal() : super.internal();
|
|
|
| @DomName('Notification.clickEvent')
|
| @@ -19868,7 +19834,7 @@ class Notification extends EventTarget {
|
|
|
| @DomName('Notification.Notification')
|
| @DocsEditable
|
| - static Notification _factoryNotification(String title, [Map options]) {
|
| + factory Notification(String title, [Map options]) {
|
| return Notification._create_1(title, options);
|
| }
|
|
|
| @@ -28786,17 +28752,6 @@ class Window extends EventTarget implements WindowBase {
|
| throw new UnsupportedError('setImmediate is not supported');
|
| }
|
|
|
| - /**
|
| - * Access a sandboxed file system of the specified `size`. If `persistent` is
|
| - * true, the application will request permission from the user to create
|
| - * lasting storage. This storage cannot be freed without the user's
|
| - * permission. Returns a [Future] whose value stores a reference to the
|
| - * sandboxed file system for use. Because the file system is sandboxed,
|
| - * applications cannot access file systems created in other web pages.
|
| - */
|
| - Future<FileSystem> requestFileSystem(int size, {bool persistent: false}) {
|
| - return _requestFileSystem(persistent? 1 : 0, size);
|
| - }
|
| Window.internal() : super.internal();
|
|
|
| @DomName('DOMWindow.DOMContentLoadedEvent')
|
| @@ -29258,11 +29213,11 @@ class Window extends EventTarget implements WindowBase {
|
| @DocsEditable
|
| @SupportedBrowser(SupportedBrowser.CHROME)
|
| @Experimental
|
| - void __requestFileSystem(int type, int size, _FileSystemCallback successCallback, [_ErrorCallback errorCallback]) native "DOMWindow_webkitRequestFileSystem_Callback";
|
| + void _requestFileSystem(int type, int size, _FileSystemCallback successCallback, [_ErrorCallback errorCallback]) native "DOMWindow_webkitRequestFileSystem_Callback";
|
|
|
| - Future<FileSystem> _requestFileSystem(int type, int size) {
|
| + Future<FileSystem> requestFileSystem(int type, int size) {
|
| var completer = new Completer<FileSystem>();
|
| - __requestFileSystem(type, size,
|
| + _requestFileSystem(type, size,
|
| (value) { completer.complete(value); },
|
| (error) { completer.completeError(error); });
|
| return completer.future;
|
| @@ -29537,45 +29492,16 @@ class Worker extends AbstractWorker {
|
| Stream<MessageEvent> get onMessage => messageEvent.forTarget(this);
|
|
|
| }
|
| -// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
| +// 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.
|
| +
|
|
|
| +@DocsEditable
|
| @DomName('WorkerContext')
|
| class WorkerContext extends EventTarget {
|
| -
|
| - /**
|
| - * Access a sandboxed file system of the specified `size`. If `persistent` is
|
| - * true, the application will request permission from the user to create
|
| - * lasting storage. This storage cannot be freed without the user's
|
| - * permission. Returns a [Future] whose value stores a reference to the
|
| - * sandboxed file system for use. Because the file system is sandboxed,
|
| - * applications cannot access file systems created in other web pages.
|
| - */
|
| - @DomName('WorkerContext.webkitRequestFileSystem')
|
| - @DocsEditable
|
| - @SupportedBrowser(SupportedBrowser.CHROME)
|
| - @Experimental
|
| - Future<FileSystem> requestFileSystem(int size, {bool persistent: false}) {
|
| - return _requestFileSystem(persistent? 1 : 0, size);
|
| - }
|
| -
|
| - /**
|
| - * Access a sandboxed file system of the specified `size`. If `persistent` is
|
| - * true, the application will request permission from the user to create
|
| - * lasting storage. This storage cannot be freed without the user's
|
| - * permission. This call will block until a reference to the synchronous file
|
| - * system API has been obtained. Because the file system is sandboxed,
|
| - * applications cannot access file systems created in other web pages.
|
| - */
|
| - @DomName('WorkerContext.webkitRequestFileSystemSync')
|
| - @DocsEditable
|
| - @SupportedBrowser(SupportedBrowser.CHROME)
|
| - @Experimental
|
| - FileSystemSync requestFileSystemSync(int size, {bool persistent: false}) {
|
| - return _requestFileSystemSync(persistent? 1 : 0, size);
|
| - }
|
| WorkerContext.internal() : super.internal();
|
|
|
| @DomName('WorkerContext.errorEvent')
|
| @@ -29667,11 +29593,11 @@ class WorkerContext extends EventTarget {
|
| @DocsEditable
|
| @SupportedBrowser(SupportedBrowser.CHROME)
|
| @Experimental
|
| - void __requestFileSystem(int type, int size, [_FileSystemCallback successCallback, _ErrorCallback errorCallback]) native "WorkerContext_webkitRequestFileSystem_Callback";
|
| + void _requestFileSystem(int type, int size, [_FileSystemCallback successCallback, _ErrorCallback errorCallback]) native "WorkerContext_webkitRequestFileSystem_Callback";
|
|
|
| - Future<FileSystem> _requestFileSystem(int type, int size) {
|
| + Future<FileSystem> requestFileSystem(int type, int size) {
|
| var completer = new Completer<FileSystem>();
|
| - __requestFileSystem(type, size,
|
| + _requestFileSystem(type, size,
|
| (value) { completer.complete(value); },
|
| (error) { completer.completeError(error); });
|
| return completer.future;
|
| @@ -29681,7 +29607,7 @@ class WorkerContext extends EventTarget {
|
| @DocsEditable
|
| @SupportedBrowser(SupportedBrowser.CHROME)
|
| @Experimental
|
| - FileSystemSync _requestFileSystemSync(int type, int size) native "WorkerContext_webkitRequestFileSystemSync_Callback";
|
| + FileSystemSync requestFileSystemSync(int type, int size) native "WorkerContext_webkitRequestFileSystemSync_Callback";
|
|
|
| @DomName('WorkerContext.webkitResolveLocalFileSystemSyncURL')
|
| @DocsEditable
|
|
|