/work/obj-fuzz/dist/include/mozilla/dom/HTMLTimeElement.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_HTMLTimeElement_h |
8 | | #define mozilla_dom_HTMLTimeElement_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 HTMLTimeElement final : public nsGenericHTMLElement |
18 | | { |
19 | | public: |
20 | | explicit HTMLTimeElement(already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo); |
21 | | virtual ~HTMLTimeElement(); |
22 | | |
23 | | // HTMLTimeElement WebIDL |
24 | | void GetDateTime(DOMString& aDateTime) |
25 | 0 | { |
26 | 0 | GetHTMLAttr(nsGkAtoms::datetime, aDateTime); |
27 | 0 | } |
28 | | |
29 | | void SetDateTime(const nsAString& aDateTime, ErrorResult& aError) |
30 | 0 | { |
31 | 0 | SetHTMLAttr(nsGkAtoms::datetime, aDateTime, aError); |
32 | 0 | } |
33 | | |
34 | | virtual nsresult Clone(dom::NodeInfo*, nsINode** aResult) const override; |
35 | | |
36 | | protected: |
37 | | virtual JSObject* WrapNode(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override; |
38 | | }; |
39 | | |
40 | | } // namespace dom |
41 | | } // namespace mozilla |
42 | | |
43 | | #endif // mozilla_dom_HTMLTimeElement_h |