tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

PositionStateEvent.h (1753B)


      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/. */
      6 
      7 /* THIS FILE IS AUTOGENERATED FROM PositionStateEvent.webidl BY Codegen.py - DO
      8 * NOT EDIT */
      9 
     10 #ifndef mozilla_dom_PositionStateEvent_h
     11 #define mozilla_dom_PositionStateEvent_h
     12 
     13 #include "js/RootingAPI.h"
     14 #include "mozilla/AlreadyAddRefed.h"
     15 #include "mozilla/dom/Event.h"
     16 #include "nsISupports.h"
     17 #include "nsStringFwd.h"
     18 
     19 struct JSContext;
     20 namespace mozilla {
     21 namespace dom {
     22 struct PositionStateEventInit;
     23 
     24 class PositionStateEvent : public Event {
     25 public:
     26  NS_INLINE_DECL_REFCOUNTING_INHERITED(PositionStateEvent, Event)
     27 
     28 protected:
     29  virtual ~PositionStateEvent();
     30  explicit PositionStateEvent(mozilla::dom::EventTarget* aOwner);
     31 
     32  double mDuration;
     33  double mPlaybackRate;
     34  double mPosition;
     35 
     36 public:
     37  PositionStateEvent* AsPositionStateEvent() override;
     38 
     39  JSObject* WrapObjectInternal(JSContext* aCx,
     40                               JS::Handle<JSObject*> aGivenProto) override;
     41 
     42  static already_AddRefed<PositionStateEvent> Constructor(
     43      mozilla::dom::EventTarget* aOwner, const nsAString& aType,
     44      const PositionStateEventInit& aEventInitDict);
     45 
     46  static already_AddRefed<PositionStateEvent> Constructor(
     47      const GlobalObject& aGlobal, const nsAString& aType,
     48      const PositionStateEventInit& aEventInitDict);
     49 
     50  double Duration() const;
     51 
     52  double PlaybackRate() const;
     53 
     54  double Position() const;
     55 };
     56 
     57 }  // namespace dom
     58 }  // namespace mozilla
     59 
     60 #endif  // mozilla_dom_PositionStateEvent_h