1/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2/* This Source Code Form is subject to the terms of the Mozilla Public 3 * License, v. 2.0. If a copy of the MPL was not distributed with this file, 4 * You can obtain one at http://mozilla.org/MPL/2.0/. 5 * 6 * The origin of this IDL file is 7 * http://dev.w3.org/2011/webrtc/editor/getusermedia.html 8 */ 9 10// These dictionaries need to be in a separate file from their use in unions 11// in MediaSreamTrack.webidl due to a webidl compiler limitation: 12// 13// TypeError: Dictionary contains a union that contains a dictionary in the same 14// WebIDL file. This won't compile. Move the inner dictionary to a different file. 15 16dictionary ConstrainLongRange { 17 long min; 18 long max; 19 long exact; 20 long ideal; 21}; 22 23dictionary ConstrainDoubleRange { 24 double min; 25 double max; 26 double exact; 27 double ideal; 28}; 29 30dictionary ConstrainBooleanParameters { 31 boolean exact; 32 boolean ideal; 33}; 34 35dictionary ConstrainDOMStringParameters { 36 (DOMString or sequence<DOMString>) exact; 37 (DOMString or sequence<DOMString>) ideal; 38}; 39