michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: /* michael@0: * Implementation of DOMSettableTokenList specified by HTML5. michael@0: */ michael@0: michael@0: #ifndef nsDOMSettableTokenList_h___ michael@0: #define nsDOMSettableTokenList_h___ michael@0: michael@0: #include "nsDOMTokenList.h" michael@0: michael@0: class nsIAtom; michael@0: michael@0: // nsISupports must be on the primary inheritance chain michael@0: // because nsDOMSettableTokenList is traversed by Element. michael@0: class nsDOMSettableTokenList MOZ_FINAL : public nsDOMTokenList michael@0: { michael@0: public: michael@0: michael@0: nsDOMSettableTokenList(mozilla::dom::Element* aElement, nsIAtom* aAttrAtom) michael@0: : nsDOMTokenList(aElement, aAttrAtom) {} michael@0: michael@0: virtual JSObject* WrapObject(JSContext *cx) MOZ_OVERRIDE; michael@0: michael@0: // WebIDL michael@0: void GetValue(nsAString& aResult) { Stringify(aResult); } michael@0: void SetValue(const nsAString& aValue, mozilla::ErrorResult& rv); michael@0: }; michael@0: michael@0: #endif // nsDOMSettableTokenList_h___ michael@0: