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

Side by Side Diff: gecko-sdk/include/nsIDOMCharacterData.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/nsIDOMCSSValueList.h ('k') | gecko-sdk/include/nsIDOMComment.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/nsIDOMCharacterData.idl
3 */
4
5 #ifndef __gen_nsIDOMCharacterData_h__
6 #define __gen_nsIDOMCharacterData_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: nsIDOMCharacterData */
19 #define NS_IDOMCHARACTERDATA_IID_STR "a6cf9072-15b3-11d2-932e-00805f8add32"
20
21 #define NS_IDOMCHARACTERDATA_IID \
22 {0xa6cf9072, 0x15b3, 0x11d2, \
23 { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
24
25 class NS_NO_VTABLE nsIDOMCharacterData : public nsIDOMNode {
26 public:
27
28 NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMCHARACTERDATA_IID)
29
30 /**
31 * The nsIDOMCharacterData interface extends nsIDOMNode with a set of
32 * attributes and methods for accessing character data in the DOM.
33 *
34 * For more information on this interface please see
35 * http://www.w3.org/TR/DOM-Level-2-Core/
36 *
37 * @status FROZEN
38 */
39 /* attribute DOMString data; */
40 NS_IMETHOD GetData(nsAString & aData) = 0;
41 NS_IMETHOD SetData(const nsAString & aData) = 0;
42
43 /* readonly attribute unsigned long length; */
44 NS_IMETHOD GetLength(PRUint32 *aLength) = 0;
45
46 /* DOMString substringData (in unsigned long offset, in unsigned long count) raises (DOMException); */
47 NS_IMETHOD SubstringData(PRUint32 offset, PRUint32 count, nsAString & _retval) = 0;
48
49 /* void appendData (in DOMString arg) raises (DOMException); */
50 NS_IMETHOD AppendData(const nsAString & arg) = 0;
51
52 /* void insertData (in unsigned long offset, in DOMString arg) raises (DOMExc eption); */
53 NS_IMETHOD InsertData(PRUint32 offset, const nsAString & arg) = 0;
54
55 /* void deleteData (in unsigned long offset, in unsigned long count) raises ( DOMException); */
56 NS_IMETHOD DeleteData(PRUint32 offset, PRUint32 count) = 0;
57
58 /* void replaceData (in unsigned long offset, in unsigned long count, in DOMSt ring arg) raises (DOMException); */
59 NS_IMETHOD ReplaceData(PRUint32 offset, PRUint32 count, const nsAString & arg) = 0;
60
61 };
62
63 /* Use this macro when declaring classes that implement this interface. */
64 #define NS_DECL_NSIDOMCHARACTERDATA \
65 NS_IMETHOD GetData(nsAString & aData); \
66 NS_IMETHOD SetData(const nsAString & aData); \
67 NS_IMETHOD GetLength(PRUint32 *aLength); \
68 NS_IMETHOD SubstringData(PRUint32 offset, PRUint32 count, nsAString & _retval) ; \
69 NS_IMETHOD AppendData(const nsAString & arg); \
70 NS_IMETHOD InsertData(PRUint32 offset, const nsAString & arg); \
71 NS_IMETHOD DeleteData(PRUint32 offset, PRUint32 count); \
72 NS_IMETHOD ReplaceData(PRUint32 offset, PRUint32 count, const nsAString & arg) ;
73
74 /* Use this macro to declare functions that forward the behavior of this interfa ce to another object. */
75 #define NS_FORWARD_NSIDOMCHARACTERDATA(_to) \
76 NS_IMETHOD GetData(nsAString & aData) { return _to GetData(aData); } \
77 NS_IMETHOD SetData(const nsAString & aData) { return _to SetData(aData); } \
78 NS_IMETHOD GetLength(PRUint32 *aLength) { return _to GetLength(aLength); } \
79 NS_IMETHOD SubstringData(PRUint32 offset, PRUint32 count, nsAString & _retval) { return _to SubstringData(offset, count, _retval); } \
80 NS_IMETHOD AppendData(const nsAString & arg) { return _to AppendData(arg); } \
81 NS_IMETHOD InsertData(PRUint32 offset, const nsAString & arg) { return _to Ins ertData(offset, arg); } \
82 NS_IMETHOD DeleteData(PRUint32 offset, PRUint32 count) { return _to DeleteData (offset, count); } \
83 NS_IMETHOD ReplaceData(PRUint32 offset, PRUint32 count, const nsAString & arg) { return _to ReplaceData(offset, count, arg); }
84
85 /* Use this macro to declare functions that forward the behavior of this interfa ce to another object in a safe way. */
86 #define NS_FORWARD_SAFE_NSIDOMCHARACTERDATA(_to) \
87 NS_IMETHOD GetData(nsAString & aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
88 NS_IMETHOD SetData(const nsAString & aData) { return !_to ? NS_ERROR_NULL_POIN TER : _to->SetData(aData); } \
89 NS_IMETHOD GetLength(PRUint32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
90 NS_IMETHOD SubstringData(PRUint32 offset, PRUint32 count, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->SubstringData(offset, count, _retv al); } \
91 NS_IMETHOD AppendData(const nsAString & arg) { return !_to ? NS_ERROR_NULL_POI NTER : _to->AppendData(arg); } \
92 NS_IMETHOD InsertData(PRUint32 offset, const nsAString & arg) { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertData(offset, arg); } \
93 NS_IMETHOD DeleteData(PRUint32 offset, PRUint32 count) { return !_to ? NS_ERRO R_NULL_POINTER : _to->DeleteData(offset, count); } \
94 NS_IMETHOD ReplaceData(PRUint32 offset, PRUint32 count, const nsAString & arg) { return !_to ? NS_ERROR_NULL_POINTER : _to->ReplaceData(offset, count, arg); }
95
96 #if 0
97 /* Use the code below as a template for the implementation class for this interf ace. */
98
99 /* Header file */
100 class nsDOMCharacterData : public nsIDOMCharacterData
101 {
102 public:
103 NS_DECL_ISUPPORTS
104 NS_DECL_NSIDOMCHARACTERDATA
105
106 nsDOMCharacterData();
107
108 private:
109 ~nsDOMCharacterData();
110
111 protected:
112 /* additional members */
113 };
114
115 /* Implementation file */
116 NS_IMPL_ISUPPORTS1(nsDOMCharacterData, nsIDOMCharacterData)
117
118 nsDOMCharacterData::nsDOMCharacterData()
119 {
120 /* member initializers and constructor code */
121 }
122
123 nsDOMCharacterData::~nsDOMCharacterData()
124 {
125 /* destructor code */
126 }
127
128 /* attribute DOMString data; */
129 NS_IMETHODIMP nsDOMCharacterData::GetData(nsAString & aData)
130 {
131 return NS_ERROR_NOT_IMPLEMENTED;
132 }
133 NS_IMETHODIMP nsDOMCharacterData::SetData(const nsAString & aData)
134 {
135 return NS_ERROR_NOT_IMPLEMENTED;
136 }
137
138 /* readonly attribute unsigned long length; */
139 NS_IMETHODIMP nsDOMCharacterData::GetLength(PRUint32 *aLength)
140 {
141 return NS_ERROR_NOT_IMPLEMENTED;
142 }
143
144 /* DOMString substringData (in unsigned long offset, in unsigned long count) ra ises (DOMException); */
145 NS_IMETHODIMP nsDOMCharacterData::SubstringData(PRUint32 offset, PRUint32 count, nsAString & _retval)
146 {
147 return NS_ERROR_NOT_IMPLEMENTED;
148 }
149
150 /* void appendData (in DOMString arg) raises (DOMException); */
151 NS_IMETHODIMP nsDOMCharacterData::AppendData(const nsAString & arg)
152 {
153 return NS_ERROR_NOT_IMPLEMENTED;
154 }
155
156 /* void insertData (in unsigned long offset, in DOMString arg) raises (DOMExcep tion); */
157 NS_IMETHODIMP nsDOMCharacterData::InsertData(PRUint32 offset, const nsAString & arg)
158 {
159 return NS_ERROR_NOT_IMPLEMENTED;
160 }
161
162 /* void deleteData (in unsigned long offset, in unsigned long count) raises (DO MException); */
163 NS_IMETHODIMP nsDOMCharacterData::DeleteData(PRUint32 offset, PRUint32 count)
164 {
165 return NS_ERROR_NOT_IMPLEMENTED;
166 }
167
168 /* void replaceData (in unsigned long offset, in unsigned long count, in DOMStri ng arg) raises (DOMException); */
169 NS_IMETHODIMP nsDOMCharacterData::ReplaceData(PRUint32 offset, PRUint32 count, c onst nsAString & arg)
170 {
171 return NS_ERROR_NOT_IMPLEMENTED;
172 }
173
174 /* End of implementation class template. */
175 #endif
176
177
178 #endif /* __gen_nsIDOMCharacterData_h__ */
OLDNEW
« no previous file with comments | « gecko-sdk/include/nsIDOMCSSValueList.h ('k') | gecko-sdk/include/nsIDOMComment.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698