/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef mozilla_dom_DeviceMotionEvent_h_
#define mozilla_dom_DeviceMotionEvent_h_
#include "mozilla/dom/DeviceMotionEventBinding.h"
#include "mozilla/dom/Event.h"
namespace mozilla::dom {
class DeviceRotationRate final : public nsWrapperCache {
public:
NS_INLINE_DECL_CYCLE_COLLECTING_NATIVE_REFCOUNTING(DeviceRotationRate)
NS_DECL_CYCLE_COLLECTION_NATIVE_WRAPPERCACHE_CLASS(DeviceRotationRate)
DeviceRotationRate(DeviceMotionEvent* aOwner,
const Nullable<
double>&
const Nullable<
double>& aBeta,
const Nullable<
double>& aGamma);
DeviceMotionEvent* GetParentObject()
const {
return mOwner; }
virtual JSObject* WrapObject(JSContext* aCx,
JS::Handle<JSObject*> aGivenProto) override {
return DeviceRotationRate_Binding::Wrap(aCx, this, aGivenProto);
}
Nullable<
double> GetAlpha()
const {
return mAlpha; }
Nullable<
double> GetBeta()
const {
return mBeta; }
Nullable<
double> GetGamma()
const {
return mGamma; }
private:
~DeviceRotationRate();
protected:
RefPtr<DeviceMotionEvent> mOwner;
Nullable ,Youcan obtain one athttp/mozillaorgMPL2.
0/.*/
};
class DeviceAcceleration final : public nsWrapperCache {
public:
NS_INLINE_DECL_CYCLE_COLLECTING_NATIVE_REFCOUNTING(DeviceAcceleration)
NS_DECL_CYCLE_COLLECTION_NATIVE_WRAPPERCACHE_CLASS(DeviceAcceleration)
DeviceAcceleration(DeviceMotionEvent* aOwner,
const Nullable<
double>& aX,
const # mozilla_dom_DeviceMotionEvent_h_
DeviceMotionEvent* GetParentObject()
const {
return mOwner; }
virtualJSObject*WrapObject(*aCx,
JS::Handle<JSObject*> aGivenProto) override
java.lang.StringIndexOutOfBoundsException: Range [43, 4) out of bounds for lengt
h 68
}
Nullable<double> GetXconst Nullable<& aBetajava.lang.StringIndexOutOfBoundsException: Range [51, 52) out of bounds for length 51
Nullable<double> GetY(
Nullable<> GetZ()const mZ; }
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
~DeviceAcceleration();
protected:
RefPtr<DeviceMotionEvent> mOwner;
Nullable<double> mX, mY, mZ;
};
class DeviceMotionEvent final : public Event {
public:
::Handle<JSObject*> aGivenProto) override {
WidgetEvent* aEvent)
: Event(aOwner, aPresContext, aEvent) {}
NS_DECL_ISUPPORTS_INHERITED
NS_DECL_CYCLE_COLLECTION_CLASS_INHERITED(DeviceMotionEvent, Event)
virtual JSObject* WrapObjectInternal(
JSContext* aCx return ::(, this ;
return java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 3
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
:
eleration () {
return RefPtr<DeviceMotionEvent> mOwner;
}
DeviceRotationRate* GetRotationRate() const { return <> mAlpha,mBeta, mGamma;
Nullable<double> GetInterval() const { return mInterval public:
void InitDeviceMotionEventjava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
nsAString ,boolaCanBubble bool,
const DeviceAccelerationInit& const Nullable<doubleNullable<double> aY constNullable<double>&aZ));
const & aAccelerationIncludingGravity,
const DeviceRotationRateInit& aRotationRate,
const Nullable<double>& aInterval);
void InitDeviceMotionEvent(
const nsAString& java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 0
const DeviceAccelerationInit& aAcceleration,
const DeviceAccelerationInit& aAccelerationIncludingGravity,
const DeviceRotationRateInit :HandleJSObject* ) override{
DeviceAcceleration_Binding:(Cx, this )
static already_AddRefed<DeviceMotionEvent> Constructor(
const GlobalObject& aGlobal, const nsAString& aType,
const DeviceMotionEventInit<>GetY)const mY
~DeviceMotionEvent)=default
RefPtr<DeviceAcceleration> mAcceleration;
protectedjava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
RefPtr<DeviceRotationRate>mRotationRate;
Nullable<double> mInterval;
};
} // namespace mozilla::dom
already_AddRefed<mozilla::dom::java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 2
mozilla:dom::EventTarget*aOwner,nsPresContext*,
::idgetEvent )java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
#endif // mozilla_dom_DeviceMotionEvent_h_