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

Side by Side Diff: gecko-sdk/include/nsIDOMMediaList.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/nsIDOMHTMLUListElement.h ('k') | gecko-sdk/include/nsIDOMMouseEvent.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/nsIDOMMediaList.idl
3 */
4
5 #ifndef __gen_nsIDOMMediaList_h__
6 #define __gen_nsIDOMMediaList_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: nsIDOMMediaList */
19 #define NS_IDOMMEDIALIST_IID_STR "9b0c2ed7-111c-4824-adf9-ef0da6dad371"
20
21 #define NS_IDOMMEDIALIST_IID \
22 {0x9b0c2ed7, 0x111c, 0x4824, \
23 { 0xad, 0xf9, 0xef, 0x0d, 0xa6, 0xda, 0xd3, 0x71 }}
24
25 class NS_NO_VTABLE nsIDOMMediaList : public nsISupports {
26 public:
27
28 NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMMEDIALIST_IID)
29
30 /**
31 * The nsIDOMMediaList interface is a datatype for a list of media
32 * types in 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 /* attribute DOMString mediaText; */
40 NS_IMETHOD GetMediaText(nsAString & aMediaText) = 0;
41 NS_IMETHOD SetMediaText(const nsAString & aMediaText) = 0;
42
43 /* readonly attribute unsigned long length; */
44 NS_IMETHOD GetLength(PRUint32 *aLength) = 0;
45
46 /* DOMString item (in unsigned long index); */
47 NS_IMETHOD Item(PRUint32 index, nsAString & _retval) = 0;
48
49 /* void deleteMedium (in DOMString oldMedium) raises (DOMException); */
50 NS_IMETHOD DeleteMedium(const nsAString & oldMedium) = 0;
51
52 /* void appendMedium (in DOMString newMedium) raises (DOMException); */
53 NS_IMETHOD AppendMedium(const nsAString & newMedium) = 0;
54
55 };
56
57 /* Use this macro when declaring classes that implement this interface. */
58 #define NS_DECL_NSIDOMMEDIALIST \
59 NS_IMETHOD GetMediaText(nsAString & aMediaText); \
60 NS_IMETHOD SetMediaText(const nsAString & aMediaText); \
61 NS_IMETHOD GetLength(PRUint32 *aLength); \
62 NS_IMETHOD Item(PRUint32 index, nsAString & _retval); \
63 NS_IMETHOD DeleteMedium(const nsAString & oldMedium); \
64 NS_IMETHOD AppendMedium(const nsAString & newMedium);
65
66 /* Use this macro to declare functions that forward the behavior of this interfa ce to another object. */
67 #define NS_FORWARD_NSIDOMMEDIALIST(_to) \
68 NS_IMETHOD GetMediaText(nsAString & aMediaText) { return _to GetMediaText(aMed iaText); } \
69 NS_IMETHOD SetMediaText(const nsAString & aMediaText) { return _to SetMediaTex t(aMediaText); } \
70 NS_IMETHOD GetLength(PRUint32 *aLength) { return _to GetLength(aLength); } \
71 NS_IMETHOD Item(PRUint32 index, nsAString & _retval) { return _to Item(index, _retval); } \
72 NS_IMETHOD DeleteMedium(const nsAString & oldMedium) { return _to DeleteMedium (oldMedium); } \
73 NS_IMETHOD AppendMedium(const nsAString & newMedium) { return _to AppendMedium (newMedium); }
74
75 /* Use this macro to declare functions that forward the behavior of this interfa ce to another object in a safe way. */
76 #define NS_FORWARD_SAFE_NSIDOMMEDIALIST(_to) \
77 NS_IMETHOD GetMediaText(nsAString & aMediaText) { return !_to ? NS_ERROR_NULL_ POINTER : _to->GetMediaText(aMediaText); } \
78 NS_IMETHOD SetMediaText(const nsAString & aMediaText) { return !_to ? NS_ERROR _NULL_POINTER : _to->SetMediaText(aMediaText); } \
79 NS_IMETHOD GetLength(PRUint32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
80 NS_IMETHOD Item(PRUint32 index, nsAString & _retval) { return !_to ? NS_ERROR_ NULL_POINTER : _to->Item(index, _retval); } \
81 NS_IMETHOD DeleteMedium(const nsAString & oldMedium) { return !_to ? NS_ERROR_ NULL_POINTER : _to->DeleteMedium(oldMedium); } \
82 NS_IMETHOD AppendMedium(const nsAString & newMedium) { return !_to ? NS_ERROR_ NULL_POINTER : _to->AppendMedium(newMedium); }
83
84 #if 0
85 /* Use the code below as a template for the implementation class for this interf ace. */
86
87 /* Header file */
88 class nsDOMMediaList : public nsIDOMMediaList
89 {
90 public:
91 NS_DECL_ISUPPORTS
92 NS_DECL_NSIDOMMEDIALIST
93
94 nsDOMMediaList();
95
96 private:
97 ~nsDOMMediaList();
98
99 protected:
100 /* additional members */
101 };
102
103 /* Implementation file */
104 NS_IMPL_ISUPPORTS1(nsDOMMediaList, nsIDOMMediaList)
105
106 nsDOMMediaList::nsDOMMediaList()
107 {
108 /* member initializers and constructor code */
109 }
110
111 nsDOMMediaList::~nsDOMMediaList()
112 {
113 /* destructor code */
114 }
115
116 /* attribute DOMString mediaText; */
117 NS_IMETHODIMP nsDOMMediaList::GetMediaText(nsAString & aMediaText)
118 {
119 return NS_ERROR_NOT_IMPLEMENTED;
120 }
121 NS_IMETHODIMP nsDOMMediaList::SetMediaText(const nsAString & aMediaText)
122 {
123 return NS_ERROR_NOT_IMPLEMENTED;
124 }
125
126 /* readonly attribute unsigned long length; */
127 NS_IMETHODIMP nsDOMMediaList::GetLength(PRUint32 *aLength)
128 {
129 return NS_ERROR_NOT_IMPLEMENTED;
130 }
131
132 /* DOMString item (in unsigned long index); */
133 NS_IMETHODIMP nsDOMMediaList::Item(PRUint32 index, nsAString & _retval)
134 {
135 return NS_ERROR_NOT_IMPLEMENTED;
136 }
137
138 /* void deleteMedium (in DOMString oldMedium) raises (DOMException); */
139 NS_IMETHODIMP nsDOMMediaList::DeleteMedium(const nsAString & oldMedium)
140 {
141 return NS_ERROR_NOT_IMPLEMENTED;
142 }
143
144 /* void appendMedium (in DOMString newMedium) raises (DOMException); */
145 NS_IMETHODIMP nsDOMMediaList::AppendMedium(const nsAString & newMedium)
146 {
147 return NS_ERROR_NOT_IMPLEMENTED;
148 }
149
150 /* End of implementation class template. */
151 #endif
152
153
154 #endif /* __gen_nsIDOMMediaList_h__ */
OLDNEW
« no previous file with comments | « gecko-sdk/include/nsIDOMHTMLUListElement.h ('k') | gecko-sdk/include/nsIDOMMouseEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698