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

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
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mozilla/layout/xul/nsIBoxObject.idl
 */

#ifndef __gen_nsIBoxObject_h__
#define __gen_nsIBoxObject_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

#include "js/GCAnnotations.h"

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
namespace mozilla {
namespace dom {
class Element; /* webidl Element */
} // namespace dom
} // namespace mozilla


/* starting interface:    nsIBoxObject */
#define NS_IBOXOBJECT_IID_STR "ce572460-b0f2-4650-a9e7-c53a99d3b6ad"

#define NS_IBOXOBJECT_IID \
  {0xce572460, 0xb0f2, 0x4650, \
    { 0xa9, 0xe7, 0xc5, 0x3a, 0x99, 0xd3, 0xb6, 0xad }}

class NS_NO_VTABLE nsIBoxObject : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IBOXOBJECT_IID)

  /* readonly attribute Element element; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetElement(mozilla::dom::Element **aElement) = 0;

  /* readonly attribute long x; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetX(int32_t *aX) = 0;

  /* readonly attribute long y; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetY(int32_t *aY) = 0;

  /* readonly attribute long screenX; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetScreenX(int32_t *aScreenX) = 0;

  /* readonly attribute long screenY; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetScreenY(int32_t *aScreenY) = 0;

  /* readonly attribute long width; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetWidth(int32_t *aWidth) = 0;

  /* readonly attribute long height; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetHeight(int32_t *aHeight) = 0;

  /* nsISupports getPropertyAsSupports (in wstring propertyName); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPropertyAsSupports(const char16_t * propertyName, nsISupports **_retval) = 0;

  /* void setPropertyAsSupports (in wstring propertyName, in nsISupports value); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetPropertyAsSupports(const char16_t * propertyName, nsISupports *value) = 0;

  /* wstring getProperty (in wstring propertyName); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetProperty(const char16_t * propertyName, char16_t * *_retval) = 0;

  /* void setProperty (in wstring propertyName, in wstring propertyValue); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetProperty(const char16_t * propertyName, const char16_t * propertyValue) = 0;

  /* void removeProperty (in wstring propertyName); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RemoveProperty(const char16_t * propertyName) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIBoxObject, NS_IBOXOBJECT_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIBOXOBJECT \
  NS_IMETHOD GetElement(mozilla::dom::Element **aElement) override; \
  NS_IMETHOD GetX(int32_t *aX) override; \
  NS_IMETHOD GetY(int32_t *aY) override; \
  NS_IMETHOD GetScreenX(int32_t *aScreenX) override; \
  NS_IMETHOD GetScreenY(int32_t *aScreenY) override; \
  NS_IMETHOD GetWidth(int32_t *aWidth) override; \
  NS_IMETHOD GetHeight(int32_t *aHeight) override; \
  NS_IMETHOD GetPropertyAsSupports(const char16_t * propertyName, nsISupports **_retval) override; \
  NS_IMETHOD SetPropertyAsSupports(const char16_t * propertyName, nsISupports *value) override; \
  NS_IMETHOD GetProperty(const char16_t * propertyName, char16_t * *_retval) override; \
  NS_IMETHOD SetProperty(const char16_t * propertyName, const char16_t * propertyValue) override; \
  NS_IMETHOD RemoveProperty(const char16_t * propertyName) 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_NSIBOXOBJECT \
  nsresult GetElement(mozilla::dom::Element **aElement); \
  nsresult GetX(int32_t *aX); \
  nsresult GetY(int32_t *aY); \
  nsresult GetScreenX(int32_t *aScreenX); \
  nsresult GetScreenY(int32_t *aScreenY); \
  nsresult GetWidth(int32_t *aWidth); \
  nsresult GetHeight(int32_t *aHeight); \
  nsresult GetPropertyAsSupports(const char16_t * propertyName, nsISupports **_retval); \
  nsresult SetPropertyAsSupports(const char16_t * propertyName, nsISupports *value); \
  nsresult GetProperty(const char16_t * propertyName, char16_t * *_retval); \
  nsresult SetProperty(const char16_t * propertyName, const char16_t * propertyValue); \
  nsresult RemoveProperty(const char16_t * propertyName); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIBOXOBJECT(_to) \
  NS_IMETHOD GetElement(mozilla::dom::Element **aElement) override { return _to GetElement(aElement); } \
  NS_IMETHOD GetX(int32_t *aX) override { return _to GetX(aX); } \
  NS_IMETHOD GetY(int32_t *aY) override { return _to GetY(aY); } \
  NS_IMETHOD GetScreenX(int32_t *aScreenX) override { return _to GetScreenX(aScreenX); } \
  NS_IMETHOD GetScreenY(int32_t *aScreenY) override { return _to GetScreenY(aScreenY); } \
  NS_IMETHOD GetWidth(int32_t *aWidth) override { return _to GetWidth(aWidth); } \
  NS_IMETHOD GetHeight(int32_t *aHeight) override { return _to GetHeight(aHeight); } \
  NS_IMETHOD GetPropertyAsSupports(const char16_t * propertyName, nsISupports **_retval) override { return _to GetPropertyAsSupports(propertyName, _retval); } \
  NS_IMETHOD SetPropertyAsSupports(const char16_t * propertyName, nsISupports *value) override { return _to SetPropertyAsSupports(propertyName, value); } \
  NS_IMETHOD GetProperty(const char16_t * propertyName, char16_t * *_retval) override { return _to GetProperty(propertyName, _retval); } \
  NS_IMETHOD SetProperty(const char16_t * propertyName, const char16_t * propertyValue) override { return _to SetProperty(propertyName, propertyValue); } \
  NS_IMETHOD RemoveProperty(const char16_t * propertyName) override { return _to RemoveProperty(propertyName); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIBOXOBJECT(_to) \
  NS_IMETHOD GetElement(mozilla::dom::Element **aElement) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetElement(aElement); } \
  NS_IMETHOD GetX(int32_t *aX) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetX(aX); } \
  NS_IMETHOD GetY(int32_t *aY) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetY(aY); } \
  NS_IMETHOD GetScreenX(int32_t *aScreenX) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScreenX(aScreenX); } \
  NS_IMETHOD GetScreenY(int32_t *aScreenY) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScreenY(aScreenY); } \
  NS_IMETHOD GetWidth(int32_t *aWidth) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWidth(aWidth); } \
  NS_IMETHOD GetHeight(int32_t *aHeight) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHeight(aHeight); } \
  NS_IMETHOD GetPropertyAsSupports(const char16_t * propertyName, nsISupports **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsSupports(propertyName, _retval); } \
  NS_IMETHOD SetPropertyAsSupports(const char16_t * propertyName, nsISupports *value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPropertyAsSupports(propertyName, value); } \
  NS_IMETHOD GetProperty(const char16_t * propertyName, char16_t * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProperty(propertyName, _retval); } \
  NS_IMETHOD SetProperty(const char16_t * propertyName, const char16_t * propertyValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetProperty(propertyName, propertyValue); } \
  NS_IMETHOD RemoveProperty(const char16_t * propertyName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveProperty(propertyName); } 

nsresult
NS_NewBoxObject(nsIBoxObject** aResult);

#endif /* __gen_nsIBoxObject_h__ */