// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// https://www.w3.org/TR/image-capture/#PhotoCapabilities

enum MeteringMode {
    "none",
    "manual",
    "single-shot",
    "continuous",
};

enum FillLightMode {
    "none",
    "off",
    "auto",
    "flash",
    "torch",
};

[
    OriginTrialEnabled=ImageCapture,
] interface PhotoCapabilities {
    readonly attribute MeteringMode whiteBalanceMode;
    readonly attribute MediaSettingsRange colorTemperature;
    readonly attribute MeteringMode exposureMode;
    readonly attribute MediaSettingsRange exposureCompensation;
    readonly attribute MediaSettingsRange iso;
    readonly attribute boolean redEyeReduction;
    readonly attribute MeteringMode focusMode;

    readonly attribute MediaSettingsRange brightness;
    readonly attribute MediaSettingsRange contrast;
    readonly attribute MediaSettingsRange saturation;
    readonly attribute MediaSettingsRange sharpness;
    readonly attribute MediaSettingsRange imageHeight;
    readonly attribute MediaSettingsRange imageWidth;
    readonly attribute MediaSettingsRange zoom;
    readonly attribute FillLightMode fillLightMode;
};
