dom/webidl/CameraCapabilities.webidl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/webidl/CameraCapabilities.webidl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,40 @@
     1.4 +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* vim: set ts=2 et sw=2 tw=80: */
     1.6 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this file,
     1.8 + * You can obtain one at http://mozilla.org/MPL/2.0/.
     1.9 + */
    1.10 +
    1.11 +/* The capabilities of a CameraControl instance. These are guaranteed
    1.12 +   not to change over the lifetime of that particular instance.
    1.13 +*/
    1.14 +[Func="CameraCapabilities::HasSupport"]
    1.15 +interface CameraCapabilities
    1.16 +{
    1.17 +  [Constant, Cached] readonly attribute sequence<CameraSize> previewSizes;
    1.18 +  [Constant, Cached] readonly attribute sequence<CameraSize> pictureSizes;
    1.19 +  [Constant, Cached] readonly attribute sequence<CameraSize> thumbnailSizes;
    1.20 +  [Constant, Cached] readonly attribute sequence<CameraSize> videoSizes;
    1.21 +
    1.22 +  [Constant, Cached] readonly attribute sequence<DOMString> fileFormats;
    1.23 +
    1.24 +  [Constant, Cached] readonly attribute sequence<DOMString> whiteBalanceModes;
    1.25 +  [Constant, Cached] readonly attribute sequence<DOMString> sceneModes;
    1.26 +  [Constant, Cached] readonly attribute sequence<DOMString> effects;
    1.27 +  [Constant, Cached] readonly attribute sequence<DOMString> flashModes;
    1.28 +  [Constant, Cached] readonly attribute sequence<DOMString> focusModes;
    1.29 +
    1.30 +  [Constant, Cached] readonly attribute sequence<double> zoomRatios;
    1.31 +
    1.32 +  [Constant, Cached] readonly attribute unsigned long maxFocusAreas;
    1.33 +  [Constant, Cached] readonly attribute unsigned long maxMeteringAreas;
    1.34 +  [Constant, Cached] readonly attribute unsigned long maxDetectedFaces;
    1.35 +
    1.36 +  [Constant, Cached] readonly attribute double minExposureCompensation;
    1.37 +  [Constant, Cached] readonly attribute double maxExposureCompensation;
    1.38 +  [Constant, Cached] readonly attribute double exposureCompensationStep;
    1.39 +
    1.40 +  [Constant, Cached] readonly attribute any recorderProfiles;
    1.41 +
    1.42 +  [Constant, Cached] readonly attribute sequence<DOMString> isoModes;
    1.43 +};

mercurial