PageRenderTime 82ms CodeModel.GetById 40ms app.highlight 3ms RepoModel.GetById 37ms app.codeStats 0ms

/gecko_api/include/nsIDOMCSSRuleList.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 112 lines | 56 code | 28 blank | 28 comment | 0 complexity | 8ff601f7caecc7e63d6be456867ca06b MD5 | raw file
  1/*
  2 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/tinderbox/XR-Trunk/Darwin_8.8.4_Depend/mozilla/dom/public/idl/css/nsIDOMCSSRuleList.idl
  3 */
  4
  5#ifndef __gen_nsIDOMCSSRuleList_h__
  6#define __gen_nsIDOMCSSRuleList_h__
  7
  8
  9#ifndef __gen_domstubs_h__
 10#include "domstubs.h"
 11#endif
 12
 13/* For IDL files that don't want to include root IDL files. */
 14#ifndef NS_NO_VTABLE
 15#define NS_NO_VTABLE
 16#endif
 17
 18/* starting interface:    nsIDOMCSSRuleList */
 19#define NS_IDOMCSSRULELIST_IID_STR "a6cf90c0-15b3-11d2-932e-00805f8add32"
 20
 21#define NS_IDOMCSSRULELIST_IID \
 22  {0xa6cf90c0, 0x15b3, 0x11d2, \
 23    { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
 24
 25class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMCSSRuleList : public nsISupports {
 26 public: 
 27
 28  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMCSSRULELIST_IID)
 29
 30  /**
 31 * The nsIDOMCSSRuleList interface is a datatype for a list of CSS
 32 * style rules in the Document Object Model.
 33 *
 34 * For more information on this interface please see
 35 * http://www.w3.org/TR/DOM-Level-2-Style
 36 *
 37 * @status FROZEN
 38 */
 39  /* readonly attribute unsigned long length; */
 40  NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) = 0;
 41
 42  /* nsIDOMCSSRule item (in unsigned long index); */
 43  NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMCSSRule **_retval) = 0;
 44
 45};
 46
 47  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMCSSRuleList, NS_IDOMCSSRULELIST_IID)
 48
 49/* Use this macro when declaring classes that implement this interface. */
 50#define NS_DECL_NSIDOMCSSRULELIST \
 51  NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength); \
 52  NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMCSSRule **_retval); 
 53
 54/* Use this macro to declare functions that forward the behavior of this interface to another object. */
 55#define NS_FORWARD_NSIDOMCSSRULELIST(_to) \
 56  NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return _to GetLength(aLength); } \
 57  NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMCSSRule **_retval) { return _to Item(index, _retval); } 
 58
 59/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
 60#define NS_FORWARD_SAFE_NSIDOMCSSRULELIST(_to) \
 61  NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
 62  NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMCSSRule **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Item(index, _retval); } 
 63
 64#if 0
 65/* Use the code below as a template for the implementation class for this interface. */
 66
 67/* Header file */
 68class nsDOMCSSRuleList : public nsIDOMCSSRuleList
 69{
 70public:
 71  NS_DECL_ISUPPORTS
 72  NS_DECL_NSIDOMCSSRULELIST
 73
 74  nsDOMCSSRuleList();
 75
 76private:
 77  ~nsDOMCSSRuleList();
 78
 79protected:
 80  /* additional members */
 81};
 82
 83/* Implementation file */
 84NS_IMPL_ISUPPORTS1(nsDOMCSSRuleList, nsIDOMCSSRuleList)
 85
 86nsDOMCSSRuleList::nsDOMCSSRuleList()
 87{
 88  /* member initializers and constructor code */
 89}
 90
 91nsDOMCSSRuleList::~nsDOMCSSRuleList()
 92{
 93  /* destructor code */
 94}
 95
 96/* readonly attribute unsigned long length; */
 97NS_IMETHODIMP nsDOMCSSRuleList::GetLength(PRUint32 *aLength)
 98{
 99    return NS_ERROR_NOT_IMPLEMENTED;
100}
101
102/* nsIDOMCSSRule item (in unsigned long index); */
103NS_IMETHODIMP nsDOMCSSRuleList::Item(PRUint32 index, nsIDOMCSSRule **_retval)
104{
105    return NS_ERROR_NOT_IMPLEMENTED;
106}
107
108/* End of implementation class template. */
109#endif
110
111
112#endif /* __gen_nsIDOMCSSRuleList_h__ */