OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef Sensor_h | 5 #ifndef Sensor_h |
6 #define Sensor_h | 6 #define Sensor_h |
7 | 7 |
8 #include "bindings/core/v8/ActiveScriptWrappable.h" | |
9 #include "bindings/core/v8/ScriptWrappable.h" | 8 #include "bindings/core/v8/ScriptWrappable.h" |
10 #include "core/dom/ContextLifecycleObserver.h" | 9 #include "core/dom/ContextLifecycleObserver.h" |
11 #include "core/dom/DOMHighResTimeStamp.h" | 10 #include "core/dom/DOMHighResTimeStamp.h" |
12 #include "core/dom/DOMTimeStamp.h" | 11 #include "core/dom/DOMTimeStamp.h" |
13 #include "core/dom/SuspendableObject.h" | 12 #include "core/dom/SuspendableObject.h" |
14 #include "core/frame/PlatformEventController.h" | 13 #include "core/frame/PlatformEventController.h" |
15 #include "modules/EventTargetModules.h" | 14 #include "modules/EventTargetModules.h" |
16 #include "modules/sensor/SensorOptions.h" | 15 #include "modules/sensor/SensorOptions.h" |
17 #include "modules/sensor/SensorProxy.h" | 16 #include "modules/sensor/SensorProxy.h" |
| 17 #include "platform/bindings/ActiveScriptWrappable.h" |
18 #include "platform/heap/Handle.h" | 18 #include "platform/heap/Handle.h" |
19 | 19 |
20 namespace blink { | 20 namespace blink { |
21 | 21 |
22 class DOMException; | 22 class DOMException; |
23 class ExceptionState; | 23 class ExceptionState; |
24 class ExecutionContext; | 24 class ExecutionContext; |
25 class SensorReading; | 25 class SensorReading; |
26 | 26 |
27 class Sensor : public EventTargetWithInlineData, | 27 class Sensor : public EventTargetWithInlineData, |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 SensorState state_; | 114 SensorState state_; |
115 Member<SensorProxy> sensor_proxy_; | 115 Member<SensorProxy> sensor_proxy_; |
116 device::SensorReading stored_data_; | 116 device::SensorReading stored_data_; |
117 SensorConfigurationPtr configuration_; | 117 SensorConfigurationPtr configuration_; |
118 double last_update_timestamp_; | 118 double last_update_timestamp_; |
119 }; | 119 }; |
120 | 120 |
121 } // namespace blink | 121 } // namespace blink |
122 | 122 |
123 #endif // Sensor_h | 123 #endif // Sensor_h |
OLD | NEW |