Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VLC Browser Plugins
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
VideoLAN
VLC Browser Plugins
Commits
46634a5c
Commit
46634a5c
authored
Dec 24, 2011
by
Sergey Radionov
Committed by
Jean-Baptiste Kempf
Dec 24, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
npapi win32: added support of Event Listeners
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
cbab6ffd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
npapi/support/npwin.cpp
npapi/support/npwin.cpp
+7
-0
npapi/vlcplugin_base.cpp
npapi/vlcplugin_base.cpp
+1
-1
No files found.
npapi/support/npwin.cpp
View file @
46634a5c
...
...
@@ -212,6 +212,13 @@ void NPN_Version(int* plugin_major, int* plugin_minor, int* netscape_major, int*
*
netscape_minor
=
LOBYTE
(
g_pNavigatorFuncs
->
version
);
}
void
NPN_PluginThreadAsyncCall
(
NPP
plugin
,
void
(
*
func
)(
void
*
),
void
*
userData
)
{
#if (((NP_VERSION_MAJOR << 8) + NP_VERSION_MINOR) >= 20)
(
g_pNavigatorFuncs
->
pluginthreadasynccall
)(
plugin
,
func
,
userData
);
#endif
}
NPError
NPN_GetValue
(
NPP
instance
,
NPNVariable
variable
,
void
*
result
)
{
return
g_pNavigatorFuncs
->
getvalue
(
instance
,
variable
,
result
);
...
...
npapi/vlcplugin_base.cpp
View file @
46634a5c
...
...
@@ -375,7 +375,7 @@ void VlcPluginBase::eventAsync(void *param)
void
VlcPluginBase
::
event_callback
(
const
libvlc_event_t
*
event
,
NPVariant
*
npparams
,
uint32_t
npcount
)
{
#if
def XP_UNIX
#if
defined(XP_UNIX) || defined(XP_WIN)
events
.
callback
(
event
,
npparams
,
npcount
);
NPN_PluginThreadAsyncCall
(
getBrowser
(),
eventAsync
,
this
);
#else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment