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

Unified Diff: sdk/lib/html/html_common/conversions.dart

Issue 140543002: Revert "Redo "Make dart2js typed_data implementation classes private"" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 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
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | sdk/lib/html/html_common/html_common_dart2js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/html_common/conversions.dart
diff --git a/sdk/lib/html/html_common/conversions.dart b/sdk/lib/html/html_common/conversions.dart
index c65c3aba57f088963c4b4b02cafdfd4334c1c1ae..d2d3a45d08549de20cb98b6c491b9bae1a48a389 100644
--- a/sdk/lib/html/html_common/conversions.dart
+++ b/sdk/lib/html/html_common/conversions.dart
@@ -148,9 +148,9 @@ _convertDartToNative_PrepareForStructuredClone(value) {
// TODO(sra): Firefox: How to convert _TypedImageData on the other end?
if (e is ImageData) return e;
- if (e is NativeByteBuffer) return e;
+ if (e is ByteBuffer) return e;
- if (e is NativeTypedData) return e;
+ if (e is TypedData) return e;
if (e is Map) {
var slot = findSlot(e);
@@ -332,7 +332,7 @@ gl.ContextAttributes convertNativeToDart_ContextAttributes(
// On Firefox, the returned ImageData is a plain object.
class _TypedImageData implements ImageData {
- final NativeUint8ClampedList data;
+ final Uint8ClampedList data;
final int height;
final int width;
@@ -370,7 +370,7 @@ ImageData convertNativeToDart_ImageData(nativeImageData) {
// object. So we create a _TypedImageData.
return new _TypedImageData(
- JS('NativeUint8ClampedList', '#.data', nativeImageData),
+ JS('Uint8ClampedList', '#.data', nativeImageData),
JS('var', '#.height', nativeImageData),
JS('var', '#.width', nativeImageData));
}
@@ -399,7 +399,7 @@ bool isImmutableJavaScriptArray(value) =>
const String _serializedScriptValue =
'num|String|bool|'
'JSExtendableArray|=Object|'
- 'Blob|File|NativeByteBuffer|NativeTypedData'
+ 'Blob|File|ByteBuffer|TypedData'
// TODO(sra): Add Date, RegExp.
;
const annotation_Creates_SerializedScriptValue =
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | sdk/lib/html/html_common/html_common_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698