| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 OrientationSensor_h | 5 #ifndef OrientationSensor_h |
| 6 #define OrientationSensor_h | 6 #define OrientationSensor_h |
| 7 | 7 |
| 8 #include "bindings/modules/v8/Float32ArrayOrFloat64ArrayOrDOMMatrix.h" | 8 #include "bindings/modules/v8/Float32ArrayOrFloat64ArrayOrDOMMatrix.h" |
| 9 #include "core/dom/DOMTypedArray.h" | 9 #include "core/dom/DOMTypedArray.h" |
| 10 #include "modules/sensor/Sensor.h" | 10 #include "modules/sensor/Sensor.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 DECLARE_VIRTUAL_TRACE(); | 23 DECLARE_VIRTUAL_TRACE(); |
| 24 | 24 |
| 25 protected: | 25 protected: |
| 26 OrientationSensor(ExecutionContext*, | 26 OrientationSensor(ExecutionContext*, |
| 27 const SensorOptions&, | 27 const SensorOptions&, |
| 28 ExceptionState&, | 28 ExceptionState&, |
| 29 device::mojom::blink::SensorType); | 29 device::mojom::blink::SensorType); |
| 30 | 30 |
| 31 private: | 31 private: |
| 32 // SensorProxy override. | 32 // SensorProxy override. |
| 33 void OnSensorReadingChanged() override; | 33 void OnSensorReadingChanged(double timestamp) override; |
| 34 template <typename Matrix> | 34 template <typename Matrix> |
| 35 void PopulateMatrixInternal(Matrix*, ExceptionState&); | 35 void PopulateMatrixInternal(Matrix*, ExceptionState&); |
| 36 | 36 |
| 37 bool reading_dirty_; | 37 bool reading_dirty_; |
| 38 }; | 38 }; |
| 39 | 39 |
| 40 } // namespace blink | 40 } // namespace blink |
| 41 | 41 |
| 42 #endif // OrientationSensor_h | 42 #endif // OrientationSensor_h |
| OLD | NEW |