blob: 34b3f1e0ec0d897f5cf845efc0c326b7f568d693 [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.
#ifndef THIRD_PARTY_BLINK_RENDERER_MODULES_SENSOR_AMBIENT_LIGHT_SENSOR_H_
#define THIRD_PARTY_BLINK_RENDERER_MODULES_SENSOR_AMBIENT_LIGHT_SENSOR_H_
#include "third_party/blink/renderer/modules/sensor/sensor.h"
namespace blink {
class AmbientLightSensor final : public Sensor {
DEFINE_WRAPPERTYPEINFO();
public:
static AmbientLightSensor* Create(ExecutionContext*,
const SensorOptions*,
ExceptionState&);
static AmbientLightSensor* Create(ExecutionContext*, ExceptionState&);
AmbientLightSensor(ExecutionContext*, const SensorOptions*, ExceptionState&);
double illuminance(bool& is_null) const;
void Trace(blink::Visitor*) override;
};
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_MODULES_SENSOR_AMBIENT_LIGHT_SENSOR_H_