/gecko_api/include/nsIDOMHTMLMapElement.h
C Header | 120 lines | 64 code | 28 blank | 28 comment | 0 complexity | 017e9d62eb49ed631be279556b3600f1 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/html/nsIDOMHTMLMapElement.idl 3 */ 4 5#ifndef __gen_nsIDOMHTMLMapElement_h__ 6#define __gen_nsIDOMHTMLMapElement_h__ 7 8 9#ifndef __gen_nsIDOMHTMLElement_h__ 10#include "nsIDOMHTMLElement.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: nsIDOMHTMLMapElement */ 19#define NS_IDOMHTMLMAPELEMENT_IID_STR "a6cf90af-15b3-11d2-932e-00805f8add32" 20 21#define NS_IDOMHTMLMAPELEMENT_IID \ 22 {0xa6cf90af, 0x15b3, 0x11d2, \ 23 { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }} 24 25/** 26 * The nsIDOMHTMLMapElement interface is the interface to a [X]HTML 27 * map element. 28 * 29 * For more information on this interface please see 30 * http://www.w3.org/TR/DOM-Level-2-HTML/ 31 * 32 * @status FROZEN 33 */ 34class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMHTMLMapElement : public nsIDOMHTMLElement { 35 public: 36 37 NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMHTMLMAPELEMENT_IID) 38 39 /* readonly attribute nsIDOMHTMLCollection areas; */ 40 NS_SCRIPTABLE NS_IMETHOD GetAreas(nsIDOMHTMLCollection * *aAreas) = 0; 41 42 /* attribute DOMString name; */ 43 NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) = 0; 44 NS_SCRIPTABLE NS_IMETHOD SetName(const nsAString & aName) = 0; 45 46}; 47 48 NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMHTMLMapElement, NS_IDOMHTMLMAPELEMENT_IID) 49 50/* Use this macro when declaring classes that implement this interface. */ 51#define NS_DECL_NSIDOMHTMLMAPELEMENT \ 52 NS_SCRIPTABLE NS_IMETHOD GetAreas(nsIDOMHTMLCollection * *aAreas); \ 53 NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName); \ 54 NS_SCRIPTABLE NS_IMETHOD SetName(const nsAString & aName); 55 56/* Use this macro to declare functions that forward the behavior of this interface to another object. */ 57#define NS_FORWARD_NSIDOMHTMLMAPELEMENT(_to) \ 58 NS_SCRIPTABLE NS_IMETHOD GetAreas(nsIDOMHTMLCollection * *aAreas) { return _to GetAreas(aAreas); } \ 59 NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) { return _to GetName(aName); } \ 60 NS_SCRIPTABLE NS_IMETHOD SetName(const nsAString & aName) { return _to SetName(aName); } 61 62/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ 63#define NS_FORWARD_SAFE_NSIDOMHTMLMAPELEMENT(_to) \ 64 NS_SCRIPTABLE NS_IMETHOD GetAreas(nsIDOMHTMLCollection * *aAreas) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAreas(aAreas); } \ 65 NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \ 66 NS_SCRIPTABLE NS_IMETHOD SetName(const nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetName(aName); } 67 68#if 0 69/* Use the code below as a template for the implementation class for this interface. */ 70 71/* Header file */ 72class nsDOMHTMLMapElement : public nsIDOMHTMLMapElement 73{ 74public: 75 NS_DECL_ISUPPORTS 76 NS_DECL_NSIDOMHTMLMAPELEMENT 77 78 nsDOMHTMLMapElement(); 79 80private: 81 ~nsDOMHTMLMapElement(); 82 83protected: 84 /* additional members */ 85}; 86 87/* Implementation file */ 88NS_IMPL_ISUPPORTS1(nsDOMHTMLMapElement, nsIDOMHTMLMapElement) 89 90nsDOMHTMLMapElement::nsDOMHTMLMapElement() 91{ 92 /* member initializers and constructor code */ 93} 94 95nsDOMHTMLMapElement::~nsDOMHTMLMapElement() 96{ 97 /* destructor code */ 98} 99 100/* readonly attribute nsIDOMHTMLCollection areas; */ 101NS_IMETHODIMP nsDOMHTMLMapElement::GetAreas(nsIDOMHTMLCollection * *aAreas) 102{ 103 return NS_ERROR_NOT_IMPLEMENTED; 104} 105 106/* attribute DOMString name; */ 107NS_IMETHODIMP nsDOMHTMLMapElement::GetName(nsAString & aName) 108{ 109 return NS_ERROR_NOT_IMPLEMENTED; 110} 111NS_IMETHODIMP nsDOMHTMLMapElement::SetName(const nsAString & aName) 112{ 113 return NS_ERROR_NOT_IMPLEMENTED; 114} 115 116/* End of implementation class template. */ 117#endif 118 119 120#endif /* __gen_nsIDOMHTMLMapElement_h__ */