1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM /home/jenkins/src/comm-central/widget/nsIApplicationChooser.idl
*/
#ifndef __gen_nsIApplicationChooser_h__
#define __gen_nsIApplicationChooser_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
#ifndef __gen_nsIMIMEInfo_h__
#include "nsIMIMEInfo.h"
#endif
#include "js/GCAnnotations.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class mozIDOMWindowProxy; /* forward declaration */
/* starting interface: nsIApplicationChooserFinishedCallback */
#define NS_IAPPLICATIONCHOOSERFINISHEDCALLBACK_IID_STR "8144404d-e6c7-4861-bcca-47de912ee811"
#define NS_IAPPLICATIONCHOOSERFINISHEDCALLBACK_IID \
{0x8144404d, 0xe6c7, 0x4861, \
{ 0xbc, 0xca, 0x47, 0xde, 0x91, 0x2e, 0xe8, 0x11 }}
class NS_NO_VTABLE nsIApplicationChooserFinishedCallback : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IAPPLICATIONCHOOSERFINISHEDCALLBACK_IID)
/* void done (in nsIHandlerApp handlerApp); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Done(nsIHandlerApp *handlerApp) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIApplicationChooserFinishedCallback, NS_IAPPLICATIONCHOOSERFINISHEDCALLBACK_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIAPPLICATIONCHOOSERFINISHEDCALLBACK \
NS_IMETHOD Done(nsIHandlerApp *handlerApp) override;
/* Use this macro when declaring the members of this interface when the
class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIAPPLICATIONCHOOSERFINISHEDCALLBACK \
nsresult Done(nsIHandlerApp *handlerApp);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIAPPLICATIONCHOOSERFINISHEDCALLBACK(_to) \
NS_IMETHOD Done(nsIHandlerApp *handlerApp) override { return _to Done(handlerApp); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIAPPLICATIONCHOOSERFINISHEDCALLBACK(_to) \
NS_IMETHOD Done(nsIHandlerApp *handlerApp) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Done(handlerApp); }
/* starting interface: nsIApplicationChooser */
#define NS_IAPPLICATIONCHOOSER_IID_STR "f7a149da-612a-46ba-8a2f-54786fc28791"
#define NS_IAPPLICATIONCHOOSER_IID \
{0xf7a149da, 0x612a, 0x46ba, \
{ 0x8a, 0x2f, 0x54, 0x78, 0x6f, 0xc2, 0x87, 0x91 }}
class NS_NO_VTABLE nsIApplicationChooser : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IAPPLICATIONCHOOSER_IID)
/* void init (in mozIDOMWindowProxy parent, in ACString title); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Init(mozIDOMWindowProxy *parent, const nsACString& title) = 0;
/* void open (in ACString contentType, in nsIApplicationChooserFinishedCallback applicationChooserFinishedCallback); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Open(const nsACString& contentType, nsIApplicationChooserFinishedCallback *applicationChooserFinishedCallback) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIApplicationChooser, NS_IAPPLICATIONCHOOSER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIAPPLICATIONCHOOSER \
NS_IMETHOD Init(mozIDOMWindowProxy *parent, const nsACString& title) override; \
NS_IMETHOD Open(const nsACString& contentType, nsIApplicationChooserFinishedCallback *applicationChooserFinishedCallback) override;
/* Use this macro when declaring the members of this interface when the
class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIAPPLICATIONCHOOSER \
nsresult Init(mozIDOMWindowProxy *parent, const nsACString& title); \
nsresult Open(const nsACString& contentType, nsIApplicationChooserFinishedCallback *applicationChooserFinishedCallback);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIAPPLICATIONCHOOSER(_to) \
NS_IMETHOD Init(mozIDOMWindowProxy *parent, const nsACString& title) override { return _to Init(parent, title); } \
NS_IMETHOD Open(const nsACString& contentType, nsIApplicationChooserFinishedCallback *applicationChooserFinishedCallback) override { return _to Open(contentType, applicationChooserFinishedCallback); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIAPPLICATIONCHOOSER(_to) \
NS_IMETHOD Init(mozIDOMWindowProxy *parent, const nsACString& title) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(parent, title); } \
NS_IMETHOD Open(const nsACString& contentType, nsIApplicationChooserFinishedCallback *applicationChooserFinishedCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Open(contentType, applicationChooserFinishedCallback); }
#endif /* __gen_nsIApplicationChooser_h__ */
|