content/base/src/nsDOMSettableTokenList.h

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:31bedee70881
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5 /*
6 * Implementation of DOMSettableTokenList specified by HTML5.
7 */
8
9 #ifndef nsDOMSettableTokenList_h___
10 #define nsDOMSettableTokenList_h___
11
12 #include "nsDOMTokenList.h"
13
14 class nsIAtom;
15
16 // nsISupports must be on the primary inheritance chain
17 // because nsDOMSettableTokenList is traversed by Element.
18 class nsDOMSettableTokenList MOZ_FINAL : public nsDOMTokenList
19 {
20 public:
21
22 nsDOMSettableTokenList(mozilla::dom::Element* aElement, nsIAtom* aAttrAtom)
23 : nsDOMTokenList(aElement, aAttrAtom) {}
24
25 virtual JSObject* WrapObject(JSContext *cx) MOZ_OVERRIDE;
26
27 // WebIDL
28 void GetValue(nsAString& aResult) { Stringify(aResult); }
29 void SetValue(const nsAString& aValue, mozilla::ErrorResult& rv);
30 };
31
32 #endif // nsDOMSettableTokenList_h___
33

mercurial