dom/events/TransitionEvent.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 /* vim: set shiftwidth=2 tabstop=8 autoindent cindent expandtab: */
     2 /* This Source Code Form is subject to the terms of the Mozilla Public
     3  * License, v. 2.0. If a copy of the MPL was not distributed with this
     4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     5 #ifndef mozilla_dom_TransitionEvent_h_
     6 #define mozilla_dom_TransitionEvent_h_
     8 #include "mozilla/EventForwards.h"
     9 #include "mozilla/dom/Event.h"
    10 #include "mozilla/dom/TransitionEventBinding.h"
    11 #include "nsIDOMTransitionEvent.h"
    13 class nsAString;
    15 namespace mozilla {
    16 namespace dom {
    18 class TransitionEvent : public Event,
    19                         public nsIDOMTransitionEvent
    20 {
    21 public:
    22   TransitionEvent(EventTarget* aOwner,
    23                   nsPresContext* aPresContext,
    24                   InternalTransitionEvent* aEvent);
    26   NS_DECL_ISUPPORTS_INHERITED
    27   NS_FORWARD_TO_EVENT
    28   NS_DECL_NSIDOMTRANSITIONEVENT
    30   static already_AddRefed<TransitionEvent>
    31   Constructor(const GlobalObject& aGlobal,
    32               const nsAString& aType,
    33               const TransitionEventInit& aParam,
    34               ErrorResult& aRv);
    36   virtual JSObject* WrapObject(JSContext* aCx) MOZ_OVERRIDE
    37   {
    38     return TransitionEventBinding::Wrap(aCx, this);
    39   }
    41   // xpidl implementation
    42   // GetPropertyName(nsAString& aPropertyName)
    43   // GetPseudoElement(nsAString& aPreudoElement)
    45   float ElapsedTime();
    46 };
    48 } // namespace dom
    49 } // namespace mozilla
    51 #endif // mozilla_dom_TransitionEvent_h_

mercurial