Commit 15ae1642 authored by Daniel Amm's avatar Daniel Amm Committed by Jean-Baptiste Kempf

activex: remove useless events

These are remnants of the old v1 activex plugin
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent c3909b94
...@@ -63,11 +63,6 @@ library AXVLC ...@@ -63,11 +63,6 @@ library AXVLC
const int DISPID_Visible = 100; const int DISPID_Visible = 100;
const int DISPID_PlayEvent = 100;
const int DISPID_PauseEvent = 101;
const int DISPID_StopEvent = 102;
/* async events from libvlc */ /* async events from libvlc */
const int DISPID_MediaPlayerNothingSpecialEvent = 200; const int DISPID_MediaPlayerNothingSpecialEvent = 200;
const int DISPID_MediaPlayerOpeningEvent = 201; const int DISPID_MediaPlayerOpeningEvent = 201;
...@@ -96,14 +91,7 @@ library AXVLC ...@@ -96,14 +91,7 @@ library AXVLC
{ {
properties: properties:
methods: methods:
[id(DISPID_PlayEvent), helpstring("Playing")] /* async events from libvlc */
void play();
[id(DISPID_PauseEvent), helpstring("Paused")]
void pause();
[id(DISPID_StopEvent), helpstring("Stopped")]
void stop();
/* asyn events from libvlc */
[id(DISPID_MediaPlayerNothingSpecialEvent), helpstring("Idle state")] [id(DISPID_MediaPlayerNothingSpecialEvent), helpstring("Idle state")]
void MediaPlayerNothingSpecial(); void MediaPlayerNothingSpecial();
[id(DISPID_MediaPlayerOpeningEvent), helpstring("Opening media")] [id(DISPID_MediaPlayerOpeningEvent), helpstring("Opening media")]
......
...@@ -705,10 +705,7 @@ BOOL VLCPlugin::getFullscreen() ...@@ -705,10 +705,7 @@ BOOL VLCPlugin::getFullscreen()
HRESULT VLCPlugin::onInPlaceDeactivate(void) HRESULT VLCPlugin::onInPlaceDeactivate(void)
{ {
if( m_player.mlp().isPlaying() ) if( m_player.mlp().isPlaying() )
{
m_player.mlp().stop(); m_player.mlp().stop();
fireOnStopEvent();
}
_WindowsManager.DestroyWindows(); _WindowsManager.DestroyWindows();
...@@ -957,24 +954,6 @@ void VLCPlugin::firePropChangedEvent(DISPID dispid) ...@@ -957,24 +954,6 @@ void VLCPlugin::firePropChangedEvent(DISPID dispid)
vlcConnectionPointContainer->firePropChangedEvent(dispid); vlcConnectionPointContainer->firePropChangedEvent(dispid);
}; };
void VLCPlugin::fireOnPlayEvent(void)
{
DISPPARAMS dispparamsNoArgs = {NULL, NULL, 0, 0};
vlcConnectionPointContainer->fireEvent(DISPID_PlayEvent, &dispparamsNoArgs);
};
void VLCPlugin::fireOnPauseEvent(void)
{
DISPPARAMS dispparamsNoArgs = {NULL, NULL, 0, 0};
vlcConnectionPointContainer->fireEvent(DISPID_PauseEvent, &dispparamsNoArgs);
};
void VLCPlugin::fireOnStopEvent(void)
{
DISPPARAMS dispparamsNoArgs = {NULL, NULL, 0, 0};
vlcConnectionPointContainer->fireEvent(DISPID_StopEvent, &dispparamsNoArgs);
};
/* /*
* Async events * Async events
*/ */
......
...@@ -242,10 +242,6 @@ public: ...@@ -242,10 +242,6 @@ public:
*/ */
void freezeEvents(BOOL freeze); void freezeEvents(BOOL freeze);
void firePropChangedEvent(DISPID dispid); void firePropChangedEvent(DISPID dispid);
//FIXME: I'm fairly convinced this 3 events are useless.
void fireOnPlayEvent(void);
void fireOnPauseEvent(void);
void fireOnStopEvent(void);
// async events; // async events;
void fireOnMediaPlayerNothingSpecialEvent(); void fireOnMediaPlayerNothingSpecialEvent();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment