PageRenderTime 22ms CodeModel.GetById 14ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/gecko_api/include/nsIDOMCSSValue.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 128 lines | 68 code | 32 blank | 28 comment | 0 complexity | fc3db367d3961514c6a8663814676386 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/nsIDOMCSSValue.idl
  3 */
  4
  5#ifndef __gen_nsIDOMCSSValue_h__
  6#define __gen_nsIDOMCSSValue_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:    nsIDOMCSSValue */
 19#define NS_IDOMCSSVALUE_IID_STR "009f7ea5-9e80-41be-b008-db62f10823f2"
 20
 21#define NS_IDOMCSSVALUE_IID \
 22  {0x009f7ea5, 0x9e80, 0x41be, \
 23    { 0xb0, 0x08, 0xdb, 0x62, 0xf1, 0x08, 0x23, 0xf2 }}
 24
 25class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMCSSValue : public nsISupports {
 26 public: 
 27
 28  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMCSSVALUE_IID)
 29
 30  /**
 31 * The nsIDOMCSSValue interface is a datatype for a CSS value in the
 32 * 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  enum { CSS_INHERIT = 0U };
 40
 41  enum { CSS_PRIMITIVE_VALUE = 1U };
 42
 43  enum { CSS_VALUE_LIST = 2U };
 44
 45  enum { CSS_CUSTOM = 3U };
 46
 47  /* attribute DOMString cssText; */
 48  NS_SCRIPTABLE NS_IMETHOD GetCssText(nsAString & aCssText) = 0;
 49  NS_SCRIPTABLE NS_IMETHOD SetCssText(const nsAString & aCssText) = 0;
 50
 51  /* readonly attribute unsigned short cssValueType; */
 52  NS_SCRIPTABLE NS_IMETHOD GetCssValueType(PRUint16 *aCssValueType) = 0;
 53
 54};
 55
 56  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMCSSValue, NS_IDOMCSSVALUE_IID)
 57
 58/* Use this macro when declaring classes that implement this interface. */
 59#define NS_DECL_NSIDOMCSSVALUE \
 60  NS_SCRIPTABLE NS_IMETHOD GetCssText(nsAString & aCssText); \
 61  NS_SCRIPTABLE NS_IMETHOD SetCssText(const nsAString & aCssText); \
 62  NS_SCRIPTABLE NS_IMETHOD GetCssValueType(PRUint16 *aCssValueType); 
 63
 64/* Use this macro to declare functions that forward the behavior of this interface to another object. */
 65#define NS_FORWARD_NSIDOMCSSVALUE(_to) \
 66  NS_SCRIPTABLE NS_IMETHOD GetCssText(nsAString & aCssText) { return _to GetCssText(aCssText); } \
 67  NS_SCRIPTABLE NS_IMETHOD SetCssText(const nsAString & aCssText) { return _to SetCssText(aCssText); } \
 68  NS_SCRIPTABLE NS_IMETHOD GetCssValueType(PRUint16 *aCssValueType) { return _to GetCssValueType(aCssValueType); } 
 69
 70/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
 71#define NS_FORWARD_SAFE_NSIDOMCSSVALUE(_to) \
 72  NS_SCRIPTABLE NS_IMETHOD GetCssText(nsAString & aCssText) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCssText(aCssText); } \
 73  NS_SCRIPTABLE NS_IMETHOD SetCssText(const nsAString & aCssText) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCssText(aCssText); } \
 74  NS_SCRIPTABLE NS_IMETHOD GetCssValueType(PRUint16 *aCssValueType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCssValueType(aCssValueType); } 
 75
 76#if 0
 77/* Use the code below as a template for the implementation class for this interface. */
 78
 79/* Header file */
 80class nsDOMCSSValue : public nsIDOMCSSValue
 81{
 82public:
 83  NS_DECL_ISUPPORTS
 84  NS_DECL_NSIDOMCSSVALUE
 85
 86  nsDOMCSSValue();
 87
 88private:
 89  ~nsDOMCSSValue();
 90
 91protected:
 92  /* additional members */
 93};
 94
 95/* Implementation file */
 96NS_IMPL_ISUPPORTS1(nsDOMCSSValue, nsIDOMCSSValue)
 97
 98nsDOMCSSValue::nsDOMCSSValue()
 99{
100  /* member initializers and constructor code */
101}
102
103nsDOMCSSValue::~nsDOMCSSValue()
104{
105  /* destructor code */
106}
107
108/* attribute DOMString cssText; */
109NS_IMETHODIMP nsDOMCSSValue::GetCssText(nsAString & aCssText)
110{
111    return NS_ERROR_NOT_IMPLEMENTED;
112}
113NS_IMETHODIMP nsDOMCSSValue::SetCssText(const nsAString & aCssText)
114{
115    return NS_ERROR_NOT_IMPLEMENTED;
116}
117
118/* readonly attribute unsigned short cssValueType; */
119NS_IMETHODIMP nsDOMCSSValue::GetCssValueType(PRUint16 *aCssValueType)
120{
121    return NS_ERROR_NOT_IMPLEMENTED;
122}
123
124/* End of implementation class template. */
125#endif
126
127
128#endif /* __gen_nsIDOMCSSValue_h__ */