Line data Source code
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 PresentationConnectionCloseEvent.webidl BY Codegen.py - DO NOT EDIT */
8 :
9 : #ifndef mozilla_dom_PresentationConnectionCloseEvent_h
10 : #define mozilla_dom_PresentationConnectionCloseEvent_h
11 :
12 : #include "PresentationConnectionCloseEventBinding.h"
13 : #include "mozilla/Attributes.h"
14 : #include "mozilla/ErrorResult.h"
15 : #include "mozilla/dom/BindingUtils.h"
16 : #include "mozilla/dom/Event.h"
17 : #include "mozilla/dom/PresentationConnectionCloseEventBinding.h"
18 :
19 : struct JSContext;
20 : namespace mozilla {
21 : namespace dom {
22 :
23 : class PresentationConnectionCloseEvent : public Event
24 : {
25 : public:
26 : NS_DECL_ISUPPORTS_INHERITED
27 0 : NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS_INHERITED(PresentationConnectionCloseEvent, Event)
28 : protected:
29 : virtual ~PresentationConnectionCloseEvent();
30 : explicit PresentationConnectionCloseEvent(mozilla::dom::EventTarget* aOwner);
31 :
32 : PresentationConnectionClosedReason mReason;
33 : nsString mMessage;
34 :
35 : public:
36 : virtual PresentationConnectionCloseEvent* AsPresentationConnectionCloseEvent() override;
37 :
38 : virtual JSObject* WrapObjectInternal(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
39 :
40 : static already_AddRefed<PresentationConnectionCloseEvent> Constructor(mozilla::dom::EventTarget* aOwner, const nsAString& aType, const PresentationConnectionCloseEventInit& aEventInitDict);
41 :
42 : static already_AddRefed<PresentationConnectionCloseEvent> Constructor(const GlobalObject& aGlobal, const nsAString& aType, const PresentationConnectionCloseEventInit& aEventInitDict, ErrorResult& aRv);
43 :
44 : PresentationConnectionClosedReason Reason() const;
45 :
46 : void GetMessage(nsString& aRetVal) const;
47 : };
48 :
49 : } // namespace dom
50 : } // namespace mozilla
51 :
52 : #endif // mozilla_dom_PresentationConnectionCloseEvent_h
|