Use ImplementedAs for MediaDevices.getUserMediaFromJS
authoryouenn.fablet@crf.canon.fr <youenn.fablet@crf.canon.fr@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 25 Oct 2015 07:42:56 +0000 (07:42 +0000)
committeryouenn.fablet@crf.canon.fr <youenn.fablet@crf.canon.fr@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 25 Oct 2015 07:42:56 +0000 (07:42 +0000)
https://bugs.webkit.org/show_bug.cgi?id=150439

Reviewed by Darin Adler.

No change in behavior.

* Modules/mediastream/MediaDevices.h: Removing getUserMediaFromJS C++ function.
* Modules/mediastream/MediaDevices.idl: Marking getUserMediaFromJS as ImplementedAS=getUserMedia

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@191547 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/Modules/mediastream/MediaDevices.h
Source/WebCore/Modules/mediastream/MediaDevices.idl

index 5734119..5cc1e71 100644 (file)
@@ -1,3 +1,15 @@
+2015-10-25  Youenn Fablet  <youenn.fablet@crf.canon.fr>
+
+        Use ImplementedAs for MediaDevices.getUserMediaFromJS
+        https://bugs.webkit.org/show_bug.cgi?id=150439
+
+        Reviewed by Darin Adler.
+
+        No change in behavior.
+
+        * Modules/mediastream/MediaDevices.h: Removing getUserMediaFromJS C++ function.
+        * Modules/mediastream/MediaDevices.idl: Marking getUserMediaFromJS as ImplementedAS=getUserMedia
+
 2015-10-24  Gwang Yoon Hwang  <yoon@igalia.com>
 
         Remove setApplyDeviceScaleFactorInCompositor
index ca0566f..558063c 100644 (file)
@@ -63,8 +63,6 @@ public:
     void getUserMedia(const Dictionary&, Promise&&, ExceptionCode&) const;
     void enumerateDevices(EnumerateDevicesPromise&&, ExceptionCode&) const;
 
-    void getUserMediaFromJS(const Dictionary& dictionary, Promise&& promise, ExceptionCode& ec) const { getUserMedia(dictionary, WTF::move(promise), ec); }
-
 private:
     explicit MediaDevices(ScriptExecutionContext*);
 };
index 6857862..03e143b 100644 (file)
@@ -35,5 +35,5 @@
     [JSBuiltin] Promise getUserMedia(Dictionary options);
     [RaisesException] Promise enumerateDevices();
 
-    [Private, RaisesException] Promise getUserMediaFromJS(Dictionary options);
+    [Private, RaisesException, ImplementedAs=getUserMedia] Promise getUserMediaFromJS(Dictionary options);
 };