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 | |
8 using device::mojom::blink::SensorType; | 7 using device::mojom::blink::SensorType; |
9 | 8 |
10 namespace blink { | 9 namespace blink { |
11 | 10 |
12 Gyroscope* Gyroscope::create(ExecutionContext* executionContext, | 11 Gyroscope* Gyroscope::create(ExecutionContext* executionContext, |
13 const SensorOptions& options, | 12 const SensorOptions& options, |
14 ExceptionState& exceptionState) { | 13 ExceptionState& exceptionState) { |
15 return new Gyroscope(executionContext, options, exceptionState); | 14 return new Gyroscope(executionContext, options, exceptionState); |
16 } | 15 } |
17 | 16 |
(...skipping 19 matching lines...) Expand all Loading... |
37 | 36 |
38 double Gyroscope::z(bool& isNull) const { | 37 double Gyroscope::z(bool& isNull) const { |
39 return readingValue(2, isNull); | 38 return readingValue(2, isNull); |
40 } | 39 } |
41 | 40 |
42 DEFINE_TRACE(Gyroscope) { | 41 DEFINE_TRACE(Gyroscope) { |
43 Sensor::trace(visitor); | 42 Sensor::trace(visitor); |
44 } | 43 } |
45 | 44 |
46 } // namespace blink | 45 } // namespace blink |
OLD | NEW |