chromium/third_party/blink/renderer/modules/sensor/ambient_light_sensor.idl

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

// https://w3c.github.io/ambient-light/#ambient-light-sensor-interface

[
    RuntimeEnabled=SensorExtraClasses,
    SecureContext,
    Exposed=Window
] interface AmbientLightSensor : Sensor {
    [CallWith=ExecutionContext, RaisesException, MeasureAs=AmbientLightSensorConstructor] constructor(optional SensorOptions sensorOptions = {});
    readonly attribute unrestricted double? illuminance;
};