Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: third_party/WebKit/Source/modules/sensor/NavigatorAmbientLightSensor.h

Issue 1892083002: Generic Sensor API : Ambient Light Sensor API. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: re entrancy fix Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698