Index: third_party/WebKit/Source/modules/sensor/AmbientLightSensor.h |
diff --git a/third_party/WebKit/Source/modules/sensor/AmbientLightSensor.h b/third_party/WebKit/Source/modules/sensor/AmbientLightSensor.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ba0660d2aea2f9b96b5b86f8e90eae7b080b3dad |
--- /dev/null |
+++ b/third_party/WebKit/Source/modules/sensor/AmbientLightSensor.h |
@@ -0,0 +1,33 @@ |
+// 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 AmbientLightSensor_h |
+#define AmbientLightSensor_h |
+ |
+#include "modules/sensor/Sensor.h" |
+ |
+namespace blink { |
+ |
+class AmbientLightSensorReading; |
+ |
+class AmbientLightSensor final : public Sensor { |
+ DEFINE_WRAPPERTYPEINFO(); |
+public: |
+ static AmbientLightSensor* create(ExecutionContext*, const SensorOptions&); |
+ static AmbientLightSensor* create(ExecutionContext*); |
+ |
+ AmbientLightSensorReading* reading() const; |
+ |
+ DECLARE_VIRTUAL_TRACE(); |
+ |
+private: |
+ AmbientLightSensor(ExecutionContext*, const SensorOptions&); |
+ // Sensor overrides. |
+ SensorReading* createSensorReading(SensorProxy*) override; |
+ SensorConfigurationPtr createSensorConfig(const SensorOptions&, const SensorConfiguration& defaultConfig) override; |
+}; |
+ |
+} // namespace blink |
+ |
+#endif // AmbientLightSensor_h |