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

Side by Side Diff: third_party/WebKit/Source/modules/sensor/RelativeOrientationSensor.cpp

Issue 2908393002: [Sensors] Bindings for RelativeOrientationSensor (Closed)
Patch Set: updated webexposed tests results Created 3 years, 6 months 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
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698