Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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/. */
5 /*
6 * Implementation of DOMSettableTokenList specified by HTML5.
7 */
9 #ifndef nsDOMSettableTokenList_h___
10 #define nsDOMSettableTokenList_h___
12 #include "nsDOMTokenList.h"
14 class nsIAtom;
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:
22 nsDOMSettableTokenList(mozilla::dom::Element* aElement, nsIAtom* aAttrAtom)
23 : nsDOMTokenList(aElement, aAttrAtom) {}
25 virtual JSObject* WrapObject(JSContext *cx) MOZ_OVERRIDE;
27 // WebIDL
28 void GetValue(nsAString& aResult) { Stringify(aResult); }
29 void SetValue(const nsAString& aValue, mozilla::ErrorResult& rv);
30 };
32 #endif // nsDOMSettableTokenList_h___