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

Side by Side Diff: third_party/WebKit/Source/modules/sensor/Gyroscope.h

Issue 2506903003: [sensors] Gyroscope sensor bindings implementation (Closed)
Patch Set: Comments + rebase Created 4 years, 1 month 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 2016 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 #ifndef Gyroscope_h
6 #define Gyroscope_h
7
8 #include "modules/sensor/Sensor.h"
9
10 namespace blink {
11
12 class GyroscopeReading;
13
14 class Gyroscope final : public Sensor {
15 DEFINE_WRAPPERTYPEINFO();
16
17 public:
18 static Gyroscope* create(ScriptState*, const SensorOptions&, ExceptionState&);
19 static Gyroscope* create(ScriptState*, ExceptionState&);
20
21 GyroscopeReading* reading() const;
22
23 DECLARE_VIRTUAL_TRACE();
24
25 private:
26 Gyroscope(ScriptState*, const SensorOptions&, ExceptionState&);
27 // Sensor overrides.
28 std::unique_ptr<SensorReadingFactory> createSensorReadingFactory() override;
29 };
30
31 } // namespace blink
32
33 #endif // Gyroscope_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/sensor/BUILD.gn ('k') | third_party/WebKit/Source/modules/sensor/Gyroscope.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698