Bug 1943650 - Command-line --help output misformatted after --dbus-service. r=emilio
[gecko.git] / dom / media / mediacontrol / PositionStateEvent.h
blob5d6a5ebb7829b37eeffad9f054a764bbcc603e0e
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
8 * NOT EDIT */
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"
19 struct JSContext;
20 namespace mozilla {
21 namespace dom {
22 struct PositionStateEventInit;
24 class PositionStateEvent : public Event {
25 public:
26 NS_INLINE_DECL_REFCOUNTING_INHERITED(PositionStateEvent, Event)
28 protected:
29 virtual ~PositionStateEvent();
30 explicit PositionStateEvent(mozilla::dom::EventTarget* aOwner);
32 double mDuration;
33 double mPlaybackRate;
34 double mPosition;
36 public:
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;
57 } // namespace dom
58 } // namespace mozilla
60 #endif // mozilla_dom_PositionStateEvent_h