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

Unified Diff: sdk/lib/html/dartium/html_dartium.dart

Side-by-side diff isn't available for this file because of its large size.
Issue 11871018: Revert "Fixing up Navigator.getUserMedia." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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:
Download patch
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | tests/html/html.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f397191fc3579b490d6f343815fa4167f4511f17..5420f09f43681b1fc1d77397208af0faa65eb114 100644
--- a/sdk/lib/html/dartium/html_dartium.dart
+++ b/sdk/lib/html/dartium/html_dartium.dart
@@ -16453,12 +16453,13 @@ class MediaSource extends EventTarget {
void removeSourceBuffer(SourceBuffer buffer) native "MediaSource_removeSourceBuffer_Callback";
}
-// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
+// 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 MediaStream; @docsEditable true
@DocsEditable
@DomName('MediaStream')
class MediaStream extends EventTarget {
@@ -16521,15 +16522,6 @@ class MediaStream extends EventTarget {
Stream<Event> get onEnded => endedEvent.forTarget(this);
-
- /**
- * Checks if the MediaStream APIs are supported on the current platform.
- *
- * See also:
- *
- * * [Navigator.getUserMedia]
- */
- static bool get supported => true;
}
@DocsEditable
@@ -17518,50 +17510,12 @@ class NamedNodeMap extends NativeFieldWrapperClass1 implements List<Node> {
// 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.
+
@DocsEditable
@DomName('Navigator')
class Navigator extends NativeFieldWrapperClass1 {
-
-
- /**
- * Gets a stream (video and or audio) from the local computer.
- *
- * Use [MediaStream.supported] to check if this is supported by the current
- * platform.
- *
- * Example use:
- *
- * window.navigator.getUserMedia(audio:true, video: true).then((stream) {
- * var video = new VideoElement()
- * ..autoplay = true
- * ..src = Url.createObjectUrl(stream);
- * document.body.append(video);
- * });
- *
- * See also:
- * * [MediaStream.supported]
- */
- @DomName('Navigator.webkitGetUserMedia')
- @SupportedBrowser(SupportedBrowser.CHROME)
- @Experimental()
- Future<LocalMediaStream> getUserMedia({bool audio=false, bool video=false}) {
- var completer = new Completer<LocalMediaStream>();
- var options = {
- 'audio': audio,
- 'video': video
- };
- this._getUserMedia(options,
- (stream) {
- completer.complete(stream);
- },
- (error) {
- completer.completeError(error);
- });
- return completer.future;
- }
-
-
Navigator.internal();
@DocsEditable
@@ -17642,7 +17596,7 @@ class Navigator extends NativeFieldWrapperClass1 {
@DocsEditable
@DomName('Navigator.webkitGetUserMedia')
- void _getUserMedia(Map options, _NavigatorUserMediaSuccessCallback successCallback, [_NavigatorUserMediaErrorCallback errorCallback]) native "Navigator_webkitGetUserMedia_Callback";
+ void webkitGetUserMedia(Map options, NavigatorUserMediaSuccessCallback successCallback, [NavigatorUserMediaErrorCallback errorCallback]) native "Navigator_webkitGetUserMedia_Callback";
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
@@ -17671,7 +17625,7 @@ class NavigatorUserMediaError extends NativeFieldWrapperClass1 {
// WARNING: Do not edit - generated code.
-typedef void _NavigatorUserMediaErrorCallback(NavigatorUserMediaError error);
+typedef void NavigatorUserMediaErrorCallback(NavigatorUserMediaError error);
// 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.
@@ -17679,7 +17633,7 @@ typedef void _NavigatorUserMediaErrorCallback(NavigatorUserMediaError error);
// WARNING: Do not edit - generated code.
-typedef void _NavigatorUserMediaSuccessCallback(LocalMediaStream stream);
+typedef void NavigatorUserMediaSuccessCallback(LocalMediaStream stream);
// 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.
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | tests/html/html.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698