/work/obj-fuzz/dist/include/mozilla/dom/TransitionEvent.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
2 | | /* vim: set ts=8 sts=2 et sw=2 tw=80: */ |
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 | | #ifndef mozilla_dom_TransitionEvent_h_ |
7 | | #define mozilla_dom_TransitionEvent_h_ |
8 | | |
9 | | #include "mozilla/EventForwards.h" |
10 | | #include "mozilla/dom/Event.h" |
11 | | #include "mozilla/dom/TransitionEventBinding.h" |
12 | | #include "nsStringFwd.h" |
13 | | |
14 | | namespace mozilla { |
15 | | namespace dom { |
16 | | |
17 | | class TransitionEvent : public Event |
18 | | { |
19 | | public: |
20 | | TransitionEvent(EventTarget* aOwner, |
21 | | nsPresContext* aPresContext, |
22 | | InternalTransitionEvent* aEvent); |
23 | | |
24 | | NS_INLINE_DECL_REFCOUNTING_INHERITED(TransitionEvent, Event) |
25 | | |
26 | | static already_AddRefed<TransitionEvent> |
27 | | Constructor(const GlobalObject& aGlobal, |
28 | | const nsAString& aType, |
29 | | const TransitionEventInit& aParam, |
30 | | ErrorResult& aRv); |
31 | | |
32 | | virtual JSObject* WrapObjectInternal(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override |
33 | 0 | { |
34 | 0 | return TransitionEvent_Binding::Wrap(aCx, this, aGivenProto); |
35 | 0 | } |
36 | | |
37 | | void GetPropertyName(nsAString& aPropertyName) const; |
38 | | void GetPseudoElement(nsAString& aPreudoElement) const; |
39 | | |
40 | | float ElapsedTime(); |
41 | | |
42 | | protected: |
43 | 0 | ~TransitionEvent() {} |
44 | | }; |
45 | | |
46 | | } // namespace dom |
47 | | } // namespace mozilla |
48 | | |
49 | | already_AddRefed<mozilla::dom::TransitionEvent> |
50 | | NS_NewDOMTransitionEvent(mozilla::dom::EventTarget* aOwner, |
51 | | nsPresContext* aPresContext, |
52 | | mozilla::InternalTransitionEvent* aEvent); |
53 | | |
54 | | #endif // mozilla_dom_TransitionEvent_h_ |