1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim:set ts=2 sw=2 sts=2 et cindent: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 /* THIS FILE IS AUTOGENERATED FROM PositionStateEvent.webidl BY Codegen.py - DO
10 #ifndef mozilla_dom_PositionStateEvent_h
11 #define mozilla_dom_PositionStateEvent_h
13 #include "js/RootingAPI.h"
14 #include "mozilla/AlreadyAddRefed.h"
15 #include "mozilla/dom/Event.h"
16 #include "nsISupports.h"
17 #include "nsStringFwd.h"
22 struct PositionStateEventInit
;
24 class PositionStateEvent
: public Event
{
26 NS_INLINE_DECL_REFCOUNTING_INHERITED(PositionStateEvent
, Event
)
29 virtual ~PositionStateEvent();
30 explicit PositionStateEvent(mozilla::dom::EventTarget
* aOwner
);
37 PositionStateEvent
* AsPositionStateEvent() override
;
39 JSObject
* WrapObjectInternal(JSContext
* aCx
,
40 JS::Handle
<JSObject
*> aGivenProto
) override
;
42 static already_AddRefed
<PositionStateEvent
> Constructor(
43 mozilla::dom::EventTarget
* aOwner
, const nsAString
& aType
,
44 const PositionStateEventInit
& aEventInitDict
);
46 static already_AddRefed
<PositionStateEvent
> Constructor(
47 const GlobalObject
& aGlobal
, const nsAString
& aType
,
48 const PositionStateEventInit
& aEventInitDict
);
50 double Duration() const;
52 double PlaybackRate() const;
54 double Position() const;
58 } // namespace mozilla
60 #endif // mozilla_dom_PositionStateEvent_h