Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(131)

Unified Diff: client/dom/generated/src/frog/Uint8ClampedArray.dart

Issue 9539003: Safely wrap window.top in frog dom. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments and merge Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: client/dom/generated/src/frog/Uint8ClampedArray.dart
diff --git a/client/dom/generated/src/frog/Uint8ClampedArray.dart b/client/dom/generated/src/frog/Uint8ClampedArray.dart
index 3d43142b9ec0a28ce82b447ea146767877a7d246..2dd02895f62bb8959e4b7368900de4b16808ea11 100644
--- a/client/dom/generated/src/frog/Uint8ClampedArray.dart
+++ b/client/dom/generated/src/frog/Uint8ClampedArray.dart
@@ -12,5 +12,9 @@ class _Uint8ClampedArrayJs extends _Uint8ArrayJs implements Uint8ClampedArray, L
// Use implementation from Uint8Array.
// final int length;
+ void setElements(Object array, [int offset = null]) native '''
+if (offset == null) return this.set(array);
+return this.set(array, offset);''';
+
_Uint8ClampedArrayJs subarray(int start, [int end = null]) native;
}
« no previous file with comments | « client/dom/generated/src/frog/HTMLIFrameElement.dart ('k') | client/dom/generated/src/interface/Uint8ClampedArray.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698