Chromium Code Reviews| 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 0dc02f2d485cc725282e99fcffc4e9f45b32b6c2..e30b1feaeae6632c5b2280f8da71ff66ddf44d5b 100644 |
| --- a/sdk/lib/html/dartium/html_dartium.dart |
| +++ b/sdk/lib/html/dartium/html_dartium.dart |
| @@ -2241,9 +2241,15 @@ class Counter extends NativeFieldWrapperClass1 { |
| @DocsEditable |
| @DomName('Crypto') |
| +@SupportedBrowser(SupportedBrowser.CHROME) |
| +@SupportedBrowser(SupportedBrowser.SAFARI) |
| +@Experimental |
| class Crypto extends NativeFieldWrapperClass1 { |
| Crypto.internal(); |
| + /// Checks if this type is supported on the current platform. |
| + static bool get supported => true; |
| + |
| @DomName('Crypto.getRandomValues') |
| @DocsEditable |
| ArrayBufferView getRandomValues(ArrayBufferView array) native "Crypto_getRandomValues_Callback"; |
| @@ -6999,7 +7005,7 @@ class DivElement extends _Element_Merged { |
| * [Target 2: Connect Dart & HTML](http://www.dartlang.org/docs/tutorials/connect-dart-html/). |
| */ |
| @DomName('Document') |
| -class Document extends Node |
| +class Document extends Node |
| { |
| Document.internal() : super.internal(); |
| @@ -11872,7 +11878,7 @@ class Float32Array extends ArrayBufferView implements List<num> { |
| @DomName('Float32Array.fromBuffer') |
| @DocsEditable |
| - 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; |
| @@ -12107,7 +12113,7 @@ class Float64Array extends ArrayBufferView implements List<num> { |
| @DomName('Float64Array.fromBuffer') |
| @DocsEditable |
| - 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; |
| @@ -15363,7 +15369,7 @@ class Int16Array extends ArrayBufferView implements List<int> { |
| @DomName('Int16Array.fromBuffer') |
| @DocsEditable |
| - 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; |
| @@ -15598,7 +15604,7 @@ class Int32Array extends ArrayBufferView implements List<int> { |
| @DomName('Int32Array.fromBuffer') |
| @DocsEditable |
| - 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; |
| @@ -15833,7 +15839,7 @@ class Int8Array extends ArrayBufferView implements List<int> { |
| @DomName('Int8Array.fromBuffer') |
| @DocsEditable |
| - factory Int8Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) => |
|
Emily Fortuna
2013/02/22 20:25:49
what's with all the seeming non-changes in the fil
Mads Ager (google)
2013/02/25 07:00:17
I'm afraid that was me. My editor strips out trail
Emily Fortuna
2013/02/25 17:00:16
No the issue is this file is auto-generated. So it
|
| + factory Int8Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) => |
| _TypedArrayFactoryProvider.createInt8Array_fromBuffer(buffer, byteOffset, length); |
| static const int BYTES_PER_ELEMENT = 1; |
| @@ -20783,7 +20789,7 @@ class RtcIceCandidateEvent extends Event { |
| class RtcPeerConnection extends EventTarget { |
| /** |
| - * Checks if Real Time Communication (RTC) APIs are supported and enabled on |
| + * Checks if Real Time Communication (RTC) APIs are supported and enabled on |
| * the current platform. |
| */ |
| static bool get supported => true; |
| @@ -24748,7 +24754,7 @@ class Uint16Array extends ArrayBufferView implements List<int> { |
| @DomName('Uint16Array.fromBuffer') |
| @DocsEditable |
| - 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; |
| @@ -24983,7 +24989,7 @@ class Uint32Array extends ArrayBufferView implements List<int> { |
| @DomName('Uint32Array.fromBuffer') |
| @DocsEditable |
| - 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; |
| @@ -25218,7 +25224,7 @@ class Uint8Array extends ArrayBufferView implements List<int> { |
| @DomName('Uint8Array.fromBuffer') |
| @DocsEditable |
| - 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; |
| @@ -25453,7 +25459,7 @@ class Uint8ClampedArray extends Uint8Array implements List<int> { |
| @DomName('Uint8ClampedArray.fromBuffer') |
| @DocsEditable |
| - factory Uint8ClampedArray.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) => |
| + factory Uint8ClampedArray.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) => |
| _TypedArrayFactoryProvider.createUint8ClampedArray_fromBuffer(buffer, byteOffset, length); |
| @DomName('Uint8ClampedArray.length') |
| @@ -27892,7 +27898,7 @@ class Window extends EventTarget implements WindowBase { |
| * frame unwinds, causing the future to complete after all processing has |
| * completed for the current event, but before any subsequent events. |
| */ |
| - void setImmediate(TimeoutHandler callback) { |
| + void setImmediate(TimeoutHandler callback) { |
| _addMicrotaskCallback(callback); |
| } |
| /** |
| @@ -27923,7 +27929,7 @@ class Window extends EventTarget implements WindowBase { |
| * If you need to later cancel this animation, use [requestAnimationFrame] |
| * instead. |
| * |
| - * Note: The code that runs when the future completes should call |
| + * Note: The code that runs when the future completes should call |
| * [animationFrame] again for the animation to continue. |
| */ |
| Future<num> get animationFrame { |
| @@ -32526,9 +32532,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. |
| @@ -32536,7 +32542,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; |
| @@ -32731,12 +32737,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 || |
| @@ -34218,7 +34224,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, |