/work/obj-fuzz/dist/include/mozilla/dom/HTMLMapElement.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_HTMLMapElement_h |
8 | | #define mozilla_dom_HTMLMapElement_h |
9 | | |
10 | | #include "mozilla/Attributes.h" |
11 | | #include "nsGenericHTMLElement.h" |
12 | | #include "nsGkAtoms.h" |
13 | | |
14 | | class nsContentList; |
15 | | |
16 | | namespace mozilla { |
17 | | namespace dom { |
18 | | |
19 | | class HTMLMapElement final : public nsGenericHTMLElement |
20 | | { |
21 | | public: |
22 | | explicit HTMLMapElement(already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo); |
23 | | |
24 | | // nsISupports |
25 | | NS_DECL_ISUPPORTS_INHERITED |
26 | | |
27 | | virtual nsresult Clone(dom::NodeInfo*, nsINode** aResult) const override; |
28 | | |
29 | | NS_DECL_CYCLE_COLLECTION_CLASS_INHERITED_NO_UNLINK(HTMLMapElement, |
30 | | nsGenericHTMLElement) |
31 | | |
32 | | void GetName(nsAString& aValue) |
33 | 0 | { |
34 | 0 | GetHTMLAttr(nsGkAtoms::name, aValue); |
35 | 0 | } |
36 | | void SetName(const nsAString& aName, ErrorResult& aError) |
37 | 0 | { |
38 | 0 | SetHTMLAttr(nsGkAtoms::name, aName, aError); |
39 | 0 | } |
40 | | nsIHTMLCollection* Areas(); |
41 | | |
42 | | virtual JSObject* WrapNode(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override; |
43 | | |
44 | | protected: |
45 | 0 | ~HTMLMapElement() {} |
46 | | |
47 | | RefPtr<nsContentList> mAreas; |
48 | | }; |
49 | | |
50 | | } // namespace dom |
51 | | } // namespace mozilla |
52 | | |
53 | | #endif // mozilla_dom_HTMLMapElement_h |