| 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/AbsoluteOrientationSensor.h" |
| 6 |
| 7 using device::mojom::blink::SensorType; |
| 8 |
| 9 namespace blink { |
| 10 |
| 11 AbsoluteOrientationSensor* AbsoluteOrientationSensor::create( |
| 12 ExecutionContext* executionContext, |
| 13 const SensorOptions& options, |
| 14 ExceptionState& exceptionState) { |
| 15 return new AbsoluteOrientationSensor(executionContext, options, |
| 16 exceptionState); |
| 17 } |
| 18 |
| 19 // static |
| 20 AbsoluteOrientationSensor* AbsoluteOrientationSensor::create( |
| 21 ExecutionContext* executionContext, |
| 22 ExceptionState& exceptionState) { |
| 23 return create(executionContext, SensorOptions(), exceptionState); |
| 24 } |
| 25 |
| 26 AbsoluteOrientationSensor::AbsoluteOrientationSensor( |
| 27 ExecutionContext* executionContext, |
| 28 const SensorOptions& options, |
| 29 ExceptionState& exceptionState) |
| 30 : OrientationSensor(executionContext, |
| 31 options, |
| 32 exceptionState, |
| 33 SensorType::ABSOLUTE_ORIENTATION) {} |
| 34 |
| 35 DEFINE_TRACE(AbsoluteOrientationSensor) { |
| 36 OrientationSensor::trace(visitor); |
| 37 } |
| 38 |
| 39 } // namespace blink |
| OLD | NEW |