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 abfabe4b194d24a58449a14b2a3c8a859830031c..bcbaff36fea414c4d5c0e7d46a821e50b9dacb26 100644 |
--- a/sdk/lib/html/dart2js/html_dart2js.dart |
+++ b/sdk/lib/html/dart2js/html_dart2js.dart |
@@ -9161,7 +9161,7 @@ class EventSourceEvents extends Events { |
* Events can either be accessed by string name (using the indexed getter) or by |
* getters exposed by subclasses. Use the getters exposed by subclasses when |
* possible for better compile-time type checks. |
- * |
+ * |
* Using an indexed getter: |
* events['mouseover'].add((e) => print("Mouse over!")); |
* |
@@ -9224,7 +9224,7 @@ class EventListenerList { |
* [$dom_addEventListener], [$dom_dispatchEvent], and |
* [$dom_removeEventListener]) for compile-time type checks and a more concise |
* API. |
- */ |
+ */ |
class EventTarget native "*EventTarget" { |
/** @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent */ |
@@ -9909,7 +9909,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; |
@@ -10083,7 +10083,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; |
@@ -11122,23 +11122,23 @@ class HtmlOptionsCollection extends HtmlCollection native "*HTMLOptionsCollectio |
/** |
* A utility for retrieving data from a URL. |
- * |
+ * |
* HttpRequest can be used to obtain data from http, ftp, and file |
- * protocols. |
- * |
+ * protocols. |
+ * |
* For example, suppose we're developing these API docs, and we |
* wish to retrieve the HTML of the top-level page and print it out. |
* The easiest way to do that would be: |
- * |
+ * |
* var httpRequest = HttpRequest.get('http://api.dartlang.org', |
* (request) => print(request.responseText)); |
- * |
+ * |
* **Important**: With the default behavior of this class, your |
* code making the request should be served from the same origin (domain name, |
* port, and application layer protocol) as the URL you are trying to access |
- * with HttpRequest. However, there are ways to |
+ * with HttpRequest. However, there are ways to |
* [get around this restriction](http://www.dartlang.org/articles/json-web-service/#note-on-jsonp). |
- * |
+ * |
* See also: |
* |
* * [Dart article on using HttpRequests](http://www.dartlang.org/articles/json-web-service/#getting-data) |
@@ -11149,7 +11149,7 @@ class HtmlOptionsCollection extends HtmlCollection native "*HTMLOptionsCollectio |
class HttpRequest extends EventTarget native "*XMLHttpRequest" { |
/** |
* Creates a URL get request for the specified `url`. |
- * |
+ * |
* After completing the request, the object will call the user-provided |
* [onComplete] callback. |
*/ |
@@ -11161,8 +11161,8 @@ class HttpRequest extends EventTarget native "*XMLHttpRequest" { |
* Creates a URL GET request for the specified `url` with |
* credentials such a cookie (already) set in the header or |
* [authorization headers](http://tools.ietf.org/html/rfc1945#section-10.2). |
- * |
- * After completing the request, the object will call the user-provided |
+ * |
+ * After completing the request, the object will call the user-provided |
* [onComplete] callback. |
* |
* A few other details to keep in mind when using credentials: |
@@ -11171,7 +11171,7 @@ class HttpRequest extends EventTarget native "*XMLHttpRequest" { |
* * The `Access-Control-Allow-Origin` header of `url` cannot contain a wildcard (*). |
* * The `Access-Control-Allow-Credentials` header of `url` must be set to true. |
* * If `Access-Control-Expose-Headers` has not been set to true, only a subset of all the response headers will be returned when calling [getAllRequestHeaders]. |
- * |
+ * |
* See also: [authorization headers](http://en.wikipedia.org/wiki/Basic_access_authentication). |
*/ |
factory HttpRequest.getWithCredentials(String url, |
@@ -12364,7 +12364,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; |
@@ -12538,7 +12538,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; |
@@ -12712,7 +12712,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; |
@@ -14759,7 +14759,7 @@ class Navigator native "*Navigator" { |
/// @domName Navigator.language; @docsEditable true |
String get language => JS('String', '#.language || #.userLanguage', this, |
this); |
- |
+ |
/// @domName Navigator.appCodeName; @docsEditable true |
final String appCodeName; |
@@ -19608,7 +19608,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; |
@@ -19782,7 +19782,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; |
@@ -19956,7 +19956,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; |
@@ -20130,7 +20130,7 @@ class Uint8ClampedArray extends Uint8Array native "*Uint8ClampedArray" { |
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. |
@@ -25259,7 +25259,7 @@ abstract class CssClassSet implements Set<String> { |
_modify((s) => s.add(value)); |
} |
- bool remove(String value) { |
+ bool remove(Object value) { |
Set<String> s = readClasses(); |
bool result = s.remove(value); |
writeClasses(s); |
@@ -25930,9 +25930,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. |
@@ -25940,7 +25940,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; |
@@ -26135,12 +26135,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 || |
@@ -28026,7 +28026,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, |