OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef NavigatorAmbientLightSensor_h |
| 6 #define NavigatorAmbientLightSensor_h |
| 7 |
| 8 #include "modules/sensor/AmbientLightSensor.h" |
| 9 #include "platform/Supplementable.h" |
| 10 #include "platform/heap/Handle.h" |
| 11 |
| 12 namespace blink { |
| 13 |
| 14 class Navigator; |
| 15 class ExecutionContext; |
| 16 class ExceptionState; |
| 17 |
| 18 class NavigatorAmbientLightSensor final |
| 19 : public GarbageCollectedFinalized<NavigatorAmbientLightSensor> |
| 20 , public Supplement<Navigator> { |
| 21 USING_GARBAGE_COLLECTED_MIXIN(NavigatorAmbientLightSensor); |
| 22 |
| 23 public: |
| 24 static NavigatorAmbientLightSensor& from(Navigator&); |
| 25 static AmbientLightSensor* lightSensor(ExecutionContext*, Navigator&, Except
ionState&); |
| 26 |
| 27 virtual ~NavigatorAmbientLightSensor(); |
| 28 |
| 29 DECLARE_VIRTUAL_TRACE(); |
| 30 |
| 31 private: |
| 32 NavigatorAmbientLightSensor(); |
| 33 static const char* supplementName(); |
| 34 |
| 35 Member<AmbientLightSensor> m_lightSensors; |
| 36 }; |
| 37 |
| 38 } // namespace blink |
| 39 |
| 40 #endif // NavigatorAmbientLightSensor_h |
OLD | NEW |