blob: b589643b8472f2ee3bd112a0b32bd96c987df308 [file] [log] [blame]
// 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://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;
};