Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(717)

Side by Side Diff: gecko-sdk/include/nsIDOMAttr.h

Issue 20346: Version 1.8 of gecko-sdk. Downloaded from here:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/
Patch Set: Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « gecko-sdk/include/nsIDOMAbstractView.h ('k') | gecko-sdk/include/nsIDOMBarProp.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 /*
2 * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/builds/tinderbox/XR-Mozilla1.8.0 -Release/WINNT_5.2_Depend/mozilla/dom/public/idl/core/nsIDOMAttr.idl
3 */
4
5 #ifndef __gen_nsIDOMAttr_h__
6 #define __gen_nsIDOMAttr_h__
7
8
9 #ifndef __gen_nsIDOMNode_h__
10 #include "nsIDOMNode.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: nsIDOMAttr */
19 #define NS_IDOMATTR_IID_STR "a6cf9070-15b3-11d2-932e-00805f8add32"
20
21 #define NS_IDOMATTR_IID \
22 {0xa6cf9070, 0x15b3, 0x11d2, \
23 { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
24
25 class NS_NO_VTABLE nsIDOMAttr : public nsIDOMNode {
26 public:
27
28 NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMATTR_IID)
29
30 /**
31 * The nsIDOMAttr interface represents an attribute in an "Element" object.
32 * Typically the allowable values for the attribute are defined in a document
33 * type definition.
34 *
35 * For more information on this interface please see
36 * http://www.w3.org/TR/DOM-Level-2-Core/
37 *
38 * @status FROZEN
39 */
40 /* readonly attribute DOMString name; */
41 NS_IMETHOD GetName(nsAString & aName) = 0;
42
43 /* readonly attribute boolean specified; */
44 NS_IMETHOD GetSpecified(PRBool *aSpecified) = 0;
45
46 /* attribute DOMString value; */
47 NS_IMETHOD GetValue(nsAString & aValue) = 0;
48 NS_IMETHOD SetValue(const nsAString & aValue) = 0;
49
50 /* readonly attribute nsIDOMElement ownerElement; */
51 NS_IMETHOD GetOwnerElement(nsIDOMElement * *aOwnerElement) = 0;
52
53 };
54
55 /* Use this macro when declaring classes that implement this interface. */
56 #define NS_DECL_NSIDOMATTR \
57 NS_IMETHOD GetName(nsAString & aName); \
58 NS_IMETHOD GetSpecified(PRBool *aSpecified); \
59 NS_IMETHOD GetValue(nsAString & aValue); \
60 NS_IMETHOD SetValue(const nsAString & aValue); \
61 NS_IMETHOD GetOwnerElement(nsIDOMElement * *aOwnerElement);
62
63 /* Use this macro to declare functions that forward the behavior of this interfa ce to another object. */
64 #define NS_FORWARD_NSIDOMATTR(_to) \
65 NS_IMETHOD GetName(nsAString & aName) { return _to GetName(aName); } \
66 NS_IMETHOD GetSpecified(PRBool *aSpecified) { return _to GetSpecified(aSpecifi ed); } \
67 NS_IMETHOD GetValue(nsAString & aValue) { return _to GetValue(aValue); } \
68 NS_IMETHOD SetValue(const nsAString & aValue) { return _to SetValue(aValue); } \
69 NS_IMETHOD GetOwnerElement(nsIDOMElement * *aOwnerElement) { return _to GetOwn erElement(aOwnerElement); }
70
71 /* Use this macro to declare functions that forward the behavior of this interfa ce to another object in a safe way. */
72 #define NS_FORWARD_SAFE_NSIDOMATTR(_to) \
73 NS_IMETHOD GetName(nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
74 NS_IMETHOD GetSpecified(PRBool *aSpecified) { return !_to ? NS_ERROR_NULL_POIN TER : _to->GetSpecified(aSpecified); } \
75 NS_IMETHOD GetValue(nsAString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } \
76 NS_IMETHOD SetValue(const nsAString & aValue) { return !_to ? NS_ERROR_NULL_PO INTER : _to->SetValue(aValue); } \
77 NS_IMETHOD GetOwnerElement(nsIDOMElement * *aOwnerElement) { return !_to ? NS_ ERROR_NULL_POINTER : _to->GetOwnerElement(aOwnerElement); }
78
79 #if 0
80 /* Use the code below as a template for the implementation class for this interf ace. */
81
82 /* Header file */
83 class nsDOMAttr : public nsIDOMAttr
84 {
85 public:
86 NS_DECL_ISUPPORTS
87 NS_DECL_NSIDOMATTR
88
89 nsDOMAttr();
90
91 private:
92 ~nsDOMAttr();
93
94 protected:
95 /* additional members */
96 };
97
98 /* Implementation file */
99 NS_IMPL_ISUPPORTS1(nsDOMAttr, nsIDOMAttr)
100
101 nsDOMAttr::nsDOMAttr()
102 {
103 /* member initializers and constructor code */
104 }
105
106 nsDOMAttr::~nsDOMAttr()
107 {
108 /* destructor code */
109 }
110
111 /* readonly attribute DOMString name; */
112 NS_IMETHODIMP nsDOMAttr::GetName(nsAString & aName)
113 {
114 return NS_ERROR_NOT_IMPLEMENTED;
115 }
116
117 /* readonly attribute boolean specified; */
118 NS_IMETHODIMP nsDOMAttr::GetSpecified(PRBool *aSpecified)
119 {
120 return NS_ERROR_NOT_IMPLEMENTED;
121 }
122
123 /* attribute DOMString value; */
124 NS_IMETHODIMP nsDOMAttr::GetValue(nsAString & aValue)
125 {
126 return NS_ERROR_NOT_IMPLEMENTED;
127 }
128 NS_IMETHODIMP nsDOMAttr::SetValue(const nsAString & aValue)
129 {
130 return NS_ERROR_NOT_IMPLEMENTED;
131 }
132
133 /* readonly attribute nsIDOMElement ownerElement; */
134 NS_IMETHODIMP nsDOMAttr::GetOwnerElement(nsIDOMElement * *aOwnerElement)
135 {
136 return NS_ERROR_NOT_IMPLEMENTED;
137 }
138
139 /* End of implementation class template. */
140 #endif
141
142
143 #endif /* __gen_nsIDOMAttr_h__ */
OLDNEW
« no previous file with comments | « gecko-sdk/include/nsIDOMAbstractView.h ('k') | gecko-sdk/include/nsIDOMBarProp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698