2012-05-21 11:12:37 +00:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2010-04-26 07:42:00 +00:00
|
|
|
|
|
|
|
/*
|
2013-01-15 08:35:59 +00:00
|
|
|
* Implementation of DOMSettableTokenList specified by HTML5.
|
2010-04-26 07:42:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef nsDOMSettableTokenList_h___
|
|
|
|
#define nsDOMSettableTokenList_h___
|
|
|
|
|
|
|
|
#include "nsDOMTokenList.h"
|
|
|
|
|
|
|
|
class nsIAtom;
|
|
|
|
|
2013-01-15 08:35:59 +00:00
|
|
|
// nsISupports must be on the primary inheritance chain
|
2012-11-14 22:10:08 +00:00
|
|
|
// because nsDOMSettableTokenList is traversed by Element.
|
2013-01-15 08:35:59 +00:00
|
|
|
class nsDOMSettableTokenList MOZ_FINAL : public nsDOMTokenList
|
2010-04-26 07:42:00 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
2013-01-15 08:35:59 +00:00
|
|
|
nsDOMSettableTokenList(mozilla::dom::Element* aElement, nsIAtom* aAttrAtom)
|
|
|
|
: nsDOMTokenList(aElement, aAttrAtom) {}
|
2010-04-26 07:42:00 +00:00
|
|
|
|
2014-04-08 22:27:18 +00:00
|
|
|
virtual JSObject* WrapObject(JSContext *cx) MOZ_OVERRIDE;
|
2011-08-22 09:14:13 +00:00
|
|
|
|
2013-01-15 08:35:59 +00:00
|
|
|
// WebIDL
|
|
|
|
void GetValue(nsAString& aResult) { Stringify(aResult); }
|
|
|
|
void SetValue(const nsAString& aValue, mozilla::ErrorResult& rv);
|
2010-04-26 07:42:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // nsDOMSettableTokenList_h___
|
|
|
|
|