1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim:set ts=2 sw=2 sts=2 et cindent: */
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/. */
7 #ifndef mozilla_dom_HTMLPictureElement_h
8 #define mozilla_dom_HTMLPictureElement_h
10 #include "mozilla/Attributes.h"
11 #include "nsIDOMHTMLPictureElement.h"
12 #include "nsGenericHTMLElement.h"
14 #include "mozilla/dom/HTMLUnknownElement.h"
19 class HTMLPictureElement MOZ_FINAL
: public nsGenericHTMLElement
,
20 public nsIDOMHTMLPictureElement
23 explicit HTMLPictureElement(already_AddRefed
<mozilla::dom::NodeInfo
>& aNodeInfo
);
26 NS_DECL_ISUPPORTS_INHERITED
28 // nsIDOMHTMLPictureElement
29 NS_DECL_NSIDOMHTMLPICTUREELEMENT
31 virtual nsresult
Clone(mozilla::dom::NodeInfo
* aNodeInfo
, nsINode
** aResult
) const MOZ_OVERRIDE
;
32 virtual void RemoveChildAt(uint32_t aIndex
, bool aNotify
) MOZ_OVERRIDE
;
34 static bool IsPictureEnabled();
37 virtual ~HTMLPictureElement();
39 virtual JSObject
* WrapNode(JSContext
* aCx
) MOZ_OVERRIDE
;
43 } // namespace mozilla
45 #endif // mozilla_dom_HTMLPictureElement_h