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
Expand all
Hide 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
This diff is collapsed.
Click to expand it.
mozilla/support/npwin.cpp
View file @
9a31042d
This diff is collapsed.
Click to expand it.
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