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/Magnetometer.h" | 5 #include "modules/sensor/Magnetometer.h" |
6 | 6 |
7 #include "modules/sensor/MagnetometerReading.h" | 7 #include "modules/sensor/MagnetometerReading.h" |
8 | 8 |
9 using device::mojom::blink::SensorType; | 9 using device::mojom::blink::SensorType; |
10 | 10 |
(...skipping 19 matching lines...) Expand all Loading... |
30 options, | 30 options, |
31 exceptionState, | 31 exceptionState, |
32 SensorType::MAGNETOMETER) {} | 32 SensorType::MAGNETOMETER) {} |
33 | 33 |
34 MagnetometerReading* Magnetometer::reading() const { | 34 MagnetometerReading* Magnetometer::reading() const { |
35 return static_cast<MagnetometerReading*>(Sensor::reading()); | 35 return static_cast<MagnetometerReading*>(Sensor::reading()); |
36 } | 36 } |
37 | 37 |
38 std::unique_ptr<SensorReadingFactory> | 38 std::unique_ptr<SensorReadingFactory> |
39 Magnetometer::createSensorReadingFactory() { | 39 Magnetometer::createSensorReadingFactory() { |
40 return makeUnique<SensorReadingFactoryImpl<MagnetometerReading>>(); | 40 return WTF::makeUnique<SensorReadingFactoryImpl<MagnetometerReading>>(); |
41 } | 41 } |
42 | 42 |
43 DEFINE_TRACE(Magnetometer) { | 43 DEFINE_TRACE(Magnetometer) { |
44 Sensor::trace(visitor); | 44 Sensor::trace(visitor); |
45 } | 45 } |
46 | 46 |
47 } // namespace blink | 47 } // namespace blink |
OLD | NEW |