/work/obj-fuzz/dist/include/mozilla/dom/HTMLDataElement.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_HTMLDataElement_h |
8 | | #define mozilla_dom_HTMLDataElement_h |
9 | | |
10 | | #include "mozilla/Attributes.h" |
11 | | #include "nsGenericHTMLElement.h" |
12 | | #include "nsGkAtoms.h" |
13 | | |
14 | | namespace mozilla { |
15 | | namespace dom { |
16 | | |
17 | | class HTMLDataElement final : public nsGenericHTMLElement |
18 | | { |
19 | | public: |
20 | | explicit HTMLDataElement(already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo); |
21 | | |
22 | | // HTMLDataElement WebIDL |
23 | | void GetValue(DOMString& aValue) |
24 | 0 | { |
25 | 0 | GetHTMLAttr(nsGkAtoms::value, aValue); |
26 | 0 | } |
27 | | |
28 | | void SetValue(const nsAString& aValue, ErrorResult& aError) |
29 | 0 | { |
30 | 0 | SetHTMLAttr(nsGkAtoms::value, aValue, aError); |
31 | 0 | } |
32 | | |
33 | | nsresult Clone(dom::NodeInfo*, nsINode** aResult) const override; |
34 | | |
35 | | protected: |
36 | | virtual ~HTMLDataElement(); |
37 | | |
38 | | JSObject* WrapNode(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override; |
39 | | }; |
40 | | |
41 | | } // namespace dom |
42 | | } // namespace mozilla |
43 | | |
44 | | #endif // mozilla_dom_HTMLDataElement_h |