1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/events/TransitionEvent.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,51 @@ 1.4 +/* vim: set shiftwidth=2 tabstop=8 autoindent cindent expandtab: */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 +#ifndef mozilla_dom_TransitionEvent_h_ 1.9 +#define mozilla_dom_TransitionEvent_h_ 1.10 + 1.11 +#include "mozilla/EventForwards.h" 1.12 +#include "mozilla/dom/Event.h" 1.13 +#include "mozilla/dom/TransitionEventBinding.h" 1.14 +#include "nsIDOMTransitionEvent.h" 1.15 + 1.16 +class nsAString; 1.17 + 1.18 +namespace mozilla { 1.19 +namespace dom { 1.20 + 1.21 +class TransitionEvent : public Event, 1.22 + public nsIDOMTransitionEvent 1.23 +{ 1.24 +public: 1.25 + TransitionEvent(EventTarget* aOwner, 1.26 + nsPresContext* aPresContext, 1.27 + InternalTransitionEvent* aEvent); 1.28 + 1.29 + NS_DECL_ISUPPORTS_INHERITED 1.30 + NS_FORWARD_TO_EVENT 1.31 + NS_DECL_NSIDOMTRANSITIONEVENT 1.32 + 1.33 + static already_AddRefed<TransitionEvent> 1.34 + Constructor(const GlobalObject& aGlobal, 1.35 + const nsAString& aType, 1.36 + const TransitionEventInit& aParam, 1.37 + ErrorResult& aRv); 1.38 + 1.39 + virtual JSObject* WrapObject(JSContext* aCx) MOZ_OVERRIDE 1.40 + { 1.41 + return TransitionEventBinding::Wrap(aCx, this); 1.42 + } 1.43 + 1.44 + // xpidl implementation 1.45 + // GetPropertyName(nsAString& aPropertyName) 1.46 + // GetPseudoElement(nsAString& aPreudoElement) 1.47 + 1.48 + float ElapsedTime(); 1.49 +}; 1.50 + 1.51 +} // namespace dom 1.52 +} // namespace mozilla 1.53 + 1.54 +#endif // mozilla_dom_TransitionEvent_h_