2008-07-09 08:22:20 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim:set ts=2 sw=2 sts=2 et cindent: */
|
2012-05-21 11:12:37 +00:00
|
|
|
/* 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/. */
|
2010-04-02 03:03:07 +00:00
|
|
|
#if !defined(nsHTMLAudioElement_h__)
|
|
|
|
#define nsHTMLAudioElement_h__
|
|
|
|
|
2008-07-09 08:22:20 +00:00
|
|
|
#include "nsIDOMHTMLAudioElement.h"
|
2009-05-19 05:18:41 +00:00
|
|
|
#include "nsIJSNativeInitializer.h"
|
2008-07-09 08:22:20 +00:00
|
|
|
#include "nsHTMLMediaElement.h"
|
|
|
|
|
2012-08-22 15:56:38 +00:00
|
|
|
typedef uint16_t nsMediaNetworkState;
|
|
|
|
typedef uint16_t nsMediaReadyState;
|
2008-07-09 08:22:20 +00:00
|
|
|
|
|
|
|
class nsHTMLAudioElement : public nsHTMLMediaElement,
|
2009-05-19 05:18:41 +00:00
|
|
|
public nsIDOMHTMLAudioElement,
|
|
|
|
public nsIJSNativeInitializer
|
2008-07-09 08:22:20 +00:00
|
|
|
{
|
|
|
|
public:
|
2011-09-18 09:22:18 +00:00
|
|
|
nsHTMLAudioElement(already_AddRefed<nsINodeInfo> aNodeInfo);
|
2008-07-09 08:22:20 +00:00
|
|
|
virtual ~nsHTMLAudioElement();
|
|
|
|
|
|
|
|
// nsISupports
|
|
|
|
NS_DECL_ISUPPORTS_INHERITED
|
|
|
|
|
|
|
|
// nsIDOMNode
|
2012-10-09 12:31:24 +00:00
|
|
|
NS_FORWARD_NSIDOMNODE_TO_NSINODE
|
2008-07-09 08:22:20 +00:00
|
|
|
|
|
|
|
// nsIDOMElement
|
2012-10-16 11:51:00 +00:00
|
|
|
NS_FORWARD_NSIDOMELEMENT_TO_GENERIC
|
2008-07-09 08:22:20 +00:00
|
|
|
|
|
|
|
// nsIDOMHTMLElement
|
2012-11-10 23:30:15 +00:00
|
|
|
NS_FORWARD_NSIDOMHTMLELEMENT_TO_GENERIC
|
2008-07-09 08:22:20 +00:00
|
|
|
|
|
|
|
// nsIDOMHTMLMediaElement
|
2012-11-09 05:52:53 +00:00
|
|
|
using nsHTMLMediaElement::GetPaused;
|
2008-07-09 08:22:20 +00:00
|
|
|
NS_FORWARD_NSIDOMHTMLMEDIAELEMENT(nsHTMLMediaElement::)
|
|
|
|
|
|
|
|
// nsIDOMHTMLAudioElement
|
|
|
|
NS_DECL_NSIDOMHTMLAUDIOELEMENT
|
|
|
|
|
2009-05-19 05:18:41 +00:00
|
|
|
// nsIJSNativeInitializer
|
|
|
|
NS_IMETHOD Initialize(nsISupports* aOwner, JSContext* aContext,
|
2012-08-22 15:56:38 +00:00
|
|
|
JSObject* aObj, uint32_t argc, jsval* argv);
|
2009-05-19 05:18:41 +00:00
|
|
|
|
2008-07-09 08:22:20 +00:00
|
|
|
virtual nsresult Clone(nsINodeInfo *aNodeInfo, nsINode **aResult) const;
|
2010-07-29 04:58:07 +00:00
|
|
|
virtual nsresult SetAcceptHeader(nsIHttpChannel* aChannel);
|
2010-07-23 09:49:57 +00:00
|
|
|
|
|
|
|
virtual nsXPCClassInfo* GetClassInfo();
|
2012-04-25 13:47:30 +00:00
|
|
|
|
|
|
|
virtual nsIDOMNode* AsDOMNode() { return this; }
|
2008-07-09 08:22:20 +00:00
|
|
|
};
|
2010-04-02 03:03:07 +00:00
|
|
|
|
|
|
|
#endif
|