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

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

Issue 2746573002: [Sensors] Implement bindings for AbsoluteOrientationSensor (Closed)
Patch Set: webexpose Created 3 years, 8 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/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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698