Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
9a31042d
Commit
9a31042d
authored
Mar 20, 2007
by
Damien Fouilleul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- mozilla: formatting, cleanup, and NPN_SetValue/NPP_SetValue support
parent
b77f2f8b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
153 additions
and
138 deletions
+153
-138
mozilla/support/npmac.cpp
mozilla/support/npmac.cpp
+2
-2
mozilla/support/npunix.c
mozilla/support/npunix.c
+45
-44
mozilla/support/npwin.cpp
mozilla/support/npwin.cpp
+90
-90
mozilla/vlcshell.cpp
mozilla/vlcshell.cpp
+16
-2
No files found.
mozilla/support/npmac.cpp
View file @
9a31042d
...
@@ -667,7 +667,7 @@ NPError Private_GetValue( NPP instance, NPPVariable variable, void *value )
...
@@ -667,7 +667,7 @@ NPError Private_GetValue( NPP instance, NPPVariable variable, void *value )
NPError
err
;
NPError
err
;
EnterCodeResource
();
EnterCodeResource
();
PLUGINDEBUGSTR
(
"\pGetValue;g;"
);
PLUGINDEBUGSTR
(
"\pGetValue;g;"
);
err
=
NPP_GetValue
(
instance
,
variable
,
value
);
err
=
NPP_GetValue
(
instance
,
variable
,
value
);
ExitCodeResource
();
ExitCodeResource
();
return
err
;
return
err
;
}
}
...
@@ -677,7 +677,7 @@ NPError Private_SetValue( NPP instance, NPNVariable variable, void *value )
...
@@ -677,7 +677,7 @@ NPError Private_SetValue( NPP instance, NPNVariable variable, void *value )
NPError
err
;
NPError
err
;
EnterCodeResource
();
EnterCodeResource
();
PLUGINDEBUGSTR
(
"\pSetValue;g;"
);
PLUGINDEBUGSTR
(
"\pSetValue;g;"
);
err
=
NP
ERR_NO_ERROR
;
//NPP_SetValue(
instance, variable, value);
err
=
NP
P_SetValue
(
instance
,
variable
,
value
);
ExitCodeResource
();
ExitCodeResource
();
return
err
;
return
err
;
}
}
...
...
mozilla/support/npunix.c
View file @
9a31042d
...
@@ -517,14 +517,14 @@ NPError
...
@@ -517,14 +517,14 @@ NPError
Private_GetValue
(
NPP
instance
,
NPPVariable
variable
,
void
*
r_value
)
Private_GetValue
(
NPP
instance
,
NPPVariable
variable
,
void
*
r_value
)
{
{
PLUGINDEBUGSTR
(
"GetValue"
);
PLUGINDEBUGSTR
(
"GetValue"
);
return
NPP_GetValue
(
instance
,
variable
,
r_value
);
return
NPP_GetValue
(
instance
,
variable
,
r_value
);
}
}
NPError
NPError
Private_SetValue
(
NPP
instance
,
NPPVariable
variable
,
void
*
r_value
)
Private_SetValue
(
NPP
instance
,
NPPVariable
variable
,
void
*
r_value
)
{
{
PLUGINDEBUGSTR
(
"SetValue"
);
PLUGINDEBUGSTR
(
"SetValue"
);
return
NP
ERR_NO_ERROR
;
//NP
P_SetValue(instance, variable, r_value);
return
NPP_SetValue
(
instance
,
variable
,
r_value
);
}
}
JRIGlobalRef
JRIGlobalRef
...
@@ -697,6 +697,7 @@ NP_Initialize(NPNetscapeFuncs* nsTable, NPPluginFuncs* pluginFuncs)
...
@@ -697,6 +697,7 @@ NP_Initialize(NPNetscapeFuncs* nsTable, NPPluginFuncs* pluginFuncs)
pluginFuncs
->
print
=
NewNPP_PrintProc
(
Private_Print
);
pluginFuncs
->
print
=
NewNPP_PrintProc
(
Private_Print
);
pluginFuncs
->
event
=
NULL
;
pluginFuncs
->
event
=
NULL
;
pluginFuncs
->
getvalue
=
NewNPP_GetValueProc
(
Private_GetValue
);
pluginFuncs
->
getvalue
=
NewNPP_GetValueProc
(
Private_GetValue
);
pluginFuncs
->
setvalue
=
NewNPP_SetValueProc
(
Private_SetValue
);
if
(
navMinorVers
>=
NPVERS_HAS_NOTIFICATION
)
if
(
navMinorVers
>=
NPVERS_HAS_NOTIFICATION
)
{
{
pluginFuncs
->
urlnotify
=
NewNPP_URLNotifyProc
(
Private_URLNotify
);
pluginFuncs
->
urlnotify
=
NewNPP_URLNotifyProc
(
Private_URLNotify
);
...
...
mozilla/support/npwin.cpp
View file @
9a31042d
...
@@ -117,7 +117,7 @@ NP_GetEntryPoints(NPPluginFuncs* pFuncs)
...
@@ -117,7 +117,7 @@ NP_GetEntryPoints(NPPluginFuncs* pFuncs)
pFuncs
->
print
=
NPP_Print
;
pFuncs
->
print
=
NPP_Print
;
pFuncs
->
event
=
0
;
/// reserved
pFuncs
->
event
=
0
;
/// reserved
pFuncs
->
getvalue
=
NPP_GetValue
;
pFuncs
->
getvalue
=
NPP_GetValue
;
//pFuncs->setvalue
= NPP_SetValue;
pFuncs
->
setvalue
=
NPP_SetValue
;
g_pluginFuncs
=
pFuncs
;
g_pluginFuncs
=
pFuncs
;
...
...
mozilla/vlcshell.cpp
View file @
9a31042d
...
@@ -133,6 +133,16 @@ NPError NPP_GetValue( NPP instance, NPPVariable variable, void *value )
...
@@ -133,6 +133,16 @@ NPError NPP_GetValue( NPP instance, NPPVariable variable, void *value )
return
NPERR_NO_ERROR
;
return
NPERR_NO_ERROR
;
}
}
/*
* there is some confusion in gecko headers regarding definition of this API
* NPPVariable is wrongly defined as NPNVariable, which sounds incorrect.
*/
NPError
NPP_SetValue
(
NPP
instance
,
NPNVariable
variable
,
void
*
value
)
{
return
NPERR_GENERIC_ERROR
;
}
/******************************************************************************
/******************************************************************************
* Mac-only API calls
* Mac-only API calls
*****************************************************************************/
*****************************************************************************/
...
@@ -287,10 +297,14 @@ NPError NPP_New( NPMIMEType pluginType, NPP instance, uint16 mode, int16 argc,
...
@@ -287,10 +297,14 @@ NPError NPP_New( NPMIMEType pluginType, NPP instance, uint16 mode, int16 argc,
}
}
status
=
p_plugin
->
init
(
argc
,
argn
,
argv
);
status
=
p_plugin
->
init
(
argc
,
argn
,
argv
);
if
(
NPERR_NO_ERROR
==
status
)
{
if
(
NPERR_NO_ERROR
==
status
)
{
instance
->
pdata
=
reinterpret_cast
<
void
*>
(
p_plugin
);
instance
->
pdata
=
reinterpret_cast
<
void
*>
(
p_plugin
);
//NPN_SetValue(instance, NPPVpluginWindowBool, (void *)false);
NPN_SetValue
(
instance
,
NPPVpluginTransparentBool
,
(
void
*
)
false
);
}
}
else
{
else
{
delete
p_plugin
;
delete
p_plugin
;
}
}
return
status
;
return
status
;
...
...
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