dom/webidl/CameraCapabilities.webidl

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:0b34198bfb5e
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
5 * You can obtain one at http://mozilla.org/MPL/2.0/.
6 */
7
8 /* The capabilities of a CameraControl instance. These are guaranteed
9 not to change over the lifetime of that particular instance.
10 */
11 [Func="CameraCapabilities::HasSupport"]
12 interface CameraCapabilities
13 {
14 [Constant, Cached] readonly attribute sequence<CameraSize> previewSizes;
15 [Constant, Cached] readonly attribute sequence<CameraSize> pictureSizes;
16 [Constant, Cached] readonly attribute sequence<CameraSize> thumbnailSizes;
17 [Constant, Cached] readonly attribute sequence<CameraSize> videoSizes;
18
19 [Constant, Cached] readonly attribute sequence<DOMString> fileFormats;
20
21 [Constant, Cached] readonly attribute sequence<DOMString> whiteBalanceModes;
22 [Constant, Cached] readonly attribute sequence<DOMString> sceneModes;
23 [Constant, Cached] readonly attribute sequence<DOMString> effects;
24 [Constant, Cached] readonly attribute sequence<DOMString> flashModes;
25 [Constant, Cached] readonly attribute sequence<DOMString> focusModes;
26
27 [Constant, Cached] readonly attribute sequence<double> zoomRatios;
28
29 [Constant, Cached] readonly attribute unsigned long maxFocusAreas;
30 [Constant, Cached] readonly attribute unsigned long maxMeteringAreas;
31 [Constant, Cached] readonly attribute unsigned long maxDetectedFaces;
32
33 [Constant, Cached] readonly attribute double minExposureCompensation;
34 [Constant, Cached] readonly attribute double maxExposureCompensation;
35 [Constant, Cached] readonly attribute double exposureCompensationStep;
36
37 [Constant, Cached] readonly attribute any recorderProfiles;
38
39 [Constant, Cached] readonly attribute sequence<DOMString> isoModes;
40 };

mercurial