2013-02-22 15:07:42 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
#ifndef mozilla_dom_HTMLTimeElement_h
|
|
|
|
#define mozilla_dom_HTMLTimeElement_h
|
|
|
|
|
2013-05-29 20:43:41 +00:00
|
|
|
#include "mozilla/Attributes.h"
|
2013-02-22 15:07:42 +00:00
|
|
|
#include "nsIDOMHTMLElement.h"
|
|
|
|
#include "nsGenericHTMLElement.h"
|
|
|
|
#include "nsGkAtoms.h"
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
|
2013-08-07 20:23:08 +00:00
|
|
|
class HTMLTimeElement MOZ_FINAL : public nsGenericHTMLElement
|
2013-02-22 15:07:42 +00:00
|
|
|
{
|
|
|
|
public:
|
2014-09-02 00:49:25 +00:00
|
|
|
explicit HTMLTimeElement(already_AddRefed<mozilla::dom::NodeInfo>& aNodeInfo);
|
2013-02-22 15:07:42 +00:00
|
|
|
virtual ~HTMLTimeElement();
|
|
|
|
|
|
|
|
// HTMLTimeElement WebIDL
|
|
|
|
void GetDateTime(nsAString& aDateTime)
|
|
|
|
{
|
|
|
|
GetHTMLAttr(nsGkAtoms::datetime, aDateTime);
|
|
|
|
}
|
|
|
|
|
|
|
|
void SetDateTime(const nsAString& aDateTime, ErrorResult& aError)
|
|
|
|
{
|
|
|
|
SetHTMLAttr(nsGkAtoms::datetime, aDateTime, aError);
|
|
|
|
}
|
|
|
|
|
2013-05-29 20:43:41 +00:00
|
|
|
virtual void GetItemValueText(nsAString& text) MOZ_OVERRIDE;
|
|
|
|
virtual void SetItemValueText(const nsAString& text) MOZ_OVERRIDE;
|
2014-06-20 02:01:40 +00:00
|
|
|
virtual nsresult Clone(mozilla::dom::NodeInfo* aNodeInfo, nsINode** aResult) const MOZ_OVERRIDE;
|
2013-02-22 15:07:42 +00:00
|
|
|
|
|
|
|
protected:
|
2014-04-08 22:27:17 +00:00
|
|
|
virtual JSObject* WrapNode(JSContext* aCx) MOZ_OVERRIDE;
|
2013-02-22 15:07:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif // mozilla_dom_HTMLTimeElement_h
|