Bug 1494333 - index crons just like artifacts r=Callek
[gecko.git] / dom / html / RadioNodeList.h
blobd85bc11cec2eb1b08b25f39c52d6245e022c7962
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef mozilla_dom_RadioNodeList_h
8 #define mozilla_dom_RadioNodeList_h
10 #include "nsContentList.h"
11 #include "nsCOMPtr.h"
12 #include "HTMLFormElement.h"
13 #include "mozilla/dom/BindingDeclarations.h"
15 #define MOZILLA_DOM_RADIONODELIST_IMPLEMENTATION_IID \
16 { 0xbba7f3e8, 0xf3b5, 0x42e5, \
17 { 0x82, 0x08, 0xa6, 0x8b, 0xe0, 0xbc, 0x22, 0x19 } }
19 namespace mozilla {
20 namespace dom {
22 class RadioNodeList final : public nsSimpleContentList
24 public:
25 explicit RadioNodeList(HTMLFormElement* aForm) : nsSimpleContentList(aForm) { }
27 virtual JSObject* WrapObject(JSContext *cx, JS::Handle<JSObject*> aGivenProto) override;
28 void GetValue(nsString& retval, CallerType aCallerType);
29 void SetValue(const nsAString& value, CallerType aCallerType);
31 NS_DECL_ISUPPORTS_INHERITED
32 NS_DECLARE_STATIC_IID_ACCESSOR(MOZILLA_DOM_RADIONODELIST_IMPLEMENTATION_IID)
33 private:
34 ~RadioNodeList() { }
37 NS_DEFINE_STATIC_IID_ACCESSOR(RadioNodeList, MOZILLA_DOM_RADIONODELIST_IMPLEMENTATION_IID)
39 } // namespace dom
40 } // namespace mozilla
42 #endif // mozilla_dom_RadioNodeList_h