OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "modules/sensor/RelativeOrientationSensor.h" |
| 6 |
| 7 using device::mojom::blink::SensorType; |
| 8 |
| 9 namespace blink { |
| 10 |
| 11 RelativeOrientationSensor* RelativeOrientationSensor::Create( |
| 12 ExecutionContext* execution_context, |
| 13 const SensorOptions& options, |
| 14 ExceptionState& exception_state) { |
| 15 return new RelativeOrientationSensor(execution_context, options, |
| 16 exception_state); |
| 17 } |
| 18 |
| 19 // static |
| 20 RelativeOrientationSensor* RelativeOrientationSensor::Create( |
| 21 ExecutionContext* execution_context, |
| 22 ExceptionState& exception_state) { |
| 23 return Create(execution_context, SensorOptions(), exception_state); |
| 24 } |
| 25 |
| 26 RelativeOrientationSensor::RelativeOrientationSensor( |
| 27 ExecutionContext* execution_context, |
| 28 const SensorOptions& options, |
| 29 ExceptionState& exception_state) |
| 30 : OrientationSensor(execution_context, |
| 31 options, |
| 32 exception_state, |
| 33 SensorType::RELATIVE_ORIENTATION) {} |
| 34 |
| 35 DEFINE_TRACE(RelativeOrientationSensor) { |
| 36 OrientationSensor::Trace(visitor); |
| 37 } |
| 38 |
| 39 } // namespace blink |
OLD | NEW |