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

Unified Diff: sdk/lib/html/dart2js/html_dart2js.dart

Issue 11312091: Rename DOMURL to ObjectUrl. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
Download patch
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dart2js/html_dart2js.dart
===================================================================
--- sdk/lib/html/dart2js/html_dart2js.dart (revision 14542)
+++ sdk/lib/html/dart2js/html_dart2js.dart (working copy)
@@ -9313,30 +9313,6 @@
// WARNING: Do not edit - generated code.
-/// @domName URL
-abstract class DOMURL {
-
- factory DOMURL() => _DOMURLFactoryProvider.createDOMURL();
-
- /** @domName URL.createObjectURL */
- static final createObjectURL = _DOMURLImpl.createObjectURL;
-
- /** @domName URL.revokeObjectURL */
- static final revokeObjectURL = _DOMURLImpl.revokeObjectURL;
-}
-
-class _DOMURLImpl implements DOMURL native "*URL" {
-
- static String createObjectURL(blob_OR_source_OR_stream) native;
-
- static void revokeObjectURL(String url) native;
-}
-// 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.
-
-// WARNING: Do not edit - generated code.
-
/// @domName HTMLDataListElement
abstract class DataListElement implements Element {
@@ -17903,17 +17879,7 @@
*/
void requestLayoutFrame(TimeoutHandler callback);
- /**
- * Creates a new object URL for the specified object. The URL will be
- * available until revokeObjectUrl is called.
- * [object] can be a Blob, MediaStream or MediaSource.
- */
- String createObjectUrl(object);
- /** @domName DOMURL.revokeObjectURL */
- void revokeObjectUrl(String objectUrl);
-
-
/**
* @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
*/
@@ -18490,16 +18456,7 @@
localStorage['dart-port:$name'] = JSON.stringify(serialized);
}
- String createObjectUrl(object) =>
- JS('String',
- '(window.URL || window.webkitURL).createObjectURL(#)', object);
- void revokeObjectUrl(String objectUrl) {
- JS('void',
- '(window.URL || window.webkitURL).revokeObjectURL(#)', objectUrl);
- }
-
-
_LocalWindowEventsImpl get on =>
new _LocalWindowEventsImpl(this);
@@ -35029,6 +34986,37 @@
// WARNING: Do not edit - generated code.
+/// @domName URL
+abstract class Url {
+
+ /** @domName URL.createObjectURL */
+ static final createObjectUrl = _UrlImpl.createObjectUrl;
+
+ /** @domName URL.revokeObjectURL */
+ static final revokeObjectUrl = _UrlImpl.revokeObjectUrl;
+}
+// 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.
+
+class _UrlImpl implements Url native "*URL" {
+
+ static String createObjectUrl(blob_OR_source_OR_stream) =>
+ JS('String',
+ '(window.URL || window.webkitURL).createObjectURL(#)',
+ blob_OR_source_OR_stream);
+
+ static void revokeObjectUrl(String objectUrl) =>
+ JS('void',
+ '(window.URL || window.webkitURL).revokeObjectURL(#)', objectUrl);
+
+}
+// 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.
+
+// WARNING: Do not edit - generated code.
+
/// @domName ValidityState
abstract class ValidityState {
@@ -37885,14 +37873,6 @@
// 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.
-class _DOMURLFactoryProvider {
- static DOMURL createDOMURL() =>
- JS('DOMURL', 'new DOMURL()' );
-}
-// 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.
-
class _DataViewFactoryProvider {
static DataView createDataView(
ArrayBuffer buffer, [int byteOffset = null, int byteLength = null]) {
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698