/usr/include/thunderbird/nsIScreen.h is in thunderbird-dev 1:52.8.0-1~deb8u1.
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 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 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIScreen.idl
*/
#ifndef __gen_nsIScreen_h__
#define __gen_nsIScreen_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
/**
* The display type of nsIScreen belongs to.
*/
enum class DisplayType: int32_t {
DISPLAY_PRIMARY, // primary screen
DISPLAY_EXTERNAL, // wired displays, such as HDMI, DisplayPort, etc.
DISPLAY_VIRTUAL // wireless displays, such as Chromecast, WiFi-Display, etc.
};
/* starting interface: nsIScreen */
#define NS_ISCREEN_IID_STR "826e80c8-d70f-42e2-8aa9-82c05f2a370a"
#define NS_ISCREEN_IID \
{0x826e80c8, 0xd70f, 0x42e2, \
{ 0x8a, 0xa9, 0x82, 0xc0, 0x5f, 0x2a, 0x37, 0x0a }}
class NS_NO_VTABLE nsIScreen : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISCREEN_IID)
enum {
BRIGHTNESS_DIM = 0U,
BRIGHTNESS_FULL = 1U,
BRIGHTNESS_LEVELS = 2U,
ROTATION_0_DEG = 0U,
ROTATION_90_DEG = 1U,
ROTATION_180_DEG = 2U,
ROTATION_270_DEG = 3U
};
/* readonly attribute unsigned long id; */
NS_IMETHOD GetId(uint32_t *aId) = 0;
/* void GetRect (out long left, out long top, out long width, out long height); */
NS_IMETHOD GetRect(int32_t *left, int32_t *top, int32_t *width, int32_t *height) = 0;
/* void GetAvailRect (out long left, out long top, out long width, out long height); */
NS_IMETHOD GetAvailRect(int32_t *left, int32_t *top, int32_t *width, int32_t *height) = 0;
/* void GetRectDisplayPix (out long left, out long top, out long width, out long height); */
NS_IMETHOD GetRectDisplayPix(int32_t *left, int32_t *top, int32_t *width, int32_t *height) = 0;
/* void GetAvailRectDisplayPix (out long left, out long top, out long width, out long height); */
NS_IMETHOD GetAvailRectDisplayPix(int32_t *left, int32_t *top, int32_t *width, int32_t *height) = 0;
/* void lockMinimumBrightness (in unsigned long brightness); */
NS_IMETHOD LockMinimumBrightness(uint32_t brightness) = 0;
/* void unlockMinimumBrightness (in unsigned long brightness); */
NS_IMETHOD UnlockMinimumBrightness(uint32_t brightness) = 0;
/* readonly attribute long pixelDepth; */
NS_IMETHOD GetPixelDepth(int32_t *aPixelDepth) = 0;
/* readonly attribute long colorDepth; */
NS_IMETHOD GetColorDepth(int32_t *aColorDepth) = 0;
/* attribute unsigned long rotation; */
NS_IMETHOD GetRotation(uint32_t *aRotation) = 0;
NS_IMETHOD SetRotation(uint32_t aRotation) = 0;
/* readonly attribute double contentsScaleFactor; */
NS_IMETHOD GetContentsScaleFactor(double *aContentsScaleFactor) = 0;
/* readonly attribute double defaultCSSScaleFactor; */
NS_IMETHOD GetDefaultCSSScaleFactor(double *aDefaultCSSScaleFactor) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIScreen, NS_ISCREEN_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISCREEN \
NS_IMETHOD GetId(uint32_t *aId) override; \
NS_IMETHOD GetRect(int32_t *left, int32_t *top, int32_t *width, int32_t *height) override; \
NS_IMETHOD GetAvailRect(int32_t *left, int32_t *top, int32_t *width, int32_t *height) override; \
NS_IMETHOD GetRectDisplayPix(int32_t *left, int32_t *top, int32_t *width, int32_t *height) override; \
NS_IMETHOD GetAvailRectDisplayPix(int32_t *left, int32_t *top, int32_t *width, int32_t *height) override; \
NS_IMETHOD LockMinimumBrightness(uint32_t brightness) override; \
NS_IMETHOD UnlockMinimumBrightness(uint32_t brightness) override; \
NS_IMETHOD GetPixelDepth(int32_t *aPixelDepth) override; \
NS_IMETHOD GetColorDepth(int32_t *aColorDepth) override; \
NS_IMETHOD GetRotation(uint32_t *aRotation) override; \
NS_IMETHOD SetRotation(uint32_t aRotation) override; \
NS_IMETHOD GetContentsScaleFactor(double *aContentsScaleFactor) override; \
NS_IMETHOD GetDefaultCSSScaleFactor(double *aDefaultCSSScaleFactor) 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_NSISCREEN \
NS_METHOD GetId(uint32_t *aId); \
NS_METHOD GetRect(int32_t *left, int32_t *top, int32_t *width, int32_t *height); \
NS_METHOD GetAvailRect(int32_t *left, int32_t *top, int32_t *width, int32_t *height); \
NS_METHOD GetRectDisplayPix(int32_t *left, int32_t *top, int32_t *width, int32_t *height); \
NS_METHOD GetAvailRectDisplayPix(int32_t *left, int32_t *top, int32_t *width, int32_t *height); \
NS_METHOD LockMinimumBrightness(uint32_t brightness); \
NS_METHOD UnlockMinimumBrightness(uint32_t brightness); \
NS_METHOD GetPixelDepth(int32_t *aPixelDepth); \
NS_METHOD GetColorDepth(int32_t *aColorDepth); \
NS_METHOD GetRotation(uint32_t *aRotation); \
NS_METHOD SetRotation(uint32_t aRotation); \
NS_METHOD GetContentsScaleFactor(double *aContentsScaleFactor); \
NS_METHOD GetDefaultCSSScaleFactor(double *aDefaultCSSScaleFactor);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISCREEN(_to) \
NS_IMETHOD GetId(uint32_t *aId) override { return _to GetId(aId); } \
NS_IMETHOD GetRect(int32_t *left, int32_t *top, int32_t *width, int32_t *height) override { return _to GetRect(left, top, width, height); } \
NS_IMETHOD GetAvailRect(int32_t *left, int32_t *top, int32_t *width, int32_t *height) override { return _to GetAvailRect(left, top, width, height); } \
NS_IMETHOD GetRectDisplayPix(int32_t *left, int32_t *top, int32_t *width, int32_t *height) override { return _to GetRectDisplayPix(left, top, width, height); } \
NS_IMETHOD GetAvailRectDisplayPix(int32_t *left, int32_t *top, int32_t *width, int32_t *height) override { return _to GetAvailRectDisplayPix(left, top, width, height); } \
NS_IMETHOD LockMinimumBrightness(uint32_t brightness) override { return _to LockMinimumBrightness(brightness); } \
NS_IMETHOD UnlockMinimumBrightness(uint32_t brightness) override { return _to UnlockMinimumBrightness(brightness); } \
NS_IMETHOD GetPixelDepth(int32_t *aPixelDepth) override { return _to GetPixelDepth(aPixelDepth); } \
NS_IMETHOD GetColorDepth(int32_t *aColorDepth) override { return _to GetColorDepth(aColorDepth); } \
NS_IMETHOD GetRotation(uint32_t *aRotation) override { return _to GetRotation(aRotation); } \
NS_IMETHOD SetRotation(uint32_t aRotation) override { return _to SetRotation(aRotation); } \
NS_IMETHOD GetContentsScaleFactor(double *aContentsScaleFactor) override { return _to GetContentsScaleFactor(aContentsScaleFactor); } \
NS_IMETHOD GetDefaultCSSScaleFactor(double *aDefaultCSSScaleFactor) override { return _to GetDefaultCSSScaleFactor(aDefaultCSSScaleFactor); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSISCREEN(_to) \
NS_IMETHOD GetId(uint32_t *aId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetId(aId); } \
NS_IMETHOD GetRect(int32_t *left, int32_t *top, int32_t *width, int32_t *height) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRect(left, top, width, height); } \
NS_IMETHOD GetAvailRect(int32_t *left, int32_t *top, int32_t *width, int32_t *height) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAvailRect(left, top, width, height); } \
NS_IMETHOD GetRectDisplayPix(int32_t *left, int32_t *top, int32_t *width, int32_t *height) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRectDisplayPix(left, top, width, height); } \
NS_IMETHOD GetAvailRectDisplayPix(int32_t *left, int32_t *top, int32_t *width, int32_t *height) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAvailRectDisplayPix(left, top, width, height); } \
NS_IMETHOD LockMinimumBrightness(uint32_t brightness) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LockMinimumBrightness(brightness); } \
NS_IMETHOD UnlockMinimumBrightness(uint32_t brightness) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnlockMinimumBrightness(brightness); } \
NS_IMETHOD GetPixelDepth(int32_t *aPixelDepth) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPixelDepth(aPixelDepth); } \
NS_IMETHOD GetColorDepth(int32_t *aColorDepth) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetColorDepth(aColorDepth); } \
NS_IMETHOD GetRotation(uint32_t *aRotation) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRotation(aRotation); } \
NS_IMETHOD SetRotation(uint32_t aRotation) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRotation(aRotation); } \
NS_IMETHOD GetContentsScaleFactor(double *aContentsScaleFactor) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentsScaleFactor(aContentsScaleFactor); } \
NS_IMETHOD GetDefaultCSSScaleFactor(double *aDefaultCSSScaleFactor) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultCSSScaleFactor(aDefaultCSSScaleFactor); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsScreen : public nsIScreen
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSISCREEN
nsScreen();
private:
~nsScreen();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsScreen, nsIScreen)
nsScreen::nsScreen()
{
/* member initializers and constructor code */
}
nsScreen::~nsScreen()
{
/* destructor code */
}
/* readonly attribute unsigned long id; */
NS_IMETHODIMP nsScreen::GetId(uint32_t *aId)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void GetRect (out long left, out long top, out long width, out long height); */
NS_IMETHODIMP nsScreen::GetRect(int32_t *left, int32_t *top, int32_t *width, int32_t *height)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void GetAvailRect (out long left, out long top, out long width, out long height); */
NS_IMETHODIMP nsScreen::GetAvailRect(int32_t *left, int32_t *top, int32_t *width, int32_t *height)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void GetRectDisplayPix (out long left, out long top, out long width, out long height); */
NS_IMETHODIMP nsScreen::GetRectDisplayPix(int32_t *left, int32_t *top, int32_t *width, int32_t *height)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void GetAvailRectDisplayPix (out long left, out long top, out long width, out long height); */
NS_IMETHODIMP nsScreen::GetAvailRectDisplayPix(int32_t *left, int32_t *top, int32_t *width, int32_t *height)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void lockMinimumBrightness (in unsigned long brightness); */
NS_IMETHODIMP nsScreen::LockMinimumBrightness(uint32_t brightness)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void unlockMinimumBrightness (in unsigned long brightness); */
NS_IMETHODIMP nsScreen::UnlockMinimumBrightness(uint32_t brightness)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute long pixelDepth; */
NS_IMETHODIMP nsScreen::GetPixelDepth(int32_t *aPixelDepth)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute long colorDepth; */
NS_IMETHODIMP nsScreen::GetColorDepth(int32_t *aColorDepth)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute unsigned long rotation; */
NS_IMETHODIMP nsScreen::GetRotation(uint32_t *aRotation)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsScreen::SetRotation(uint32_t aRotation)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute double contentsScaleFactor; */
NS_IMETHODIMP nsScreen::GetContentsScaleFactor(double *aContentsScaleFactor)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute double defaultCSSScaleFactor; */
NS_IMETHODIMP nsScreen::GetDefaultCSSScaleFactor(double *aDefaultCSSScaleFactor)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIScreen_h__ */
|