/src/mozilla-central/dom/html/RadioNodeList.h
Line | Count | Source (jump to first uncovered line) |
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/. */ |
6 | | |
7 | | #ifndef mozilla_dom_RadioNodeList_h |
8 | | #define mozilla_dom_RadioNodeList_h |
9 | | |
10 | | #include "nsContentList.h" |
11 | | #include "nsCOMPtr.h" |
12 | | #include "HTMLFormElement.h" |
13 | | #include "mozilla/dom/BindingDeclarations.h" |
14 | | |
15 | | #define MOZILLA_DOM_RADIONODELIST_IMPLEMENTATION_IID \ |
16 | | { 0xbba7f3e8, 0xf3b5, 0x42e5, \ |
17 | | { 0x82, 0x08, 0xa6, 0x8b, 0xe0, 0xbc, 0x22, 0x19 } } |
18 | | |
19 | | namespace mozilla { |
20 | | namespace dom { |
21 | | |
22 | | class RadioNodeList final : public nsSimpleContentList |
23 | | { |
24 | | public: |
25 | 0 | explicit RadioNodeList(HTMLFormElement* aForm) : nsSimpleContentList(aForm) { } |
26 | | |
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); |
30 | | |
31 | | NS_DECL_ISUPPORTS_INHERITED |
32 | | NS_DECLARE_STATIC_IID_ACCESSOR(MOZILLA_DOM_RADIONODELIST_IMPLEMENTATION_IID) |
33 | | private: |
34 | | ~RadioNodeList() { } |
35 | | }; |
36 | | |
37 | | NS_DEFINE_STATIC_IID_ACCESSOR(RadioNodeList, MOZILLA_DOM_RADIONODELIST_IMPLEMENTATION_IID) |
38 | | |
39 | | } // namespace dom |
40 | | } // namespace mozilla |
41 | | |
42 | | #endif // mozilla_dom_RadioNodeList_h |