DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

nsIPresentationAvailabilityListener

nsIPresentationRespondingListener

nsIPresentationSessionListener

Macros

Line Code
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 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIPresentationListener.idl
 */

#ifndef __gen_nsIPresentationListener_h__
#define __gen_nsIPresentationListener_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.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:    nsIPresentationAvailabilityListener */
#define NS_IPRESENTATIONAVAILABILITYLISTENER_IID_STR "0105f837-4279-4715-9d5b-2dc3f8b65353"

#define NS_IPRESENTATIONAVAILABILITYLISTENER_IID \
  {0x0105f837, 0x4279, 0x4715, \
    { 0x9d, 0x5b, 0x2d, 0xc3, 0xf8, 0xb6, 0x53, 0x53 }}

class NS_NO_VTABLE nsIPresentationAvailabilityListener : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPRESENTATIONAVAILABILITYLISTENER_IID)

  /* [noscript] void notifyAvailableChange (in URLArrayRef urls, in bool available); */
  NS_IMETHOD NotifyAvailableChange(const nsTArray<nsString> & urls, bool available) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIPresentationAvailabilityListener, NS_IPRESENTATIONAVAILABILITYLISTENER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIPRESENTATIONAVAILABILITYLISTENER \
  NS_IMETHOD NotifyAvailableChange(const nsTArray<nsString> & urls, bool available) 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_NSIPRESENTATIONAVAILABILITYLISTENER \
  nsresult NotifyAvailableChange(const nsTArray<nsString> & urls, bool available); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIPRESENTATIONAVAILABILITYLISTENER(_to) \
  NS_IMETHOD NotifyAvailableChange(const nsTArray<nsString> & urls, bool available) override { return _to NotifyAvailableChange(urls, available); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIPRESENTATIONAVAILABILITYLISTENER(_to) \
  NS_IMETHOD NotifyAvailableChange(const nsTArray<nsString> & urls, bool available) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyAvailableChange(urls, available); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsPresentationAvailabilityListener : public nsIPresentationAvailabilityListener
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIPRESENTATIONAVAILABILITYLISTENER

  nsPresentationAvailabilityListener();

private:
  ~nsPresentationAvailabilityListener();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsPresentationAvailabilityListener, nsIPresentationAvailabilityListener)

nsPresentationAvailabilityListener::nsPresentationAvailabilityListener()
{
  /* member initializers and constructor code */
}

nsPresentationAvailabilityListener::~nsPresentationAvailabilityListener()
{
  /* destructor code */
}

/* [noscript] void notifyAvailableChange (in URLArrayRef urls, in bool available); */
NS_IMETHODIMP nsPresentationAvailabilityListener::NotifyAvailableChange(const nsTArray<nsString> & urls, bool available)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


/* starting interface:    nsIPresentationSessionListener */
#define NS_IPRESENTATIONSESSIONLISTENER_IID_STR "7dd48df8-8f8c-48c7-ac37-7b9fd1acf2f8"

#define NS_IPRESENTATIONSESSIONLISTENER_IID \
  {0x7dd48df8, 0x8f8c, 0x48c7, \
    { 0xac, 0x37, 0x7b, 0x9f, 0xd1, 0xac, 0xf2, 0xf8 }}

class NS_NO_VTABLE nsIPresentationSessionListener : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPRESENTATIONSESSIONLISTENER_IID)

  enum {
    STATE_CONNECTING = 0U,
    STATE_CONNECTED = 1U,
    STATE_CLOSED = 2U,
    STATE_TERMINATED = 3U
  };

  /* void notifyStateChange (in DOMString sessionId, in unsigned short state, in nsresult reason); */
  NS_IMETHOD NotifyStateChange(const nsAString & sessionId, uint16_t state, nsresult reason) = 0;

  /* void notifyMessage (in DOMString sessionId, in ACString data, in boolean isBinary); */
  NS_IMETHOD NotifyMessage(const nsAString & sessionId, const nsACString & data, bool isBinary) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIPresentationSessionListener, NS_IPRESENTATIONSESSIONLISTENER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIPRESENTATIONSESSIONLISTENER \
  NS_IMETHOD NotifyStateChange(const nsAString & sessionId, uint16_t state, nsresult reason) override; \
  NS_IMETHOD NotifyMessage(const nsAString & sessionId, const nsACString & data, bool isBinary) 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_NSIPRESENTATIONSESSIONLISTENER \
  nsresult NotifyStateChange(const nsAString & sessionId, uint16_t state, nsresult reason); \
  nsresult NotifyMessage(const nsAString & sessionId, const nsACString & data, bool isBinary); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIPRESENTATIONSESSIONLISTENER(_to) \
  NS_IMETHOD NotifyStateChange(const nsAString & sessionId, uint16_t state, nsresult reason) override { return _to NotifyStateChange(sessionId, state, reason); } \
  NS_IMETHOD NotifyMessage(const nsAString & sessionId, const nsACString & data, bool isBinary) override { return _to NotifyMessage(sessionId, data, isBinary); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIPRESENTATIONSESSIONLISTENER(_to) \
  NS_IMETHOD NotifyStateChange(const nsAString & sessionId, uint16_t state, nsresult reason) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyStateChange(sessionId, state, reason); } \
  NS_IMETHOD NotifyMessage(const nsAString & sessionId, const nsACString & data, bool isBinary) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyMessage(sessionId, data, isBinary); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsPresentationSessionListener : public nsIPresentationSessionListener
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIPRESENTATIONSESSIONLISTENER

  nsPresentationSessionListener();

private:
  ~nsPresentationSessionListener();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsPresentationSessionListener, nsIPresentationSessionListener)

nsPresentationSessionListener::nsPresentationSessionListener()
{
  /* member initializers and constructor code */
}

nsPresentationSessionListener::~nsPresentationSessionListener()
{
  /* destructor code */
}

/* void notifyStateChange (in DOMString sessionId, in unsigned short state, in nsresult reason); */
NS_IMETHODIMP nsPresentationSessionListener::NotifyStateChange(const nsAString & sessionId, uint16_t state, nsresult reason)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void notifyMessage (in DOMString sessionId, in ACString data, in boolean isBinary); */
NS_IMETHODIMP nsPresentationSessionListener::NotifyMessage(const nsAString & sessionId, const nsACString & data, bool isBinary)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


/* starting interface:    nsIPresentationRespondingListener */
#define NS_IPRESENTATIONRESPONDINGLISTENER_IID_STR "27f101d7-9ed1-429e-b4f8-43b00e8e111c"

#define NS_IPRESENTATIONRESPONDINGLISTENER_IID \
  {0x27f101d7, 0x9ed1, 0x429e, \
    { 0xb4, 0xf8, 0x43, 0xb0, 0x0e, 0x8e, 0x11, 0x1c }}

class NS_NO_VTABLE nsIPresentationRespondingListener : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPRESENTATIONRESPONDINGLISTENER_IID)

  /* void notifySessionConnect (in unsigned long long windowId, in DOMString sessionId); */
  NS_IMETHOD NotifySessionConnect(uint64_t windowId, const nsAString & sessionId) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIPresentationRespondingListener, NS_IPRESENTATIONRESPONDINGLISTENER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIPRESENTATIONRESPONDINGLISTENER \
  NS_IMETHOD NotifySessionConnect(uint64_t windowId, const nsAString & sessionId) 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_NSIPRESENTATIONRESPONDINGLISTENER \
  nsresult NotifySessionConnect(uint64_t windowId, const nsAString & sessionId); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIPRESENTATIONRESPONDINGLISTENER(_to) \
  NS_IMETHOD NotifySessionConnect(uint64_t windowId, const nsAString & sessionId) override { return _to NotifySessionConnect(windowId, sessionId); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIPRESENTATIONRESPONDINGLISTENER(_to) \
  NS_IMETHOD NotifySessionConnect(uint64_t windowId, const nsAString & sessionId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifySessionConnect(windowId, sessionId); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsPresentationRespondingListener : public nsIPresentationRespondingListener
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIPRESENTATIONRESPONDINGLISTENER

  nsPresentationRespondingListener();

private:
  ~nsPresentationRespondingListener();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsPresentationRespondingListener, nsIPresentationRespondingListener)

nsPresentationRespondingListener::nsPresentationRespondingListener()
{
  /* member initializers and constructor code */
}

nsPresentationRespondingListener::~nsPresentationRespondingListener()
{
  /* destructor code */
}

/* void notifySessionConnect (in unsigned long long windowId, in DOMString sessionId); */
NS_IMETHODIMP nsPresentationRespondingListener::NotifySessionConnect(uint64_t windowId, const nsAString & sessionId)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


#endif /* __gen_nsIPresentationListener_h__ */