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