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..7780ca4ea20b1165a9fbe6de1e5529685150645c |
--- /dev/null |
+++ b/third_party/WebKit/Source/modules/sensor/AmbientLightSensor.h |
@@ -0,0 +1,35 @@ |
+// 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" |
+#include "platform/heap/Handle.h" |
riju_
2016/09/13 11:06:53
maybe not needed
shalamov
2016/09/13 11:17:09
Done.
|
+ |
+namespace blink { |
+ |
+class AmbientLightSensorReading; |
+ |
+class MODULES_EXPORT AmbientLightSensor final : public Sensor { |
+ USING_GARBAGE_COLLECTED_MIXIN(AmbientLightSensor); |
+ 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 |