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* execution_context, | 11 Gyroscope* Gyroscope::Create(ExecutionContext* execution_context, |
13 const SensorOptions& options, | 12 const SensorOptions& options, |
14 ExceptionState& exception_state) { | 13 ExceptionState& exception_state) { |
15 return new Gyroscope(execution_context, options, exception_state); | 14 return new Gyroscope(execution_context, options, exception_state); |
16 } | 15 } |
17 | 16 |
(...skipping 21 matching lines...) Expand all Loading... |
39 | 38 |
40 double Gyroscope::z(bool& is_null) const { | 39 double Gyroscope::z(bool& is_null) const { |
41 return ReadingValue(2, is_null); | 40 return ReadingValue(2, is_null); |
42 } | 41 } |
43 | 42 |
44 DEFINE_TRACE(Gyroscope) { | 43 DEFINE_TRACE(Gyroscope) { |
45 Sensor::Trace(visitor); | 44 Sensor::Trace(visitor); |
46 } | 45 } |
47 | 46 |
48 } // namespace blink | 47 } // namespace blink |
OLD | NEW |