| 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 #include "modules/sensor/Gyroscope.h" | 5 #include "modules/sensor/Gyroscope.h" |
| 6 | 6 |
| 7 #include "modules/sensor/GyroscopeReading.h" | 7 #include "modules/sensor/GyroscopeReading.h" |
| 8 | 8 |
| 9 using device::mojom::blink::SensorType; | 9 using device::mojom::blink::SensorType; |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 const SensorOptions& options, | 26 const SensorOptions& options, |
| 27 ExceptionState& exceptionState) | 27 ExceptionState& exceptionState) |
| 28 : Sensor(executionContext, options, exceptionState, SensorType::GYROSCOPE) { | 28 : Sensor(executionContext, options, exceptionState, SensorType::GYROSCOPE) { |
| 29 } | 29 } |
| 30 | 30 |
| 31 GyroscopeReading* Gyroscope::reading() const { | 31 GyroscopeReading* Gyroscope::reading() const { |
| 32 return static_cast<GyroscopeReading*>(Sensor::reading()); | 32 return static_cast<GyroscopeReading*>(Sensor::reading()); |
| 33 } | 33 } |
| 34 | 34 |
| 35 std::unique_ptr<SensorReadingFactory> Gyroscope::createSensorReadingFactory() { | 35 std::unique_ptr<SensorReadingFactory> Gyroscope::createSensorReadingFactory() { |
| 36 return makeUnique<SensorReadingFactoryImpl<GyroscopeReading>>(); | 36 return WTF::makeUnique<SensorReadingFactoryImpl<GyroscopeReading>>(); |
| 37 } | 37 } |
| 38 | 38 |
| 39 DEFINE_TRACE(Gyroscope) { | 39 DEFINE_TRACE(Gyroscope) { |
| 40 Sensor::trace(visitor); | 40 Sensor::trace(visitor); |
| 41 } | 41 } |
| 42 | 42 |
| 43 } // namespace blink | 43 } // namespace blink |
| OLD | NEW |