/work/obj-fuzz/dom/bindings/PluginCrashedEvent.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 PluginCrashedEvent.webidl BY Codegen.py - DO NOT EDIT */ |
8 | | |
9 | | #include "EventBinding.h" |
10 | | #include "PluginCrashedEvent.h" |
11 | | #include "PluginCrashedEventBinding.h" |
12 | | #include "js/GCAPI.h" |
13 | | #include "mozilla/dom/Nullable.h" |
14 | | #include "mozilla/dom/PluginCrashedEvent.h" |
15 | | #include "mozilla/dom/PrimitiveConversions.h" |
16 | | |
17 | | namespace mozilla { |
18 | | namespace dom { |
19 | | |
20 | | |
21 | | PluginCrashedEvent::PluginCrashedEvent(mozilla::dom::EventTarget* aOwner) |
22 | | : Event(aOwner, nullptr, nullptr) |
23 | 0 | { |
24 | 0 | } |
25 | | |
26 | | PluginCrashedEvent::~PluginCrashedEvent() |
27 | 0 | { |
28 | 0 | } |
29 | | |
30 | | PluginCrashedEvent* |
31 | | PluginCrashedEvent::AsPluginCrashedEvent() |
32 | 0 | { |
33 | 0 | return this; |
34 | 0 | } |
35 | | |
36 | | JSObject* |
37 | | PluginCrashedEvent::WrapObjectInternal(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) |
38 | 0 | { |
39 | 0 | return PluginCrashedEvent_Binding::Wrap(aCx, this, aGivenProto); |
40 | 0 | } |
41 | | |
42 | | already_AddRefed<PluginCrashedEvent> |
43 | | PluginCrashedEvent::Constructor(mozilla::dom::EventTarget* aOwner, const nsAString& aType, const PluginCrashedEventInit& aEventInitDict) |
44 | 0 | { |
45 | 0 | RefPtr<PluginCrashedEvent> e = new PluginCrashedEvent(aOwner); |
46 | 0 | bool trusted = e->Init(aOwner); |
47 | 0 | e->InitEvent(aType, aEventInitDict.mBubbles, aEventInitDict.mCancelable); |
48 | 0 | e->mPluginID = aEventInitDict.mPluginID; |
49 | 0 | e->mPluginDumpID = aEventInitDict.mPluginDumpID; |
50 | 0 | e->mPluginName = aEventInitDict.mPluginName; |
51 | 0 | e->mBrowserDumpID = aEventInitDict.mBrowserDumpID; |
52 | 0 | e->mPluginFilename = aEventInitDict.mPluginFilename; |
53 | 0 | e->mSubmittedCrashReport = aEventInitDict.mSubmittedCrashReport; |
54 | 0 | e->mGmpPlugin = aEventInitDict.mGmpPlugin; |
55 | 0 | e->SetTrusted(trusted); |
56 | 0 | e->SetComposed(aEventInitDict.mComposed); |
57 | 0 | return e.forget(); |
58 | 0 | } |
59 | | |
60 | | already_AddRefed<PluginCrashedEvent> |
61 | | PluginCrashedEvent::Constructor(const GlobalObject& aGlobal, const nsAString& aType, const PluginCrashedEventInit& aEventInitDict, ErrorResult& aRv) |
62 | 0 | { |
63 | 0 | nsCOMPtr<mozilla::dom::EventTarget> owner = do_QueryInterface(aGlobal.GetAsSupports()); |
64 | 0 | return Constructor(owner, aType, aEventInitDict); |
65 | 0 | } |
66 | | |
67 | | uint32_t |
68 | | PluginCrashedEvent::PluginID() const |
69 | 0 | { |
70 | 0 | return mPluginID; |
71 | 0 | } |
72 | | |
73 | | void |
74 | | PluginCrashedEvent::GetPluginDumpID(nsString& aRetVal) const |
75 | 0 | { |
76 | 0 | aRetVal = mPluginDumpID; |
77 | 0 | } |
78 | | |
79 | | void |
80 | | PluginCrashedEvent::GetPluginName(nsString& aRetVal) const |
81 | 0 | { |
82 | 0 | aRetVal = mPluginName; |
83 | 0 | } |
84 | | |
85 | | void |
86 | | PluginCrashedEvent::GetBrowserDumpID(nsString& aRetVal) const |
87 | 0 | { |
88 | 0 | aRetVal = mBrowserDumpID; |
89 | 0 | } |
90 | | |
91 | | void |
92 | | PluginCrashedEvent::GetPluginFilename(nsString& aRetVal) const |
93 | 0 | { |
94 | 0 | aRetVal = mPluginFilename; |
95 | 0 | } |
96 | | |
97 | | bool |
98 | | PluginCrashedEvent::SubmittedCrashReport() const |
99 | 0 | { |
100 | 0 | return mSubmittedCrashReport; |
101 | 0 | } |
102 | | |
103 | | bool |
104 | | PluginCrashedEvent::GmpPlugin() const |
105 | 0 | { |
106 | 0 | return mGmpPlugin; |
107 | 0 | } |
108 | | |
109 | | |
110 | | } // namespace dom |
111 | | } // namespace mozilla |