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
37350bde
Commit
37350bde
authored
Mar 23, 2010
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mozilla: Make fullscreen work
parent
8308fdd2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
67 additions
and
8 deletions
+67
-8
projects/mozilla/support/npunix.c
projects/mozilla/support/npunix.c
+10
-1
projects/mozilla/vlcshell.cpp
projects/mozilla/vlcshell.cpp
+54
-1
projects/mozilla/vlcshell.h
projects/mozilla/vlcshell.h
+3
-6
No files found.
projects/mozilla/support/npunix.c
View file @
37350bde
...
@@ -636,6 +636,7 @@ void Private_URLNotify(NPP instance, const char* url,
...
@@ -636,6 +636,7 @@ void Private_URLNotify(NPP instance, const char* url,
void
Private_Print
(
NPP
instance
,
NPPrint
*
platformPrint
);
void
Private_Print
(
NPP
instance
,
NPPrint
*
platformPrint
);
NPError
Private_GetValue
(
NPP
instance
,
NPPVariable
variable
,
void
*
r_value
);
NPError
Private_GetValue
(
NPP
instance
,
NPPVariable
variable
,
void
*
r_value
);
NPError
Private_SetValue
(
NPP
instance
,
NPPVariable
variable
,
void
*
r_value
);
NPError
Private_SetValue
(
NPP
instance
,
NPPVariable
variable
,
void
*
r_value
);
int16_t
Private_HandleEvent
(
NPP
instance
,
void
*
event
);
#ifdef OJI
#ifdef OJI
JRIGlobalRef
Private_GetJavaClass
(
void
);
JRIGlobalRef
Private_GetJavaClass
(
void
);
#endif
#endif
...
@@ -742,6 +743,13 @@ Private_SetValue(NPP instance, NPPVariable variable, void *r_value)
...
@@ -742,6 +743,13 @@ Private_SetValue(NPP instance, NPPVariable variable, void *r_value)
return
NPP_SetValue
(
instance
,
variable
,
r_value
);
return
NPP_SetValue
(
instance
,
variable
,
r_value
);
}
}
int16_t
Private_HandleEvent
(
NPP
instance
,
void
*
event
)
{
PLUGINDEBUGSTR
(
"HandleEvent"
);
return
NPP_HandleEvent
(
instance
,
event
);
}
#ifdef OJI
#ifdef OJI
JRIGlobalRef
JRIGlobalRef
Private_GetJavaClass
(
void
)
Private_GetJavaClass
(
void
)
...
@@ -960,6 +968,7 @@ NP_Initialize(NPNetscapeFuncs* nsTable, NPPluginFuncs* pluginFuncs)
...
@@ -960,6 +968,7 @@ NP_Initialize(NPNetscapeFuncs* nsTable, NPPluginFuncs* pluginFuncs)
pluginFuncs
->
print
=
NewNPP_PrintProc
(
Private_Print
);
pluginFuncs
->
print
=
NewNPP_PrintProc
(
Private_Print
);
pluginFuncs
->
getvalue
=
NewNPP_GetValueProc
(
Private_GetValue
);
pluginFuncs
->
getvalue
=
NewNPP_GetValueProc
(
Private_GetValue
);
pluginFuncs
->
setvalue
=
NewNPP_SetValueProc
(
Private_SetValue
);
pluginFuncs
->
setvalue
=
NewNPP_SetValueProc
(
Private_SetValue
);
pluginFuncs
->
event
=
NewNPP_HandleEventProc
(
Private_HandleEvent
);
#else
#else
pluginFuncs
->
newp
=
(
NPP_NewProcPtr
)(
Private_New
);
pluginFuncs
->
newp
=
(
NPP_NewProcPtr
)(
Private_New
);
pluginFuncs
->
destroy
=
(
NPP_DestroyProcPtr
)(
Private_Destroy
);
pluginFuncs
->
destroy
=
(
NPP_DestroyProcPtr
)(
Private_Destroy
);
...
@@ -972,8 +981,8 @@ NP_Initialize(NPNetscapeFuncs* nsTable, NPPluginFuncs* pluginFuncs)
...
@@ -972,8 +981,8 @@ NP_Initialize(NPNetscapeFuncs* nsTable, NPPluginFuncs* pluginFuncs)
pluginFuncs
->
print
=
(
NPP_PrintProcPtr
)(
Private_Print
);
pluginFuncs
->
print
=
(
NPP_PrintProcPtr
)(
Private_Print
);
pluginFuncs
->
getvalue
=
(
NPP_GetValueProcPtr
)(
Private_GetValue
);
pluginFuncs
->
getvalue
=
(
NPP_GetValueProcPtr
)(
Private_GetValue
);
pluginFuncs
->
setvalue
=
(
NPP_SetValueProcPtr
)(
Private_SetValue
);
pluginFuncs
->
setvalue
=
(
NPP_SetValueProcPtr
)(
Private_SetValue
);
pluginFuncs
->
event
=
(
NPP_HandleEventProcPtr
)(
Private_HandleEvent
);
#endif
#endif
pluginFuncs
->
event
=
NULL
;
if
(
minor
>=
NPVERS_HAS_NOTIFICATION
)
if
(
minor
>=
NPVERS_HAS_NOTIFICATION
)
{
{
#if (((NP_VERSION_MAJOR << 8) + NP_VERSION_MINOR) < 20)
#if (((NP_VERSION_MAJOR << 8) + NP_VERSION_MINOR) < 20)
...
...
projects/mozilla/vlcshell.cpp
View file @
37350bde
...
@@ -262,7 +262,60 @@ int16 NPP_HandleEvent( NPP instance, void * event )
...
@@ -262,7 +262,60 @@ int16 NPP_HandleEvent( NPP instance, void * event )
}
}
return
false
;
return
false
;
}
}
#endif
/* XP_MACOSX */
#elif defined(XP_UNIX)
int16
NPP_HandleEvent
(
NPP
instance
,
void
*
event
)
{
static
Time
lastMouseUp
=
0
;
if
(
instance
==
NULL
)
return
false
;
VlcPlugin
*
p_plugin
=
reinterpret_cast
<
VlcPlugin
*>
(
instance
->
pdata
);
if
(
p_plugin
==
NULL
)
return
false
;
XEvent
*
xevent
=
(
XEvent
*
)
event
;
switch
(
xevent
->
type
)
{
case
ButtonPress
:
{
XButtonEvent
*
btn
=
(
XButtonEvent
*
)
xevent
;
if
(
btn
->
time
-
lastMouseUp
<
500
/*FIXME: in ms*/
)
p_plugin
->
toggle_fullscreen
();
return
true
;
}
case
ButtonRelease
:
{
XButtonEvent
*
btn
=
(
XButtonEvent
*
)
xevent
;
lastMouseUp
=
btn
->
time
;
return
true
;
}
default:
break
;
}
return
false
;
}
#elif defined(XP_WIN)
#if 0 // FIXME: disabled for now
int16 NPP_HandleEvent( NPP instance, void *event )
{
if( instance == NULL )
return false;
VlcPlugin* p_plugin = reinterpret_cast<VlcPlugin*>(instance->pdata);
if( p_plugin == NULL )
return false;
switch( event->event )
{
case WM_LBUTTONDBLCLK:
p_plugin->toggle_fullscreen();
return true;
default: break;
}
return false;
}
#endif
#endif
/* XP_WIN */
/******************************************************************************
/******************************************************************************
* General Plug-in Calls
* General Plug-in Calls
...
...
projects/mozilla/vlcshell.h
View file @
37350bde
...
@@ -44,7 +44,6 @@ NPError NPP_Destroy( NPP instance, NPSavedData** save );
...
@@ -44,7 +44,6 @@ NPError NPP_Destroy( NPP instance, NPSavedData** save );
NPError
NPP_GetValue
(
NPP
instance
,
NPPVariable
variable
,
void
*
value
);
NPError
NPP_GetValue
(
NPP
instance
,
NPPVariable
variable
,
void
*
value
);
NPError
NPP_SetValue
(
NPP
instance
,
NPNVariable
variable
,
void
*
value
);
NPError
NPP_SetValue
(
NPP
instance
,
NPNVariable
variable
,
void
*
value
);
NPError
NPP_SetWindow
(
NPP
instance
,
NPWindow
*
window
);
NPError
NPP_SetWindow
(
NPP
instance
,
NPWindow
*
window
);
NPError
NPP_NewStream
(
NPP
instance
,
NPMIMEType
type
,
NPStream
*
stream
,
NPError
NPP_NewStream
(
NPP
instance
,
NPMIMEType
type
,
NPStream
*
stream
,
...
@@ -70,7 +69,9 @@ void NPP_URLNotify( NPP instance, const char* url,
...
@@ -70,7 +69,9 @@ void NPP_URLNotify( NPP instance, const char* url,
NPReason
reason
,
void
*
notifyData
);
NPReason
reason
,
void
*
notifyData
);
void
NPP_Print
(
NPP
instance
,
NPPrint
*
printInfo
);
void
NPP_Print
(
NPP
instance
,
NPPrint
*
printInfo
);
#ifdef XP_MACOSX
#ifdef XP_WIN
void
ScheduleAsyncCall
(
HWND
p_hwnd
,
void
(
*
func
)(
void
*
),
void
*
userData
);
#else
/* XP_WIN */
#if (((NP_VERSION_MAJOR << 8) + NP_VERSION_MINOR) < 20)
#if (((NP_VERSION_MAJOR << 8) + NP_VERSION_MINOR) < 20)
int16
NPP_HandleEvent
(
NPP
instance
,
void
*
event
);
int16
NPP_HandleEvent
(
NPP
instance
,
void
*
event
);
#else
#else
...
@@ -78,8 +79,4 @@ int16_t NPP_HandleEvent( NPP instance, void * event );
...
@@ -78,8 +79,4 @@ int16_t NPP_HandleEvent( NPP instance, void * event );
#endif
#endif
#endif
#endif
#ifdef XP_WIN
void
ScheduleAsyncCall
(
HWND
p_hwnd
,
void
(
*
func
)(
void
*
),
void
*
userData
);
#endif
/* XP_WIN */
#endif
#endif
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