Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this file, |
michael@0 | 3 | * You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | #include "nsISupports.idl" |
michael@0 | 6 | #include "nsIVariant.idl" |
michael@0 | 7 | #include "nsIDOMMediaStream.idl" |
michael@0 | 8 | |
michael@0 | 9 | [scriptable, builtinclass, uuid(4af2bdb7-1547-4d10-8886-02a78c3c0b83)] |
michael@0 | 10 | interface nsIMediaDevice : nsISupports |
michael@0 | 11 | { |
michael@0 | 12 | readonly attribute DOMString type; |
michael@0 | 13 | readonly attribute DOMString name; |
michael@0 | 14 | readonly attribute DOMString id; |
michael@0 | 15 | readonly attribute DOMString facingMode; |
michael@0 | 16 | }; |
michael@0 | 17 | |
michael@0 | 18 | [scriptable, function, uuid(24544878-d35e-4962-8c5f-fb84e97bdfee)] |
michael@0 | 19 | interface nsIGetUserMediaDevicesSuccessCallback : nsISupports |
michael@0 | 20 | { |
michael@0 | 21 | void onSuccess(in nsIVariant devices); |
michael@0 | 22 | }; |
michael@0 | 23 | |
michael@0 | 24 | [scriptable, function, uuid(f2a144fc-3534-4761-8c5d-989ae720f89a)] |
michael@0 | 25 | interface nsIDOMGetUserMediaSuccessCallback : nsISupports |
michael@0 | 26 | { |
michael@0 | 27 | /* |
michael@0 | 28 | * value must be a nsIDOMBlob if picture is true and a |
michael@0 | 29 | * nsIDOMLocalMediaStream if either audio or video are true. |
michael@0 | 30 | */ |
michael@0 | 31 | void onSuccess(in nsISupports value); |
michael@0 | 32 | }; |
michael@0 | 33 | |
michael@0 | 34 | [scriptable, function, uuid(2614bbcf-85cc-43e5-8740-964f52bdc7ca)] |
michael@0 | 35 | interface nsIDOMGetUserMediaErrorCallback : nsISupports |
michael@0 | 36 | { |
michael@0 | 37 | void onError(in DOMString error); |
michael@0 | 38 | }; |