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

Side by Side Diff: third_party/WebKit/Source/modules/sensor/Gyroscope.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/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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698