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

Side by Side Diff: third_party/WebKit/Source/modules/sensor/Magnetometer.cpp

Issue 2547053003: s/ passed(...) / WTF::passed(...) / to avoid future ambiguity w/ base::Passed. (Closed)
Patch Set: Rebasing... Created 4 years 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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/sensor/Gyroscope.cpp ('k') | third_party/WebKit/Source/modules/sensor/SensorProxy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698