Index: tool/input_sdk/lib/html/ddc/html_ddc.dart |
diff --git a/tool/input_sdk/lib/html/ddc/html_ddc.dart b/tool/input_sdk/lib/html/ddc/html_ddc.dart |
index d423b983e99220e80565a9efd522c33fe900a718..d7e69b6a77cc85d712f12ce330d7dbaecd11f2eb 100644 |
--- a/tool/input_sdk/lib/html/ddc/html_ddc.dart |
+++ b/tool/input_sdk/lib/html/ddc/html_ddc.dart |
@@ -24,6 +24,7 @@ |
*/ |
library dart.dom.html; |
vsm
2016/01/26 14:09:40
Note, I'm auto-generating this file right now. Sh
ochafik
2016/01/26 16:27:37
Platform.supportsTypedData will return true in nod
|
+import 'dart:_runtime' show global_; |
import 'dart:async'; |
import 'dart:collection'; |
import 'dart:_internal' hide Symbol; |
@@ -4850,7 +4851,7 @@ class DocumentFragment extends Node implements ParentNode { |
treeSanitizer: treeSanitizer)); |
} |
- /** |
+ /** |
* Alias for [querySelector]. Note this function is deprecated because its |
* semantics will be changing in the future. |
*/ |
@@ -4861,7 +4862,7 @@ class DocumentFragment extends Node implements ParentNode { |
return querySelector(relativeSelectors); |
} |
- /** |
+ /** |
* Alias for [querySelectorAll]. Note this function is deprecated because its |
* semantics will be changing in the future. |
*/ |
@@ -7528,7 +7529,7 @@ class Event extends DartHtmlDomObject { |
e._initEvent(name, canBubble, cancelable); |
return e; |
} |
- |
+ |
/** The CSS selector involved with event delegation. */ |
String _selector; |
@@ -7763,18 +7764,18 @@ class Events { |
class ElementEvents extends Events { |
/* Raw event target. */ |
static final webkitEvents = { |
- 'animationend' : 'webkitAnimationEnd', |
- 'animationiteration' : 'webkitAnimationIteration', |
- 'animationstart' : 'webkitAnimationStart', |
- 'fullscreenchange' : 'webkitfullscreenchange', |
+ 'animationend' : 'webkitAnimationEnd', |
+ 'animationiteration' : 'webkitAnimationIteration', |
+ 'animationstart' : 'webkitAnimationStart', |
+ 'fullscreenchange' : 'webkitfullscreenchange', |
'fullscreenerror' : 'webkitfullscreenerror', |
- 'keyadded' : 'webkitkeyadded', |
- 'keyerror' : 'webkitkeyerror', |
- 'keymessage' : 'webkitkeymessage', |
- 'needkey' : 'webkitneedkey', |
- 'pointerlockchange' : 'webkitpointerlockchange', |
- 'pointerlockerror' : 'webkitpointerlockerror', |
- 'resourcetimingbufferfull' : 'webkitresourcetimingbufferfull', |
+ 'keyadded' : 'webkitkeyadded', |
+ 'keyerror' : 'webkitkeyerror', |
+ 'keymessage' : 'webkitkeymessage', |
+ 'needkey' : 'webkitneedkey', |
+ 'pointerlockchange' : 'webkitpointerlockchange', |
+ 'pointerlockerror' : 'webkitpointerlockerror', |
+ 'resourcetimingbufferfull' : 'webkitresourcetimingbufferfull', |
'transitionend': 'webkitTransitionEnd', |
'speechchange' : 'webkitSpeechChange' |
}; |
@@ -8604,7 +8605,7 @@ class HttpRequest extends HttpRequestEventTarget { |
* |
* By default `request` will perform an HTTP GET request, but a different |
* method (`POST`, `PUT`, `DELETE`, etc) can be used by specifying the |
- * [method] parameter. (See also [HttpRequest.postFormData] for `POST` |
+ * [method] parameter. (See also [HttpRequest.postFormData] for `POST` |
* requests only. |
* |
* The Future is completed when the response is available. |
@@ -8613,8 +8614,8 @@ class HttpRequest extends HttpRequestEventTarget { |
* [Blob], [Document], [String], or [FormData] along with the HttpRequest. |
* |
* If specified, [responseType] sets the desired response format for the |
- * request. By default it is [String], but can also be 'arraybuffer', 'blob', |
- * 'document', 'json', or 'text'. See also [HttpRequest.responseType] |
+ * request. By default it is [String], but can also be 'arraybuffer', 'blob', |
+ * 'document', 'json', or 'text'. See also [HttpRequest.responseType] |
* for more information. |
* |
* The [withCredentials] parameter specified that credentials such as a cookie |
@@ -8697,7 +8698,7 @@ class HttpRequest extends HttpRequestEventTarget { |
// redirect case will be handled by the browser before it gets to us, |
// so if we see it we should pass it through to the user. |
var unknownRedirect = xhr.status > 307 && xhr.status < 400; |
- |
+ |
if (accepted || fileUri || notModified || unknownRedirect) { |
completer.complete(xhr); |
} else { |
@@ -10557,15 +10558,15 @@ abstract class ButtonInputElement implements InputElementBase { |
@Native("KeyboardEvent") |
class KeyboardEvent extends UIEvent { |
- /** |
- * Programmatically create a KeyboardEvent. |
+ /** |
+ * Programmatically create a KeyboardEvent. |
* |
* Due to browser differences, keyCode, charCode, or keyIdentifier values |
* cannot be specified in this base level constructor. This constructor |
* enables the user to programmatically create and dispatch a [KeyboardEvent], |
* but it will not contain any particular key content. For programmatically |
* creating keyboard events with specific key value contents, see the custom |
- * Event [KeyEvent]. |
+ * Event [KeyEvent]. |
*/ |
factory KeyboardEvent(String type, |
{Window view, bool canBubble: true, bool cancelable: true, |
@@ -18500,7 +18501,7 @@ class FixedSizeListIterator<T> implements Iterator<T> { |
final int _length; // Cache array length for faster access. |
int _position; |
T _current; |
- |
+ |
FixedSizeListIterator(List<T> array) |
: _array = array, |
_position = -1, |
@@ -18959,14 +18960,13 @@ class KeyEvent extends _WrappedEvent implements KeyboardEvent { |
// 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. |
- |
class Platform { |
/** |
* Returns true if dart:typed_data types are supported on this |
* browser. If false, using these types will generate a runtime |
* error. |
*/ |
- static final supportsTypedData = JS('bool', '!!(window.ArrayBuffer)'); |
+ static final supportsTypedData = JS('bool', '!!($global_.ArrayBuffer)'); |
/** |
* Returns true if SIMD types in dart:typed_data types are supported |
@@ -19478,7 +19478,8 @@ export 'dart:math' show Rectangle, Point; |
* |
* * [Window](https://developer.mozilla.org/en-US/docs/Web/API/window) from MDN. |
*/ |
-Window get window => wrap_jso(JS('', 'window')); |
+ |
+final Window window = wrap_jso(JS('', '$global_')); |
/** |
* Root node for all content in a web page. |
@@ -19718,4 +19719,3 @@ Function _getHtmlFunction(String key) { |
} |
return null; |
} |
- |