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 PluginCrashedEvent.webidl BY Codegen.py - DO NOT EDIT */
8 :
9 : #ifndef mozilla_dom_PluginCrashedEvent_h
10 : #define mozilla_dom_PluginCrashedEvent_h
11 :
12 : #include "mozilla/Attributes.h"
13 : #include "mozilla/ErrorResult.h"
14 : #include "mozilla/dom/BindingUtils.h"
15 : #include "mozilla/dom/Event.h"
16 : #include "mozilla/dom/PluginCrashedEventBinding.h"
17 :
18 : struct JSContext;
19 : namespace mozilla {
20 : namespace dom {
21 :
22 : class PluginCrashedEvent : public Event
23 : {
24 : public:
25 : NS_DECL_ISUPPORTS_INHERITED
26 0 : NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS_INHERITED(PluginCrashedEvent, Event)
27 : protected:
28 : virtual ~PluginCrashedEvent();
29 : explicit PluginCrashedEvent(mozilla::dom::EventTarget* aOwner);
30 :
31 : uint32_t mPluginID;
32 : nsString mPluginDumpID;
33 : nsString mPluginName;
34 : nsString mBrowserDumpID;
35 : nsString mPluginFilename;
36 : bool mSubmittedCrashReport;
37 : bool mGmpPlugin;
38 :
39 : public:
40 : virtual PluginCrashedEvent* AsPluginCrashedEvent() override;
41 :
42 : virtual JSObject* WrapObjectInternal(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
43 :
44 : static already_AddRefed<PluginCrashedEvent> Constructor(mozilla::dom::EventTarget* aOwner, const nsAString& aType, const PluginCrashedEventInit& aEventInitDict);
45 :
46 : static already_AddRefed<PluginCrashedEvent> Constructor(const GlobalObject& aGlobal, const nsAString& aType, const PluginCrashedEventInit& aEventInitDict, ErrorResult& aRv);
47 :
48 : uint32_t PluginID() const;
49 :
50 : void GetPluginDumpID(nsString& aRetVal) const;
51 :
52 : void GetPluginName(nsString& aRetVal) const;
53 :
54 : void GetBrowserDumpID(nsString& aRetVal) const;
55 :
56 : void GetPluginFilename(nsString& aRetVal) const;
57 :
58 : bool SubmittedCrashReport() const;
59 :
60 : bool GmpPlugin() const;
61 : };
62 :
63 : } // namespace dom
64 : } // namespace mozilla
65 :
66 : #endif // mozilla_dom_PluginCrashedEvent_h
|