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 47ac8d9b4cff83730233941037df8e81412efa88..a6bea1cf7cc3b3dbaf0dd071789de2a6fcf7ecb2 100644 |
--- a/sdk/lib/html/dart2js/html_dart2js.dart |
+++ b/sdk/lib/html/dart2js/html_dart2js.dart |
@@ -10,6 +10,9 @@ import 'dart:json' as json; |
import 'dart:math'; |
import 'dart:svg' as svg; |
import 'dart:web_audio' as web_audio; |
+import 'dart:_js_helper' show convertDartClosureToJS, Creates, JavaScriptIndexingBehavior, JSName, Null, Returns; |
+import 'dart:_isolate_helper' show IsolateNatives; |
+import 'dart:_foreign_helper' show JS; |
// 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. |
@@ -11062,7 +11065,7 @@ class Float32Array extends ArrayBufferView implements JavaScriptIndexingBehavior |
factory Float32Array.fromList(List<num> list) => |
_TypedArrayFactoryProvider.createFloat32Array_fromList(list); |
- factory Float32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) => |
+ factory Float32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) => |
_TypedArrayFactoryProvider.createFloat32Array_fromBuffer(buffer, byteOffset, length); |
static const int BYTES_PER_ELEMENT = 4; |
@@ -11267,7 +11270,7 @@ class Float64Array extends ArrayBufferView implements JavaScriptIndexingBehavior |
factory Float64Array.fromList(List<num> list) => |
_TypedArrayFactoryProvider.createFloat64Array_fromList(list); |
- factory Float64Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) => |
+ factory Float64Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) => |
_TypedArrayFactoryProvider.createFloat64Array_fromBuffer(buffer, byteOffset, length); |
static const int BYTES_PER_ELEMENT = 8; |
@@ -13768,7 +13771,7 @@ class Int16Array extends ArrayBufferView implements JavaScriptIndexingBehavior, |
factory Int16Array.fromList(List<int> list) => |
_TypedArrayFactoryProvider.createInt16Array_fromList(list); |
- factory Int16Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) => |
+ factory Int16Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) => |
_TypedArrayFactoryProvider.createInt16Array_fromBuffer(buffer, byteOffset, length); |
static const int BYTES_PER_ELEMENT = 2; |
@@ -13973,7 +13976,7 @@ class Int32Array extends ArrayBufferView implements JavaScriptIndexingBehavior, |
factory Int32Array.fromList(List<int> list) => |
_TypedArrayFactoryProvider.createInt32Array_fromList(list); |
- factory Int32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) => |
+ factory Int32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) => |
_TypedArrayFactoryProvider.createInt32Array_fromBuffer(buffer, byteOffset, length); |
static const int BYTES_PER_ELEMENT = 4; |
@@ -14178,7 +14181,7 @@ class Int8Array extends ArrayBufferView implements JavaScriptIndexingBehavior, L |
factory Int8Array.fromList(List<int> list) => |
_TypedArrayFactoryProvider.createInt8Array_fromList(list); |
- factory Int8Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) => |
+ factory Int8Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) => |
_TypedArrayFactoryProvider.createInt8Array_fromBuffer(buffer, byteOffset, length); |
static const int BYTES_PER_ELEMENT = 1; |
@@ -22661,7 +22664,7 @@ class Uint16Array extends ArrayBufferView implements JavaScriptIndexingBehavior, |
factory Uint16Array.fromList(List<int> list) => |
_TypedArrayFactoryProvider.createUint16Array_fromList(list); |
- factory Uint16Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) => |
+ factory Uint16Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) => |
_TypedArrayFactoryProvider.createUint16Array_fromBuffer(buffer, byteOffset, length); |
static const int BYTES_PER_ELEMENT = 2; |
@@ -22866,7 +22869,7 @@ class Uint32Array extends ArrayBufferView implements JavaScriptIndexingBehavior, |
factory Uint32Array.fromList(List<int> list) => |
_TypedArrayFactoryProvider.createUint32Array_fromList(list); |
- factory Uint32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) => |
+ factory Uint32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) => |
_TypedArrayFactoryProvider.createUint32Array_fromBuffer(buffer, byteOffset, length); |
static const int BYTES_PER_ELEMENT = 4; |
@@ -23071,7 +23074,7 @@ class Uint8Array extends ArrayBufferView implements JavaScriptIndexingBehavior, |
factory Uint8Array.fromList(List<int> list) => |
_TypedArrayFactoryProvider.createUint8Array_fromList(list); |
- factory Uint8Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) => |
+ factory Uint8Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) => |
_TypedArrayFactoryProvider.createUint8Array_fromBuffer(buffer, byteOffset, length); |
static const int BYTES_PER_ELEMENT = 1; |
@@ -23276,7 +23279,7 @@ class Uint8ClampedArray extends Uint8Array implements JavaScriptIndexingBehavior |
factory Uint8ClampedArray.fromList(List<int> list) => |
_TypedArrayFactoryProvider.createUint8ClampedArray_fromList(list); |
- factory Uint8ClampedArray.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) => |
+ factory Uint8ClampedArray.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) => |
_TypedArrayFactoryProvider.createUint8ClampedArray_fromBuffer(buffer, byteOffset, length); |
// Use implementation from Uint8Array. |
@@ -30210,9 +30213,9 @@ class KeyboardEventController { |
/** |
- * Defines the keycode values for keys that are returned by |
+ * Defines the keycode values for keys that are returned by |
* KeyboardEvent.keyCode. |
- * |
+ * |
* Important note: There is substantial divergence in how different browsers |
* handle keycodes and their variants in different locales/keyboard layouts. We |
* provide these constants to help make code processing keys more readable. |
@@ -30220,7 +30223,7 @@ class KeyboardEventController { |
abstract class KeyCode { |
// These constant names were borrowed from Closure's Keycode enumeration |
// class. |
- // http://closure-library.googlecode.com/svn/docs/closure_goog_events_keycodes.js.source.html |
+ // http://closure-library.googlecode.com/svn/docs/closure_goog_events_keycodes.js.source.html |
static const int WIN_KEY_FF_LINUX = 0; |
static const int MAC_ENTER = 3; |
static const int BACKSPACE = 8; |
@@ -30415,12 +30418,12 @@ abstract class KeyCode { |
(keyCode >= A && keyCode <= Z)) { |
return true; |
} |
- |
+ |
// Safari sends zero key code for non-latin characters. |
if (_Device.isWebKit && keyCode == 0) { |
return true; |
} |
- |
+ |
return (keyCode == SPACE || keyCode == QUESTION_MARK || keyCode == NUM_PLUS |
|| keyCode == NUM_MINUS || keyCode == NUM_PERIOD || |
keyCode == NUM_DIVISION || keyCode == SEMICOLON || |
@@ -32275,7 +32278,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, |