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

nsIColorPicker

nsIColorPickerShownCallback

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

#ifndef __gen_nsIColorPicker_h__
#define __gen_nsIColorPicker_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 mozIDOMWindowProxy; /* forward declaration */


/* starting interface:    nsIColorPickerShownCallback */
#define NS_ICOLORPICKERSHOWNCALLBACK_IID_STR "d2ce78d1-40b5-49d1-b66d-5801fcb9a385"

#define NS_ICOLORPICKERSHOWNCALLBACK_IID \
  {0xd2ce78d1, 0x40b5, 0x49d1, \
    { 0xb6, 0x6d, 0x58, 0x01, 0xfc, 0xb9, 0xa3, 0x85 }}

class NS_NO_VTABLE nsIColorPickerShownCallback : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICOLORPICKERSHOWNCALLBACK_IID)

  /* void update (in AString color); */
  NS_IMETHOD Update(const nsAString & color) = 0;

  /* void done (in AString color); */
  NS_IMETHOD Done(const nsAString & color) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIColorPickerShownCallback, NS_ICOLORPICKERSHOWNCALLBACK_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICOLORPICKERSHOWNCALLBACK \
  NS_IMETHOD Update(const nsAString & color) override; \
  NS_IMETHOD Done(const nsAString & color) 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_NSICOLORPICKERSHOWNCALLBACK \
  nsresult Update(const nsAString & color); \
  nsresult Done(const nsAString & color); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICOLORPICKERSHOWNCALLBACK(_to) \
  NS_IMETHOD Update(const nsAString & color) override { return _to Update(color); } \
  NS_IMETHOD Done(const nsAString & color) override { return _to Done(color); } 

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

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

/* Header file */
class nsColorPickerShownCallback : public nsIColorPickerShownCallback
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSICOLORPICKERSHOWNCALLBACK

  nsColorPickerShownCallback();

private:
  ~nsColorPickerShownCallback();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsColorPickerShownCallback, nsIColorPickerShownCallback)

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

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

/* void update (in AString color); */
NS_IMETHODIMP nsColorPickerShownCallback::Update(const nsAString & color)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void done (in AString color); */
NS_IMETHODIMP nsColorPickerShownCallback::Done(const nsAString & color)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


/* starting interface:    nsIColorPicker */
#define NS_ICOLORPICKER_IID_STR "de229d37-a8a6-46f1-969a-0c1de33d0ad7"

#define NS_ICOLORPICKER_IID \
  {0xde229d37, 0xa8a6, 0x46f1, \
    { 0x96, 0x9a, 0x0c, 0x1d, 0xe3, 0x3d, 0x0a, 0xd7 }}

class NS_NO_VTABLE nsIColorPicker : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICOLORPICKER_IID)

  /* void init (in mozIDOMWindowProxy parent, in AString title, in AString initialColor); */
  NS_IMETHOD Init(mozIDOMWindowProxy *parent, const nsAString & title, const nsAString & initialColor) = 0;

  /* void open (in nsIColorPickerShownCallback aColorPickerShownCallback); */
  NS_IMETHOD Open(nsIColorPickerShownCallback *aColorPickerShownCallback) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIColorPicker, NS_ICOLORPICKER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICOLORPICKER \
  NS_IMETHOD Init(mozIDOMWindowProxy *parent, const nsAString & title, const nsAString & initialColor) override; \
  NS_IMETHOD Open(nsIColorPickerShownCallback *aColorPickerShownCallback) 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_NSICOLORPICKER \
  nsresult Init(mozIDOMWindowProxy *parent, const nsAString & title, const nsAString & initialColor); \
  nsresult Open(nsIColorPickerShownCallback *aColorPickerShownCallback); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICOLORPICKER(_to) \
  NS_IMETHOD Init(mozIDOMWindowProxy *parent, const nsAString & title, const nsAString & initialColor) override { return _to Init(parent, title, initialColor); } \
  NS_IMETHOD Open(nsIColorPickerShownCallback *aColorPickerShownCallback) override { return _to Open(aColorPickerShownCallback); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICOLORPICKER(_to) \
  NS_IMETHOD Init(mozIDOMWindowProxy *parent, const nsAString & title, const nsAString & initialColor) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(parent, title, initialColor); } \
  NS_IMETHOD Open(nsIColorPickerShownCallback *aColorPickerShownCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Open(aColorPickerShownCallback); } 

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

/* Header file */
class nsColorPicker : public nsIColorPicker
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSICOLORPICKER

  nsColorPicker();

private:
  ~nsColorPicker();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsColorPicker, nsIColorPicker)

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

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

/* void init (in mozIDOMWindowProxy parent, in AString title, in AString initialColor); */
NS_IMETHODIMP nsColorPicker::Init(mozIDOMWindowProxy *parent, const nsAString & title, const nsAString & initialColor)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void open (in nsIColorPickerShownCallback aColorPickerShownCallback); */
NS_IMETHODIMP nsColorPicker::Open(nsIColorPickerShownCallback *aColorPickerShownCallback)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIColorPicker_h__ */