RadioNodeList.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #ifndef mozilla_dom_RadioNodeList_h
  6. #define mozilla_dom_RadioNodeList_h
  7. #include "nsContentList.h"
  8. #include "nsCOMPtr.h"
  9. #include "HTMLFormElement.h"
  10. #define MOZILLA_DOM_RADIONODELIST_IMPLEMENTATION_IID \
  11. { 0xbba7f3e8, 0xf3b5, 0x42e5, \
  12. { 0x82, 0x08, 0xa6, 0x8b, 0xe0, 0xbc, 0x22, 0x19 } }
  13. namespace mozilla {
  14. namespace dom {
  15. class RadioNodeList : public nsSimpleContentList
  16. {
  17. public:
  18. explicit RadioNodeList(HTMLFormElement* aForm) : nsSimpleContentList(aForm) { }
  19. virtual JSObject* WrapObject(JSContext *cx, JS::Handle<JSObject*> aGivenProto) override;
  20. void GetValue(nsString& retval);
  21. void SetValue(const nsAString& value);
  22. NS_DECL_ISUPPORTS_INHERITED
  23. NS_DECLARE_STATIC_IID_ACCESSOR(MOZILLA_DOM_RADIONODELIST_IMPLEMENTATION_IID)
  24. private:
  25. ~RadioNodeList() { }
  26. };
  27. NS_DEFINE_STATIC_IID_ACCESSOR(RadioNodeList, MOZILLA_DOM_RADIONODELIST_IMPLEMENTATION_IID)
  28. } // namespace dom
  29. } // namespace mozilla
  30. #endif // mozilla_dom_RadioNodeList_h