| OLD | NEW |
| (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 |
| OLD | NEW |