blob: 7a3642bef3219a370ae622e0f91a3e7af1e21605 [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef Gyroscope_h
#define Gyroscope_h
#include "modules/sensor/Sensor.h"
namespace blink {
class Gyroscope final : public Sensor {
DEFINE_WRAPPERTYPEINFO();
public:
static Gyroscope* Create(ExecutionContext*,
const SensorOptions&,
ExceptionState&);
static Gyroscope* Create(ExecutionContext*, ExceptionState&);
double x(bool& is_null) const;
double y(bool& is_null) const;
double z(bool& is_null) const;
DECLARE_VIRTUAL_TRACE();
private:
Gyroscope(ExecutionContext*, const SensorOptions&, ExceptionState&);
};
} // namespace blink
#endif // Gyroscope_h