tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

RadioNodeList.h (1299B)


      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 "HTMLFormElement.h"
     11 #include "mozilla/dom/BindingDeclarations.h"
     12 #include "nsCOMPtr.h"
     13 #include "nsContentList.h"
     14 
     15 #define MOZILLA_DOM_RADIONODELIST_IMPLEMENTATION_IID \
     16  {0xbba7f3e8, 0xf3b5, 0x42e5, {0x82, 0x08, 0xa6, 0x8b, 0xe0, 0xbc, 0x22, 0x19}}
     17 
     18 namespace mozilla::dom {
     19 
     20 class RadioNodeList final : public nsSimpleContentList {
     21 public:
     22  explicit RadioNodeList(HTMLFormElement* aForm) : nsSimpleContentList(aForm) {}
     23 
     24  virtual JSObject* WrapObject(JSContext* cx,
     25                               JS::Handle<JSObject*> aGivenProto) override;
     26  void GetValue(nsString& retval, CallerType aCallerType);
     27  void SetValue(const nsAString& value, CallerType aCallerType);
     28 
     29  NS_DECL_ISUPPORTS_INHERITED
     30  NS_INLINE_DECL_STATIC_IID(MOZILLA_DOM_RADIONODELIST_IMPLEMENTATION_IID)
     31 private:
     32  ~RadioNodeList() = default;
     33 };
     34 
     35 }  // namespace mozilla::dom
     36 
     37 #endif  // mozilla_dom_RadioNodeList_h