30 #ifndef __SB_MEDIACOREWRAPPER_H__
31 #define __SB_MEDIACOREWRAPPER_H__
33 #include <sbIMediacoreWrapper.h>
35 #include <nsIClassInfo.h>
36 #include <nsIDOMDataContainerEvent.h>
37 #include <nsIDOMDocument.h>
38 #include <nsIDOMDocumentEvent.h>
39 #include <nsIDOMEventListener.h>
40 #include <nsIDOMEventTarget.h>
41 #include <nsIDOMWindow.h>
42 #include <nsIDOMWindowInternal.h>
44 #include <sbIMediacoreCapabilities.h>
45 #include <sbIMediacoreEventTarget.h>
46 #include <sbIMediacoreSequencer.h>
47 #include <sbIMediacoreStatus.h>
48 #include <sbIMediacoreVotingParticipant.h>
49 #include <sbIPrompter.h>
57 #include <nsAutoLock.h>
59 #include <nsStringGlue.h>
71 NS_DECL_NSIDOMEVENTLISTENER
73 NS_DECL_SBIMEDIACOREVOTINGPARTICIPANT
74 NS_DECL_SBIMEDIACOREWRAPPER
89 virtual nsresult
OnSetUri(nsIURI *aURI);
98 virtual nsresult
OnSeek(PRUint64 aPosition, PRUint32 aFlag);
102 virtual nsresult
OnSetMute(PRBool aMute);
106 nsresult AddSelfDOMListener();
107 nsresult RemoveSelfDOMListener();
109 nsresult SendDOMEvent(
const nsAString &aEventName,
110 const nsAString &aEventData,
111 nsIDOMDataContainerEvent **aEvent = nsnull);
113 nsresult SendDOMEvent(
const nsAString &aEventName,
114 const nsACString &aEventData,
115 nsIDOMDataContainerEvent **aEvent = nsnull);
117 nsresult GetRetvalFromEvent(nsIDOMDataContainerEvent *aEvent,
120 nsresult DispatchMediacoreEvent(PRUint32 aType,
121 nsIVariant *
aData = nsnull,
_updateTextAndScrollDataForFrame aData