PageRenderTime 102ms CodeModel.GetById 40ms app.highlight 3ms RepoModel.GetById 58ms app.codeStats 0ms

/gecko_api/include/nsIDOMCSSValueList.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 112 lines | 56 code | 28 blank | 28 comment | 0 complexity | ff46338b09cceea3983cd2c0d6d9edf9 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/nsIDOMCSSValueList.idl
  3 */
  4
  5#ifndef __gen_nsIDOMCSSValueList_h__
  6#define __gen_nsIDOMCSSValueList_h__
  7
  8
  9#ifndef __gen_nsIDOMCSSValue_h__
 10#include "nsIDOMCSSValue.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:    nsIDOMCSSValueList */
 19#define NS_IDOMCSSVALUELIST_IID_STR "8f09fa84-39b9-4dca-9b2f-db0eeb186286"
 20
 21#define NS_IDOMCSSVALUELIST_IID \
 22  {0x8f09fa84, 0x39b9, 0x4dca, \
 23    { 0x9b, 0x2f, 0xdb, 0x0e, 0xeb, 0x18, 0x62, 0x86 }}
 24
 25class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMCSSValueList : public nsIDOMCSSValue {
 26 public: 
 27
 28  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMCSSVALUELIST_IID)
 29
 30  /**
 31 * The nsIDOMCSSValueList interface is a datatype for a list of CSS
 32 * values 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  /* nsIDOMCSSValue item (in unsigned long index); */
 43  NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMCSSValue **_retval) = 0;
 44
 45};
 46
 47  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMCSSValueList, NS_IDOMCSSVALUELIST_IID)
 48
 49/* Use this macro when declaring classes that implement this interface. */
 50#define NS_DECL_NSIDOMCSSVALUELIST \
 51  NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength); \
 52  NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMCSSValue **_retval); 
 53
 54/* Use this macro to declare functions that forward the behavior of this interface to another object. */
 55#define NS_FORWARD_NSIDOMCSSVALUELIST(_to) \
 56  NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return _to GetLength(aLength); } \
 57  NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMCSSValue **_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_NSIDOMCSSVALUELIST(_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, nsIDOMCSSValue **_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 nsDOMCSSValueList : public nsIDOMCSSValueList
 69{
 70public:
 71  NS_DECL_ISUPPORTS
 72  NS_DECL_NSIDOMCSSVALUELIST
 73
 74  nsDOMCSSValueList();
 75
 76private:
 77  ~nsDOMCSSValueList();
 78
 79protected:
 80  /* additional members */
 81};
 82
 83/* Implementation file */
 84NS_IMPL_ISUPPORTS1(nsDOMCSSValueList, nsIDOMCSSValueList)
 85
 86nsDOMCSSValueList::nsDOMCSSValueList()
 87{
 88  /* member initializers and constructor code */
 89}
 90
 91nsDOMCSSValueList::~nsDOMCSSValueList()
 92{
 93  /* destructor code */
 94}
 95
 96/* readonly attribute unsigned long length; */
 97NS_IMETHODIMP nsDOMCSSValueList::GetLength(PRUint32 *aLength)
 98{
 99    return NS_ERROR_NOT_IMPLEMENTED;
100}
101
102/* nsIDOMCSSValue item (in unsigned long index); */
103NS_IMETHODIMP nsDOMCSSValueList::Item(PRUint32 index, nsIDOMCSSValue **_retval)
104{
105    return NS_ERROR_NOT_IMPLEMENTED;
106}
107
108/* End of implementation class template. */
109#endif
110
111
112#endif /* __gen_nsIDOMCSSValueList_h__ */