/work/obj-fuzz/dist/include/mozilla/dom/AnimationEvent.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_AnimationEvent_h_ |
7 | | #define mozilla_dom_AnimationEvent_h_ |
8 | | |
9 | | #include "mozilla/EventForwards.h" |
10 | | #include "mozilla/dom/Event.h" |
11 | | #include "mozilla/dom/AnimationEventBinding.h" |
12 | | #include "nsStringFwd.h" |
13 | | |
14 | | namespace mozilla { |
15 | | namespace dom { |
16 | | |
17 | | class AnimationEvent : public Event |
18 | | { |
19 | | public: |
20 | | AnimationEvent(EventTarget* aOwner, |
21 | | nsPresContext* aPresContext, |
22 | | InternalAnimationEvent* aEvent); |
23 | | |
24 | | NS_INLINE_DECL_REFCOUNTING_INHERITED(AnimationEvent, Event) |
25 | | |
26 | | static already_AddRefed<AnimationEvent> |
27 | | Constructor(const GlobalObject& aGlobal, |
28 | | const nsAString& aType, |
29 | | const AnimationEventInit& aParam, |
30 | | ErrorResult& aRv); |
31 | | |
32 | | virtual JSObject* WrapObjectInternal(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override |
33 | 0 | { |
34 | 0 | return AnimationEvent_Binding::Wrap(aCx, this, aGivenProto); |
35 | 0 | } |
36 | | |
37 | | void GetAnimationName(nsAString& aAnimationName); |
38 | | |
39 | | float ElapsedTime(); |
40 | | |
41 | | void GetPseudoElement(nsAString& aPseudoElement); |
42 | | |
43 | | protected: |
44 | 0 | ~AnimationEvent() {} |
45 | | }; |
46 | | |
47 | | } // namespace dom |
48 | | } // namespace mozilla |
49 | | |
50 | | already_AddRefed<mozilla::dom::AnimationEvent> |
51 | | NS_NewDOMAnimationEvent(mozilla::dom::EventTarget* aOwner, |
52 | | nsPresContext* aPresContext, |
53 | | mozilla::InternalAnimationEvent* aEvent); |
54 | | |
55 | | #endif // mozilla_dom_AnimationEvent_h_ |