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

Side by Side Diff: gecko-sdk/include/nsIDOMCSSValue.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/nsIDOMCSSStyleSheet.h ('k') | gecko-sdk/include/nsIDOMCSSValueList.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/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
25 class NS_NO_VTABLE nsIDOMCSSValue : public nsISupports {
26 public:
27
28 NS_DEFINE_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_IMETHOD GetCssText(nsAString & aCssText) = 0;
49 NS_IMETHOD SetCssText(const nsAString & aCssText) = 0;
50
51 /* readonly attribute unsigned short cssValueType; */
52 NS_IMETHOD GetCssValueType(PRUint16 *aCssValueType) = 0;
53
54 };
55
56 /* Use this macro when declaring classes that implement this interface. */
57 #define NS_DECL_NSIDOMCSSVALUE \
58 NS_IMETHOD GetCssText(nsAString & aCssText); \
59 NS_IMETHOD SetCssText(const nsAString & aCssText); \
60 NS_IMETHOD GetCssValueType(PRUint16 *aCssValueType);
61
62 /* Use this macro to declare functions that forward the behavior of this interfa ce to another object. */
63 #define NS_FORWARD_NSIDOMCSSVALUE(_to) \
64 NS_IMETHOD GetCssText(nsAString & aCssText) { return _to GetCssText(aCssText); } \
65 NS_IMETHOD SetCssText(const nsAString & aCssText) { return _to SetCssText(aCss Text); } \
66 NS_IMETHOD GetCssValueType(PRUint16 *aCssValueType) { return _to GetCssValueTy pe(aCssValueType); }
67
68 /* Use this macro to declare functions that forward the behavior of this interfa ce to another object in a safe way. */
69 #define NS_FORWARD_SAFE_NSIDOMCSSVALUE(_to) \
70 NS_IMETHOD GetCssText(nsAString & aCssText) { return !_to ? NS_ERROR_NULL_POIN TER : _to->GetCssText(aCssText); } \
71 NS_IMETHOD SetCssText(const nsAString & aCssText) { return !_to ? NS_ERROR_NUL L_POINTER : _to->SetCssText(aCssText); } \
72 NS_IMETHOD GetCssValueType(PRUint16 *aCssValueType) { return !_to ? NS_ERROR_N ULL_POINTER : _to->GetCssValueType(aCssValueType); }
73
74 #if 0
75 /* Use the code below as a template for the implementation class for this interf ace. */
76
77 /* Header file */
78 class nsDOMCSSValue : public nsIDOMCSSValue
79 {
80 public:
81 NS_DECL_ISUPPORTS
82 NS_DECL_NSIDOMCSSVALUE
83
84 nsDOMCSSValue();
85
86 private:
87 ~nsDOMCSSValue();
88
89 protected:
90 /* additional members */
91 };
92
93 /* Implementation file */
94 NS_IMPL_ISUPPORTS1(nsDOMCSSValue, nsIDOMCSSValue)
95
96 nsDOMCSSValue::nsDOMCSSValue()
97 {
98 /* member initializers and constructor code */
99 }
100
101 nsDOMCSSValue::~nsDOMCSSValue()
102 {
103 /* destructor code */
104 }
105
106 /* attribute DOMString cssText; */
107 NS_IMETHODIMP nsDOMCSSValue::GetCssText(nsAString & aCssText)
108 {
109 return NS_ERROR_NOT_IMPLEMENTED;
110 }
111 NS_IMETHODIMP nsDOMCSSValue::SetCssText(const nsAString & aCssText)
112 {
113 return NS_ERROR_NOT_IMPLEMENTED;
114 }
115
116 /* readonly attribute unsigned short cssValueType; */
117 NS_IMETHODIMP nsDOMCSSValue::GetCssValueType(PRUint16 *aCssValueType)
118 {
119 return NS_ERROR_NOT_IMPLEMENTED;
120 }
121
122 /* End of implementation class template. */
123 #endif
124
125
126 #endif /* __gen_nsIDOMCSSValue_h__ */
OLDNEW
« no previous file with comments | « gecko-sdk/include/nsIDOMCSSStyleSheet.h ('k') | gecko-sdk/include/nsIDOMCSSValueList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698