#include <sbMediacoreManager.h>
Public Member Functions | |
| NS_DECL_ISUPPORTS NS_DECL_SBIMEDIACOREMANAGER NS_DECL_SBPIMEDIACOREMANAGER NS_DECL_SBIMEDIACOREEVENTTARGET NS_DECL_SBIMEDIACOREFACTORYREGISTRAR NS_DECL_SBIMEDIACOREVIDEOWINDOW NS_DECL_SBIMEDIACOREVOTING NS_DECL_NSICLASSINFO NS_DECL_NSIOBSERVER | sbMediacoreManager () |
| nsresult | Init () |
| nsresult | PreShutdown () |
| nsresult | Shutdown () |
| virtual nsresult | OnInitBaseMediacoreMultibandEqualizer () |
| virtual nsresult | OnSetEqEnabled (PRBool aEqEnabled) |
| virtual nsresult | OnGetBandCount (PRUint32 *aBandCount) |
| virtual nsresult | OnGetBand (PRUint32 aBandIndex, sbIMediacoreEqualizerBand *aBand) |
| virtual nsresult | OnSetBand (sbIMediacoreEqualizerBand *aBand) |
| virtual nsresult | OnInitBaseMediacoreVolumeControl () |
| virtual nsresult | OnSetMute (PRBool aMute) |
| virtual nsresult | OnSetVolume (PRFloat64 aVolume) |
| nsresult | SetVolumeDataRemote (PRFloat64 aVolume) |
| nsresult | GetAndEnsureEQBandHasDataRemote (PRUint32 aBandIndex, sbIDataRemote **aRemote) |
| nsresult | SetAndEnsureEQBandHasDataRemote (sbIMediacoreEqualizerBand *aBand) |
| nsresult | CreateDataRemoteForEqualizerBand (PRUint32 aBandIndex, sbIDataRemote **aRemote) |
| nsresult | InitVideoDataRemotes () |
| nsresult | VideoWindowUnloaded () |
Public Member Functions inherited from sbBaseMediacoreMultibandEqualizer | |
| NS_DECL_ISUPPORTS NS_DECL_SBIMEDIACOREMULTIBANDEQUALIZER | sbBaseMediacoreMultibandEqualizer () |
| nsresult | InitBaseMediacoreMultibandEqualizer () |
Public Member Functions inherited from sbIMediacoreMultibandEqualizer | |
| sbIMediacoreEqualizerBand | getBand (in unsigned long aBandIndex) |
| Get a band. More... | |
| void | setBand (in sbIMediacoreEqualizerBand aBand) |
| Set a band. More... | |
Public Member Functions inherited from sbBaseMediacoreVolumeControl | |
| NS_DECL_ISUPPORTS NS_DECL_SBIMEDIACOREVOLUMECONTROL | sbBaseMediacoreVolumeControl () |
| nsresult | InitBaseMediacoreVolumeControl () |
Public Member Functions inherited from sbIMediacoreManager | |
| sbIMediacoreVideoWindow | getPrimaryVideoWindow (in boolean aCreate, [optional] in unsigned long aWidthHint, [optional] in unsigned long aHeightHint) |
| sbIMediacoreEvent | createEvent (in unsigned long aType, in sbIMediacore aOrigin, [optional] in nsIVariant aData, [optional] in sbIMediacoreError aError) |
Public Member Functions inherited from sbPIMediacoreManager | |
| void | setPrimaryCore (in sbIMediacore aMediacore) |
Public Member Functions inherited from sbIMediacoreEventTarget | |
| void | addListener (in sbIMediacoreEventListener aListener) |
| void | removeListener (in sbIMediacoreEventListener aListener) |
| boolean | dispatchEvent (in sbIMediacoreEvent aEvent, [optional] in boolean aAsync) |
Public Member Functions inherited from sbIMediacoreFactoryRegistrar | |
| sbIMediacore | createMediacore (in AString aContractID, in AString aUniqueName) |
| sbIMediacore | createMediacoreWithFactory (in sbIMediacoreFactory aFactory, in AString aUniqueName) |
| sbIMediacore | getMediacore (in AString aInstanceName) |
| void | destroyMediacore (in AString aInstanceName) |
| void | registerFactory (in sbIMediacoreFactory aFactory) |
| void | unregisterFactory (in sbIMediacoreFactory aFactory) |
Public Member Functions inherited from sbIMediacoreVoting | |
| sbIMediacoreVotingChain | voteWithURI (in nsIURI aURI) |
| sbIMediacoreVotingChain | voteWithChannel (in nsIChannel aChannel) |
Public Member Functions inherited from sbSupportsWeakReference | |
| sbSupportsWeakReference () | |
Protected Member Functions | |
| virtual | ~sbMediacoreManager () |
| nsresult | GenerateInstanceName (nsAString &aInstanceName) |
| nsresult | VoteWithURIOrChannel (nsIURI *aURI, nsIChannel *aChannel, sbIMediacoreVotingChain **_retval) |
Protected Member Functions inherited from sbBaseMediacoreMultibandEqualizer | |
| virtual | ~sbBaseMediacoreMultibandEqualizer () |
| nsresult | EnsureBandIsCached (sbIMediacoreEqualizerBand *aBand) |
Protected Member Functions inherited from sbBaseMediacoreVolumeControl | |
| virtual | ~sbBaseMediacoreVolumeControl () |
Protected Member Functions inherited from sbSupportsWeakReference | |
| ~sbSupportsWeakReference () | |
| void | ClearWeakReferences () |
| PRBool | HasWeakReferences () const |
Static Protected Member Functions | |
| template<class T > | |
| static | NS_HIDDEN_ (PLDHashOperator) EnumerateIntoArrayStringKey(const nsAString &aKey |
| template<class T > | |
| static | NS_HIDDEN_ (PLDHashOperator) EnumerateIntoArrayISupportsKey(nsISupports *aKey |
| template<class T > | |
| static | NS_HIDDEN_ (PLDHashOperator) EnumerateIntoArrayUint32Key(const PRUint32 &aKey |
Static Protected Member Functions inherited from sbBaseMediacoreMultibandEqualizer | |
| template<class T > | |
| static | NS_HIDDEN_ (PLDHashOperator) EnumerateIntoArrayUint32Key(const PRUint32 &aKey |
Additional Inherited Members | |
Public Attributes inherited from sbIMediacoreMultibandEqualizer | |
| attribute boolean | eqEnabled |
| Whether the EQ is enabled or not. More... | |
| attribute nsISimpleEnumerator | bands |
| Enumerator containing all available bands. More... | |
| readonly attribute unsigned long | bandCount |
| The number of bands available. More... | |
| attribute AString | currentPresetName |
| The name of the current equalizer preset. More... | |
Public Attributes inherited from sbIMediacoreVolumeControl | |
| attribute boolean | mute |
| attribute double | volume |
Public Attributes inherited from sbIMediacoreManager | |
| readonly attribute sbIMediacore | primaryCore |
| readonly attribute sbIMediacoreBalanceControl | balanceControl |
| readonly attribute sbIMediacoreVolumeControl | volumeControl |
| readonly attribute sbIMediacoreMultibandEqualizer | equalizer |
| readonly attribute sbIMediacorePlaybackControl | playbackControl |
| readonly attribute sbIMediacoreCapabilities | capabilities |
| readonly attribute sbIMediacoreStatus | status |
| readonly attribute sbIMediacoreVideoWindow | video |
| attribute sbIMediacoreSequencer | sequencer |
Public Attributes inherited from sbIMediacoreFactoryRegistrar | |
| readonly attribute nsIArray | factories |
| readonly attribute nsIArray | instances |
Public Attributes inherited from sbIMediacoreVideoWindow | |
| attribute boolean | fullscreen |
| Video window fullscreen attribute. More... | |
| attribute nsIDOMXULElement | videoWindow |
| DOM XUL Element used as the video box. More... | |
Static Public Attributes inherited from sbBaseMediacoreMultibandEqualizer | |
| static const nsEmbedString | NO_PRESET = NS_LITERAL_STRING("") |
| Value of currentPResetName if the equalizer is not set by a preset. This value is set as empty string (""). More... | |
| static const PRUint32 | EQUALIZER_BAND_COUNT_DEFAULT = 10 |
| Suggested default band count for the equalizer. This value is defined as 10. More... | |
| static const PRUint32 | EQUALIZER_BANDS_10 [10] |
| Suggested bands for a 10 band equalizer. More... | |
Protected Types inherited from sbBaseMediacoreMultibandEqualizer | |
| typedef nsInterfaceHashtable < nsUint32HashKey, sbIMediacoreEqualizerBand > | eqbands_t |
Definition at line 56 of file sbMediacoreManager.h.
| nsISupportsWeakReference sbMediacoreManager::sbMediacoreManager | ( | ) |
"this" is used to construct mBaseEventTarget but it's not accessed till after construction is complete so this is safe.
Definition at line 141 of file sbMediacoreManager.cpp.
|
protectedvirtual |
Definition at line 160 of file sbMediacoreManager.cpp.
| nsresult sbMediacoreManager::CreateDataRemoteForEqualizerBand | ( | PRUint32 | aBandIndex, |
| sbIDataRemote ** | aRemote | ||
| ) |
|
protected |
| nsresult sbMediacoreManager::GetAndEnsureEQBandHasDataRemote | ( | PRUint32 | aBandIndex, |
| sbIDataRemote ** | aRemote | ||
| ) |
Definition at line 755 of file sbMediacoreManager.cpp.
| nsresult sbMediacoreManager::Init | ( | ) |
| nsresult sbMediacoreManager::InitVideoDataRemotes | ( | ) |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
virtual |
Reimplemented from sbBaseMediacoreMultibandEqualizer.
Definition at line 670 of file sbMediacoreManager.cpp.
|
virtual |
Reimplemented from sbBaseMediacoreMultibandEqualizer.
Definition at line 644 of file sbMediacoreManager.cpp.
|
virtual |
Reimplemented from sbBaseMediacoreMultibandEqualizer.
Definition at line 558 of file sbMediacoreManager.cpp.
|
virtual |
Reimplemented from sbBaseMediacoreVolumeControl.
Definition at line 872 of file sbMediacoreManager.cpp.
|
virtual |
Reimplemented from sbBaseMediacoreMultibandEqualizer.
Definition at line 727 of file sbMediacoreManager.cpp.
|
virtual |
Reimplemented from sbBaseMediacoreMultibandEqualizer.
Definition at line 606 of file sbMediacoreManager.cpp.
|
virtual |
Reimplemented from sbBaseMediacoreVolumeControl.
Definition at line 938 of file sbMediacoreManager.cpp.
|
virtual |
Reimplemented from sbBaseMediacoreVolumeControl.
Definition at line 966 of file sbMediacoreManager.cpp.
| nsresult sbMediacoreManager::PreShutdown | ( | ) |
Definition at line 302 of file sbMediacoreManager.cpp.
| nsresult sbMediacoreManager::SetAndEnsureEQBandHasDataRemote | ( | sbIMediacoreEqualizerBand * | aBand | ) |
Definition at line 777 of file sbMediacoreManager.cpp.
| nsresult sbMediacoreManager::SetVolumeDataRemote | ( | PRFloat64 | aVolume | ) |
Definition at line 996 of file sbMediacoreManager.cpp.
| nsresult sbMediacoreManager::Shutdown | ( | ) |
| nsresult sbMediacoreManager::VideoWindowUnloaded | ( | ) |
Definition at line 860 of file sbMediacoreManager.cpp.
|
protected |
|
protected |
Definition at line 118 of file sbMediacoreManager.h.
|
protected |
Definition at line 118 of file sbMediacoreManager.h.
|
protected |
Definition at line 145 of file sbMediacoreManager.h.
|
protected |
Definition at line 140 of file sbMediacoreManager.h.
|
protected |
Definition at line 148 of file sbMediacoreManager.h.
|
protected |
Definition at line 147 of file sbMediacoreManager.h.
|
protected |
Definition at line 151 of file sbMediacoreManager.h.
|
protected |
Definition at line 150 of file sbMediacoreManager.h.
|
protected |
Definition at line 152 of file sbMediacoreManager.h.
|
protected |
Definition at line 141 of file sbMediacoreManager.h.
|
protected |
Definition at line 154 of file sbMediacoreManager.h.
|
protected |
Definition at line 138 of file sbMediacoreManager.h.
|
protected |
Definition at line 158 of file sbMediacoreManager.h.
|
protected |
Definition at line 137 of file sbMediacoreManager.h.
|
protected |
Definition at line 143 of file sbMediacoreManager.h.
|
protected |
Definition at line 144 of file sbMediacoreManager.h.
|
protected |
Definition at line 157 of file sbMediacoreManager.h.
|
protected |
Definition at line 156 of file sbMediacoreManager.h.