/work/obj-fuzz/dist/include/mozilla/dom/HTMLModElement.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_HTMLModElement_h |
8 | | #define mozilla_dom_HTMLModElement_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 HTMLModElement final : public nsGenericHTMLElement |
18 | | { |
19 | | public: |
20 | | explicit HTMLModElement(already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo); |
21 | | |
22 | | virtual nsresult Clone(dom::NodeInfo*, nsINode** aResult) const override; |
23 | | |
24 | | void GetCite(nsString& aCite) |
25 | 0 | { |
26 | 0 | GetHTMLURIAttr(nsGkAtoms::cite, aCite); |
27 | 0 | } |
28 | | void SetCite(const nsAString& aCite, ErrorResult& aRv) |
29 | 0 | { |
30 | 0 | SetHTMLAttr(nsGkAtoms::cite, aCite, aRv); |
31 | 0 | } |
32 | | void GetDateTime(DOMString& aDateTime) |
33 | 0 | { |
34 | 0 | GetHTMLAttr(nsGkAtoms::datetime, aDateTime); |
35 | 0 | } |
36 | | void SetDateTime(const nsAString& aDateTime, ErrorResult& aRv) |
37 | 0 | { |
38 | 0 | SetHTMLAttr(nsGkAtoms::datetime, aDateTime, aRv); |
39 | 0 | } |
40 | | |
41 | | protected: |
42 | | virtual ~HTMLModElement(); |
43 | | |
44 | | virtual JSObject* WrapNode(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override; |
45 | | }; |
46 | | |
47 | | } // namespace dom |
48 | | } // namespace mozilla |
49 | | |
50 | | #endif // mozilla_dom_HTMLModElement_h |