summaryrefslogtreecommitdiff
path: root/browser-plugin/totemPlugin.h
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2008-02-15 23:52:58 +0000
committerBastien Nocera <hadess@src.gnome.org>2008-02-15 23:52:58 +0000
commit94a55a51f0ec3a6e4480c42c191fd070e85175a2 (patch)
tree1969d6feab94ae867738556afaeb82d299ee7f0c /browser-plugin/totemPlugin.h
parent29da9fdb2c822234851629ac2abb3cc2c766afe7 (diff)
downloadtotem-94a55a51f0ec3a6e4480c42c191fd070e85175a2.tar.gz
Implement a property change signal when fullscreen state or volume changes
2008-02-15 Bastien Nocera <hadess@hadess.net> * browser-plugin/org_gnome_totem_PluginViewer.xml: * browser-plugin/totem-plugin-viewer-constants.h: * browser-plugin/totempluginviewer-marshal.list: * browser-plugin/totem-plugin-viewer.c: (totem_embedded_class_init), (totem_embedded_save_volume), (totem_embedded_stop), (totem_embedded_set_volume), (totem_embedded_set_fullscreen), (totem_embedded_toggle_fullscreen), (cb_vol), (on_tick), (totem_embedded_action_volume_relative), (totem_embedded_construct): Implement a property change signal when fullscreen state or volume changes * browser-plugin/totemPlugin.cpp: * browser-plugin/totemPlugin.h: As above and implement SetFullscreen() * browser-plugin/totemComplexPlugin.cpp: * browser-plugin/totemComplexPlugin.h: * browser-plugin/totemGMPSettings.cpp: * browser-plugin/totemGMPSettings.h: * browser-plugin/totemNarrowSpacePlugin.cpp: * browser-plugin/totemNarrowSpacePlugin.h: Fix for changes above * browser-plugin/totemConePlugin.cpp: * browser-plugin/totemConePlugin.h: Implement ToggleFullscreen/ToggleMute, state, mute, volume and fullscreen properties (Closes: #462544) svn path=/trunk/; revision=5132
Diffstat (limited to 'browser-plugin/totemPlugin.h')
-rw-r--r--browser-plugin/totemPlugin.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/browser-plugin/totemPlugin.h b/browser-plugin/totemPlugin.h
index 67c06b738..fb433a825 100644
--- a/browser-plugin/totemPlugin.h
+++ b/browser-plugin/totemPlugin.h
@@ -62,6 +62,7 @@ class totemPlugin {
nsresult SetVolume (gdouble aVolume);
nsresult ClearPlaylist (void);
nsresult AddItem (const nsACString &aURI);
+ nsresult SetFullscreen (gboolean enabled);
nsresult SetSrc (const nsACString &aURL);
@@ -125,6 +126,10 @@ class totemPlugin {
guint aDuration,
char *aState,
void *aData);
+ static void PR_CALLBACK PropertyChangeCallback (DBusGProxy *proxy,
+ const char *type,
+ GValue *value,
+ void *aData);
static void PR_CALLBACK ViewerSetWindowCallback (DBusGProxy *aProxy,
DBusGProxyCall *aCall,
@@ -213,6 +218,8 @@ class totemPlugin {
PRUint32 mTime;
PRUint32 mDuration;
TotemStates mState;
+ double mVolume;
+ PRBool mIsFullscreen;
#ifdef TOTEM_GMP_PLUGIN
public: