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
b25aa5bf
Commit
b25aa5bf
authored
Aug 04, 2009
by
JP Dinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace #if XP_SYMBOL with #if defined(XP_SYMBOL) for consistency.
parent
2819748e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
projects/mozilla/vlcplugin.cpp
projects/mozilla/vlcplugin.cpp
+4
-4
projects/mozilla/vlcplugin.h
projects/mozilla/vlcplugin.h
+4
-4
projects/mozilla/vlcshell.cpp
projects/mozilla/vlcshell.cpp
+2
-2
No files found.
projects/mozilla/vlcplugin.cpp
View file @
b25aa5bf
...
@@ -54,10 +54,10 @@ VlcPlugin::VlcPlugin( NPP instance, uint16 mode ) :
...
@@ -54,10 +54,10 @@ VlcPlugin::VlcPlugin( NPP instance, uint16 mode ) :
p_scriptClass
(
NULL
),
p_scriptClass
(
NULL
),
p_browser
(
instance
),
p_browser
(
instance
),
psz_baseURL
(
NULL
)
psz_baseURL
(
NULL
)
#if
XP_WIN
#if
defined(XP_WIN)
,
pf_wndproc
(
NULL
)
,
pf_wndproc
(
NULL
)
#endif
#endif
#if
XP_UNIX
#if
defined(XP_UNIX)
,
i_width
((
unsigned
)
-
1
)
,
i_width
((
unsigned
)
-
1
)
,
i_height
((
unsigned
)
-
1
)
,
i_height
((
unsigned
)
-
1
)
,
i_tb_width
(
0
)
,
i_tb_width
(
0
)
...
@@ -74,7 +74,7 @@ VlcPlugin::VlcPlugin( NPP instance, uint16 mode ) :
...
@@ -74,7 +74,7 @@ VlcPlugin::VlcPlugin( NPP instance, uint16 mode ) :
#endif
#endif
{
{
memset
(
&
npwindow
,
0
,
sizeof
(
NPWindow
));
memset
(
&
npwindow
,
0
,
sizeof
(
NPWindow
));
#if
XP_UNIX
#if
defined(XP_UNIX)
memset
(
&
npvideo
,
0
,
sizeof
(
Window
));
memset
(
&
npvideo
,
0
,
sizeof
(
Window
));
memset
(
&
npcontrol
,
0
,
sizeof
(
Window
));
memset
(
&
npcontrol
,
0
,
sizeof
(
Window
));
#endif
#endif
...
@@ -586,7 +586,7 @@ relativeurl:
...
@@ -586,7 +586,7 @@ relativeurl:
return
NULL
;
return
NULL
;
}
}
#if
XP_UNIX
#if
defined(XP_UNIX)
int
VlcPlugin
::
setSize
(
unsigned
width
,
unsigned
height
)
int
VlcPlugin
::
setSize
(
unsigned
width
,
unsigned
height
)
{
{
int
diff
=
(
width
!=
i_width
)
||
(
height
!=
i_height
);
int
diff
=
(
width
!=
i_width
)
||
(
height
!=
i_height
);
...
...
projects/mozilla/vlcplugin.h
View file @
b25aa5bf
...
@@ -108,14 +108,14 @@ public:
...
@@ -108,14 +108,14 @@ public:
NPClass
*
getScriptClass
()
NPClass
*
getScriptClass
()
{
return
p_scriptClass
;
};
{
return
p_scriptClass
;
};
#if
XP_WIN
#if
defined(XP_WIN)
WNDPROC
getWindowProc
()
WNDPROC
getWindowProc
()
{
return
pf_wndproc
;
};
{
return
pf_wndproc
;
};
void
setWindowProc
(
WNDPROC
wndproc
)
void
setWindowProc
(
WNDPROC
wndproc
)
{
pf_wndproc
=
wndproc
;
};
{
pf_wndproc
=
wndproc
;
};
#endif
#endif
#if
XP_UNIX
#if
defined(XP_UNIX)
int
setSize
(
unsigned
width
,
unsigned
height
);
int
setSize
(
unsigned
width
,
unsigned
height
);
Window
getVideoWindow
()
Window
getVideoWindow
()
{
return
npvideo
;
};
{
return
npvideo
;
};
...
@@ -214,10 +214,10 @@ private:
...
@@ -214,10 +214,10 @@ private:
/* display settings */
/* display settings */
NPWindow
npwindow
;
NPWindow
npwindow
;
#if
XP_WIN
#if
defined(XP_WIN)
WNDPROC
pf_wndproc
;
WNDPROC
pf_wndproc
;
#endif
#endif
#if
XP_UNIX
#if
defined(XP_UNIX)
unsigned
int
i_width
,
i_height
;
unsigned
int
i_width
,
i_height
;
unsigned
int
i_tb_width
,
i_tb_height
;
unsigned
int
i_tb_width
,
i_tb_height
;
Window
npvideo
,
npcontrol
;
Window
npvideo
,
npcontrol
;
...
...
projects/mozilla/vlcshell.cpp
View file @
b25aa5bf
...
@@ -330,7 +330,7 @@ NPError NPP_Destroy( NPP instance, NPSavedData** save )
...
@@ -330,7 +330,7 @@ NPError NPP_Destroy( NPP instance, NPSavedData** save )
instance
->
pdata
=
NULL
;
instance
->
pdata
=
NULL
;
#if
XP_WIN
#if
defined(XP_WIN)
HWND
win
=
(
HWND
)
p_plugin
->
getWindow
().
window
;
HWND
win
=
(
HWND
)
p_plugin
->
getWindow
().
window
;
WNDPROC
winproc
=
p_plugin
->
getWindowProc
();
WNDPROC
winproc
=
p_plugin
->
getWindowProc
();
if
(
winproc
)
if
(
winproc
)
...
@@ -723,7 +723,7 @@ void NPP_Print( NPP instance, NPPrint* printInfo )
...
@@ -723,7 +723,7 @@ void NPP_Print( NPP instance, NPPrint* printInfo )
/******************************************************************************
/******************************************************************************
* Windows-only methods
* Windows-only methods
*****************************************************************************/
*****************************************************************************/
#if
XP_WIN
#if
defined(XP_WIN)
static
LRESULT
CALLBACK
Manage
(
HWND
p_hwnd
,
UINT
i_msg
,
WPARAM
wpar
,
LPARAM
lpar
)
static
LRESULT
CALLBACK
Manage
(
HWND
p_hwnd
,
UINT
i_msg
,
WPARAM
wpar
,
LPARAM
lpar
)
{
{
VlcPlugin
*
p_plugin
=
reinterpret_cast
<
VlcPlugin
*>
(
GetWindowLongPtr
(
p_hwnd
,
GWLP_USERDATA
));
VlcPlugin
*
p_plugin
=
reinterpret_cast
<
VlcPlugin
*>
(
GetWindowLongPtr
(
p_hwnd
,
GWLP_USERDATA
));
...
...
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