/work/obj-fuzz/dom/bindings/AnimationPlaybackEvent.cpp
Line | Count | Source (jump to first uncovered line) |
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 AnimationPlaybackEvent.webidl BY Codegen.py - DO NOT EDIT */ |
8 | | |
9 | | #include "AnimationPlaybackEvent.h" |
10 | | #include "AnimationPlaybackEventBinding.h" |
11 | | #include "EventBinding.h" |
12 | | #include "js/GCAPI.h" |
13 | | #include "mozilla/FloatingPoint.h" |
14 | | #include "mozilla/dom/AnimationPlaybackEvent.h" |
15 | | #include "mozilla/dom/Nullable.h" |
16 | | #include "mozilla/dom/PrimitiveConversions.h" |
17 | | #include "nsDocument.h" |
18 | | |
19 | | namespace mozilla { |
20 | | namespace dom { |
21 | | |
22 | | |
23 | | AnimationPlaybackEvent::AnimationPlaybackEvent(mozilla::dom::EventTarget* aOwner) |
24 | | : Event(aOwner, nullptr, nullptr) |
25 | 0 | { |
26 | 0 | } |
27 | | |
28 | | AnimationPlaybackEvent::~AnimationPlaybackEvent() |
29 | 0 | { |
30 | 0 | } |
31 | | |
32 | | AnimationPlaybackEvent* |
33 | | AnimationPlaybackEvent::AsAnimationPlaybackEvent() |
34 | 0 | { |
35 | 0 | return this; |
36 | 0 | } |
37 | | |
38 | | JSObject* |
39 | | AnimationPlaybackEvent::WrapObjectInternal(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) |
40 | 0 | { |
41 | 0 | return AnimationPlaybackEvent_Binding::Wrap(aCx, this, aGivenProto); |
42 | 0 | } |
43 | | |
44 | | already_AddRefed<AnimationPlaybackEvent> |
45 | | AnimationPlaybackEvent::Constructor(mozilla::dom::EventTarget* aOwner, const nsAString& aType, const AnimationPlaybackEventInit& aEventInitDict) |
46 | 0 | { |
47 | 0 | RefPtr<AnimationPlaybackEvent> e = new AnimationPlaybackEvent(aOwner); |
48 | 0 | bool trusted = e->Init(aOwner); |
49 | 0 | e->InitEvent(aType, aEventInitDict.mBubbles, aEventInitDict.mCancelable); |
50 | 0 | e->mCurrentTime = aEventInitDict.mCurrentTime; |
51 | 0 | e->mTimelineTime = aEventInitDict.mTimelineTime; |
52 | 0 | e->SetTrusted(trusted); |
53 | 0 | e->SetComposed(aEventInitDict.mComposed); |
54 | 0 | return e.forget(); |
55 | 0 | } |
56 | | |
57 | | already_AddRefed<AnimationPlaybackEvent> |
58 | | AnimationPlaybackEvent::Constructor(const GlobalObject& aGlobal, const nsAString& aType, const AnimationPlaybackEventInit& aEventInitDict, ErrorResult& aRv) |
59 | 0 | { |
60 | 0 | nsCOMPtr<mozilla::dom::EventTarget> owner = do_QueryInterface(aGlobal.GetAsSupports()); |
61 | 0 | return Constructor(owner, aType, aEventInitDict); |
62 | 0 | } |
63 | | |
64 | | Nullable<double> |
65 | | AnimationPlaybackEvent::GetCurrentTime() const |
66 | 0 | { |
67 | 0 | return mCurrentTime; |
68 | 0 | } |
69 | | |
70 | | Nullable<double> |
71 | | AnimationPlaybackEvent::GetTimelineTime() const |
72 | 0 | { |
73 | 0 | return mTimelineTime; |
74 | 0 | } |
75 | | |
76 | | |
77 | | } // namespace dom |
78 | | } // namespace mozilla |