/usr/include/firefox/nsIDOMLoadStatus.h is in firefox-dev 11.0+build1-0ubuntu4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM /build/buildd/firefox-11.0+build1/build-tree/mozilla/dom/interfaces/offline/nsIDOMLoadStatus.idl
*/
#ifndef __gen_nsIDOMLoadStatus_h__
#define __gen_nsIDOMLoadStatus_h__
#ifndef __gen_domstubs_h__
#include "domstubs.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
/* starting interface: nsIDOMLoadStatus */
#define NS_IDOMLOADSTATUS_IID_STR "2cb53a8a-d2f4-4ddf-874f-3bc2d595c41a"
#define NS_IDOMLOADSTATUS_IID \
{0x2cb53a8a, 0xd2f4, 0x4ddf, \
{ 0x87, 0x4f, 0x3b, 0xc2, 0xd5, 0x95, 0xc4, 0x1a }}
class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMLoadStatus : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMLOADSTATUS_IID)
/* readonly attribute nsIDOMNode source; */
NS_SCRIPTABLE NS_IMETHOD GetSource(nsIDOMNode * *aSource) = 0;
/* readonly attribute DOMString uri; */
NS_SCRIPTABLE NS_IMETHOD GetUri(nsAString & aUri) = 0;
/* readonly attribute long totalSize; */
NS_SCRIPTABLE NS_IMETHOD GetTotalSize(PRInt32 *aTotalSize) = 0;
/* readonly attribute long loadedSize; */
NS_SCRIPTABLE NS_IMETHOD GetLoadedSize(PRInt32 *aLoadedSize) = 0;
/* readonly attribute unsigned short readyState; */
NS_SCRIPTABLE NS_IMETHOD GetReadyState(PRUint16 *aReadyState) = 0;
/* readonly attribute unsigned short status; */
NS_SCRIPTABLE NS_IMETHOD GetStatus(PRUint16 *aStatus) = 0;
enum {
UNINITIALIZED = 0U,
REQUESTED = 1U,
RECEIVING = 2U,
LOADED = 3U
};
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMLoadStatus, NS_IDOMLOADSTATUS_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDOMLOADSTATUS \
NS_SCRIPTABLE NS_IMETHOD GetSource(nsIDOMNode * *aSource); \
NS_SCRIPTABLE NS_IMETHOD GetUri(nsAString & aUri); \
NS_SCRIPTABLE NS_IMETHOD GetTotalSize(PRInt32 *aTotalSize); \
NS_SCRIPTABLE NS_IMETHOD GetLoadedSize(PRInt32 *aLoadedSize); \
NS_SCRIPTABLE NS_IMETHOD GetReadyState(PRUint16 *aReadyState); \
NS_SCRIPTABLE NS_IMETHOD GetStatus(PRUint16 *aStatus); \
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDOMLOADSTATUS(_to) \
NS_SCRIPTABLE NS_IMETHOD GetSource(nsIDOMNode * *aSource) { return _to GetSource(aSource); } \
NS_SCRIPTABLE NS_IMETHOD GetUri(nsAString & aUri) { return _to GetUri(aUri); } \
NS_SCRIPTABLE NS_IMETHOD GetTotalSize(PRInt32 *aTotalSize) { return _to GetTotalSize(aTotalSize); } \
NS_SCRIPTABLE NS_IMETHOD GetLoadedSize(PRInt32 *aLoadedSize) { return _to GetLoadedSize(aLoadedSize); } \
NS_SCRIPTABLE NS_IMETHOD GetReadyState(PRUint16 *aReadyState) { return _to GetReadyState(aReadyState); } \
NS_SCRIPTABLE NS_IMETHOD GetStatus(PRUint16 *aStatus) { return _to GetStatus(aStatus); } \
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIDOMLOADSTATUS(_to) \
NS_SCRIPTABLE NS_IMETHOD GetSource(nsIDOMNode * *aSource) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSource(aSource); } \
NS_SCRIPTABLE NS_IMETHOD GetUri(nsAString & aUri) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUri(aUri); } \
NS_SCRIPTABLE NS_IMETHOD GetTotalSize(PRInt32 *aTotalSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTotalSize(aTotalSize); } \
NS_SCRIPTABLE NS_IMETHOD GetLoadedSize(PRInt32 *aLoadedSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLoadedSize(aLoadedSize); } \
NS_SCRIPTABLE NS_IMETHOD GetReadyState(PRUint16 *aReadyState) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReadyState(aReadyState); } \
NS_SCRIPTABLE NS_IMETHOD GetStatus(PRUint16 *aStatus) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStatus(aStatus); } \
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsDOMLoadStatus : public nsIDOMLoadStatus
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIDOMLOADSTATUS
nsDOMLoadStatus();
private:
~nsDOMLoadStatus();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsDOMLoadStatus, nsIDOMLoadStatus)
nsDOMLoadStatus::nsDOMLoadStatus()
{
/* member initializers and constructor code */
}
nsDOMLoadStatus::~nsDOMLoadStatus()
{
/* destructor code */
}
/* readonly attribute nsIDOMNode source; */
NS_IMETHODIMP nsDOMLoadStatus::GetSource(nsIDOMNode * *aSource)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute DOMString uri; */
NS_IMETHODIMP nsDOMLoadStatus::GetUri(nsAString & aUri)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute long totalSize; */
NS_IMETHODIMP nsDOMLoadStatus::GetTotalSize(PRInt32 *aTotalSize)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute long loadedSize; */
NS_IMETHODIMP nsDOMLoadStatus::GetLoadedSize(PRInt32 *aLoadedSize)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute unsigned short readyState; */
NS_IMETHODIMP nsDOMLoadStatus::GetReadyState(PRUint16 *aReadyState)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute unsigned short status; */
NS_IMETHODIMP nsDOMLoadStatus::GetStatus(PRUint16 *aStatus)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIDOMLoadStatus_h__ */
|