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

Side by Side Diff: gecko-sdk/include/nsIDOMStyleSheet.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/nsIDOMRange.h ('k') | gecko-sdk/include/nsIDOMStyleSheetList.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/stylesheets/nsIDOMStyleSheet.id l
3 */
4
5 #ifndef __gen_nsIDOMStyleSheet_h__
6 #define __gen_nsIDOMStyleSheet_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: nsIDOMStyleSheet */
19 #define NS_IDOMSTYLESHEET_IID_STR "a6cf9080-15b3-11d2-932e-00805f8add32"
20
21 #define NS_IDOMSTYLESHEET_IID \
22 {0xa6cf9080, 0x15b3, 0x11d2, \
23 { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
24
25 class NS_NO_VTABLE nsIDOMStyleSheet : public nsISupports {
26 public:
27
28 NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMSTYLESHEET_IID)
29
30 /**
31 * The nsIDOMStyleSheet interface is a datatype for a style sheet in
32 * 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 DOMString type; */
40 NS_IMETHOD GetType(nsAString & aType) = 0;
41
42 /* attribute boolean disabled; */
43 NS_IMETHOD GetDisabled(PRBool *aDisabled) = 0;
44 NS_IMETHOD SetDisabled(PRBool aDisabled) = 0;
45
46 /* readonly attribute nsIDOMNode ownerNode; */
47 NS_IMETHOD GetOwnerNode(nsIDOMNode * *aOwnerNode) = 0;
48
49 /* readonly attribute nsIDOMStyleSheet parentStyleSheet; */
50 NS_IMETHOD GetParentStyleSheet(nsIDOMStyleSheet * *aParentStyleSheet) = 0;
51
52 /* readonly attribute DOMString href; */
53 NS_IMETHOD GetHref(nsAString & aHref) = 0;
54
55 /* readonly attribute DOMString title; */
56 NS_IMETHOD GetTitle(nsAString & aTitle) = 0;
57
58 /* readonly attribute nsIDOMMediaList media; */
59 NS_IMETHOD GetMedia(nsIDOMMediaList * *aMedia) = 0;
60
61 };
62
63 /* Use this macro when declaring classes that implement this interface. */
64 #define NS_DECL_NSIDOMSTYLESHEET \
65 NS_IMETHOD GetType(nsAString & aType); \
66 NS_IMETHOD GetDisabled(PRBool *aDisabled); \
67 NS_IMETHOD SetDisabled(PRBool aDisabled); \
68 NS_IMETHOD GetOwnerNode(nsIDOMNode * *aOwnerNode); \
69 NS_IMETHOD GetParentStyleSheet(nsIDOMStyleSheet * *aParentStyleSheet); \
70 NS_IMETHOD GetHref(nsAString & aHref); \
71 NS_IMETHOD GetTitle(nsAString & aTitle); \
72 NS_IMETHOD GetMedia(nsIDOMMediaList * *aMedia);
73
74 /* Use this macro to declare functions that forward the behavior of this interfa ce to another object. */
75 #define NS_FORWARD_NSIDOMSTYLESHEET(_to) \
76 NS_IMETHOD GetType(nsAString & aType) { return _to GetType(aType); } \
77 NS_IMETHOD GetDisabled(PRBool *aDisabled) { return _to GetDisabled(aDisabled); } \
78 NS_IMETHOD SetDisabled(PRBool aDisabled) { return _to SetDisabled(aDisabled); } \
79 NS_IMETHOD GetOwnerNode(nsIDOMNode * *aOwnerNode) { return _to GetOwnerNode(aO wnerNode); } \
80 NS_IMETHOD GetParentStyleSheet(nsIDOMStyleSheet * *aParentStyleSheet) { return _to GetParentStyleSheet(aParentStyleSheet); } \
81 NS_IMETHOD GetHref(nsAString & aHref) { return _to GetHref(aHref); } \
82 NS_IMETHOD GetTitle(nsAString & aTitle) { return _to GetTitle(aTitle); } \
83 NS_IMETHOD GetMedia(nsIDOMMediaList * *aMedia) { return _to GetMedia(aMedia); }
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_NSIDOMSTYLESHEET(_to) \
87 NS_IMETHOD GetType(nsAString & aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
88 NS_IMETHOD GetDisabled(PRBool *aDisabled) { return !_to ? NS_ERROR_NULL_POINTE R : _to->GetDisabled(aDisabled); } \
89 NS_IMETHOD SetDisabled(PRBool aDisabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDisabled(aDisabled); } \
90 NS_IMETHOD GetOwnerNode(nsIDOMNode * *aOwnerNode) { return !_to ? NS_ERROR_NUL L_POINTER : _to->GetOwnerNode(aOwnerNode); } \
91 NS_IMETHOD GetParentStyleSheet(nsIDOMStyleSheet * *aParentStyleSheet) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParentStyleSheet(aParentStyleSheet); } \
92 NS_IMETHOD GetHref(nsAString & aHref) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHref(aHref); } \
93 NS_IMETHOD GetTitle(nsAString & aTitle) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTitle(aTitle); } \
94 NS_IMETHOD GetMedia(nsIDOMMediaList * *aMedia) { return !_to ? NS_ERROR_NULL_P OINTER : _to->GetMedia(aMedia); }
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 nsDOMStyleSheet : public nsIDOMStyleSheet
101 {
102 public:
103 NS_DECL_ISUPPORTS
104 NS_DECL_NSIDOMSTYLESHEET
105
106 nsDOMStyleSheet();
107
108 private:
109 ~nsDOMStyleSheet();
110
111 protected:
112 /* additional members */
113 };
114
115 /* Implementation file */
116 NS_IMPL_ISUPPORTS1(nsDOMStyleSheet, nsIDOMStyleSheet)
117
118 nsDOMStyleSheet::nsDOMStyleSheet()
119 {
120 /* member initializers and constructor code */
121 }
122
123 nsDOMStyleSheet::~nsDOMStyleSheet()
124 {
125 /* destructor code */
126 }
127
128 /* readonly attribute DOMString type; */
129 NS_IMETHODIMP nsDOMStyleSheet::GetType(nsAString & aType)
130 {
131 return NS_ERROR_NOT_IMPLEMENTED;
132 }
133
134 /* attribute boolean disabled; */
135 NS_IMETHODIMP nsDOMStyleSheet::GetDisabled(PRBool *aDisabled)
136 {
137 return NS_ERROR_NOT_IMPLEMENTED;
138 }
139 NS_IMETHODIMP nsDOMStyleSheet::SetDisabled(PRBool aDisabled)
140 {
141 return NS_ERROR_NOT_IMPLEMENTED;
142 }
143
144 /* readonly attribute nsIDOMNode ownerNode; */
145 NS_IMETHODIMP nsDOMStyleSheet::GetOwnerNode(nsIDOMNode * *aOwnerNode)
146 {
147 return NS_ERROR_NOT_IMPLEMENTED;
148 }
149
150 /* readonly attribute nsIDOMStyleSheet parentStyleSheet; */
151 NS_IMETHODIMP nsDOMStyleSheet::GetParentStyleSheet(nsIDOMStyleSheet * *aParentSt yleSheet)
152 {
153 return NS_ERROR_NOT_IMPLEMENTED;
154 }
155
156 /* readonly attribute DOMString href; */
157 NS_IMETHODIMP nsDOMStyleSheet::GetHref(nsAString & aHref)
158 {
159 return NS_ERROR_NOT_IMPLEMENTED;
160 }
161
162 /* readonly attribute DOMString title; */
163 NS_IMETHODIMP nsDOMStyleSheet::GetTitle(nsAString & aTitle)
164 {
165 return NS_ERROR_NOT_IMPLEMENTED;
166 }
167
168 /* readonly attribute nsIDOMMediaList media; */
169 NS_IMETHODIMP nsDOMStyleSheet::GetMedia(nsIDOMMediaList * *aMedia)
170 {
171 return NS_ERROR_NOT_IMPLEMENTED;
172 }
173
174 /* End of implementation class template. */
175 #endif
176
177
178 #endif /* __gen_nsIDOMStyleSheet_h__ */
OLDNEW
« no previous file with comments | « gecko-sdk/include/nsIDOMRange.h ('k') | gecko-sdk/include/nsIDOMStyleSheetList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698