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

nsIPresentationRequestUIGlue

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
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIPresentationRequestUIGlue.idl
 */

#ifndef __gen_nsIPresentationRequestUIGlue_h__
#define __gen_nsIPresentationRequestUIGlue_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
class nsIPresentationDevice; /* forward declaration */

#define PRESENTATION_REQUEST_UI_GLUE_CONTRACTID \
  "@mozilla.org/presentation/requestuiglue;1"

/* starting interface:    nsIPresentationRequestUIGlue */
#define NS_IPRESENTATIONREQUESTUIGLUE_IID_STR "faa45119-6fb5-496c-aa4c-f740177a38b5"

#define NS_IPRESENTATIONREQUESTUIGLUE_IID \
  {0xfaa45119, 0x6fb5, 0x496c, \
    { 0xaa, 0x4c, 0xf7, 0x40, 0x17, 0x7a, 0x38, 0xb5 }}

class NS_NO_VTABLE nsIPresentationRequestUIGlue : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPRESENTATIONREQUESTUIGLUE_IID)

  /* nsISupports sendRequest (in DOMString url, in DOMString sessionId, in nsIPresentationDevice device); */
  NS_IMETHOD SendRequest(const nsAString & url, const nsAString & sessionId, nsIPresentationDevice *device, nsISupports * *_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIPresentationRequestUIGlue, NS_IPRESENTATIONREQUESTUIGLUE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIPRESENTATIONREQUESTUIGLUE \
  NS_IMETHOD SendRequest(const nsAString & url, const nsAString & sessionId, nsIPresentationDevice *device, nsISupports * *_retval) 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_NSIPRESENTATIONREQUESTUIGLUE \
  nsresult SendRequest(const nsAString & url, const nsAString & sessionId, nsIPresentationDevice *device, nsISupports * *_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIPRESENTATIONREQUESTUIGLUE(_to) \
  NS_IMETHOD SendRequest(const nsAString & url, const nsAString & sessionId, nsIPresentationDevice *device, nsISupports * *_retval) override { return _to SendRequest(url, sessionId, device, _retval); } 

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

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

/* Header file */
class nsPresentationRequestUIGlue : public nsIPresentationRequestUIGlue
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIPRESENTATIONREQUESTUIGLUE

  nsPresentationRequestUIGlue();

private:
  ~nsPresentationRequestUIGlue();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsPresentationRequestUIGlue, nsIPresentationRequestUIGlue)

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

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

/* nsISupports sendRequest (in DOMString url, in DOMString sessionId, in nsIPresentationDevice device); */
NS_IMETHODIMP nsPresentationRequestUIGlue::SendRequest(const nsAString & url, const nsAString & sessionId, nsIPresentationDevice *device, nsISupports * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIPresentationRequestUIGlue_h__ */