Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
06e51bc6
Commit
06e51bc6
authored
Jan 13, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 13, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Moved NPAPI struct declarations to npplugin.c.
They are no longer needed in nsiface.idl
parent
607e274f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
119 additions
and
121 deletions
+119
-121
npplugin.c
dlls/mshtml/npplugin.c
+119
-0
nsiface.idl
dlls/mshtml/nsiface.idl
+0
-121
No files found.
dlls/mshtml/npplugin.c
View file @
06e51bc6
...
...
@@ -37,6 +37,125 @@ WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
/* Parts of npapi.h */
#define NP_VERSION_MAJOR 0
#define NP_VERSION_MINOR 25
typedef
unsigned
char
NPBool
;
typedef
INT16
NPError
;
typedef
INT16
NPReason
;
typedef
char
*
NPMIMEType
;
typedef
struct
_NPP
{
void
*
pdata
;
void
*
ndata
;
}
NPP_t
,
*
NPP
;
typedef
struct
_NPStream
{
void
*
pdata
;
void
*
ndata
;
const
char
*
url
;
UINT32
end
;
UINT32
lastmodified
;
void
*
notifyData
;
const
char
*
headers
;
}
NPStream
;
typedef
struct
_NPSavedData
{
INT32
len
;
void
*
buf
;
}
NPSavedData
;
typedef
struct
_NPRect
{
UINT16
top
;
UINT16
left
;
UINT16
bottom
;
UINT16
right
;
}
NPRect
;
typedef
enum
{
NPFocusNext
=
0
,
NPFocusPrevious
=
1
}
NPFocusDirection
;
#define NP_ABI_MASK 0
typedef
enum
{
NPPVpluginNameString
=
1
,
NPPVpluginDescriptionString
,
NPPVpluginWindowBool
,
NPPVpluginTransparentBool
,
NPPVjavaClass
,
NPPVpluginWindowSize
,
NPPVpluginTimerInterval
,
NPPVpluginScriptableInstance
=
(
10
|
NP_ABI_MASK
),
NPPVpluginScriptableIID
=
11
,
NPPVjavascriptPushCallerBool
=
12
,
NPPVpluginKeepLibraryInMemory
=
13
,
NPPVpluginNeedsXEmbed
=
14
,
NPPVpluginScriptableNPObject
=
15
,
NPPVformValue
=
16
,
NPPVpluginUrlRequestsDisplayedBool
=
17
,
NPPVpluginWantsAllNetworkStreams
=
18
,
NPPVpluginNativeAccessibleAtkPlugId
=
19
,
NPPVpluginCancelSrcStream
=
20
,
NPPVSupportsAdvancedKeyHandling
=
21
}
NPPVariable
;
typedef
enum
{
NPNVxDisplay
=
1
,
NPNVxtAppContext
,
NPNVnetscapeWindow
,
NPNVjavascriptEnabledBool
,
NPNVasdEnabledBool
,
NPNVisOfflineBool
,
NPNVserviceManager
=
(
10
|
NP_ABI_MASK
),
NPNVDOMElement
=
(
11
|
NP_ABI_MASK
),
NPNVDOMWindow
=
(
12
|
NP_ABI_MASK
),
NPNVToolkit
=
(
13
|
NP_ABI_MASK
),
NPNVSupportsXEmbedBool
=
14
,
NPNVWindowNPObject
=
15
,
NPNVPluginElementNPObject
=
16
,
NPNVSupportsWindowless
=
17
,
NPNVprivateModeBool
=
18
,
NPNVsupportsAdvancedKeyHandling
=
21
}
NPNVariable
;
typedef
enum
{
NPWindowTypeWindow
=
1
,
NPWindowTypeDrawable
}
NPWindowType
;
typedef
struct
_NPWindow
{
void
*
window
;
INT32
x
;
INT32
y
;
UINT32
width
;
UINT32
height
;
NPRect
clipRect
;
NPWindowType
type
;
}
NPWindow
;
typedef
struct
_NPFullPrint
{
NPBool
pluginPrinted
;
NPBool
printOne
;
void
*
platformPrint
;
}
NPFullPrint
;
typedef
struct
_NPEmbedPrint
{
NPWindow
window
;
void
*
platformPrint
;
}
NPEmbedPrint
;
typedef
struct
_NPPrint
{
UINT16
mode
;
union
{
NPFullPrint
fullPrint
;
NPEmbedPrint
embedPrint
;
}
print
;
}
NPPrint
;
typedef
HRGN
NPRegion
;
#define NPERR_BASE 0
#define NPERR_NO_ERROR (NPERR_BASE + 0)
#define NPERR_GENERIC_ERROR (NPERR_BASE + 1)
...
...
dlls/mshtml/nsiface.idl
View file @
06e51bc6
...
...
@@ -3208,127 +3208,6 @@ interface nsIContentUtils : nsISupports
nsresult AddScriptRunner(nsIRunnable *aRunnable);
}
/* Parts of npapi.h */
cpp_quote("#define NP_VERSION_MAJOR 0")
cpp_quote("#define NP_VERSION_MINOR 25")
typedef unsigned char NPBool;
typedef INT16 NPError;
typedef INT16 NPReason;
typedef char *NPMIMEType;
typedef struct _NPP {
void *pdata;
void *ndata;
} NPP_t, *NPP;
typedef struct _NPStream {
void *pdata;
void *ndata;
const char *url;
UINT32 end;
UINT32 lastmodified;
void *notifyData;
const char *headers;
} NPStream;
typedef struct _NPSavedData {
INT32 len;
void *buf;
} NPSavedData;
typedef struct _NPRect {
UINT16 top;
UINT16 left;
UINT16 bottom;
UINT16 right;
} NPRect;
typedef enum {
NPFocusNext = 0,
NPFocusPrevious = 1
} NPFocusDirection;
#define NP_ABI_MASK 0
typedef enum {
NPPVpluginNameString = 1,
NPPVpluginDescriptionString,
NPPVpluginWindowBool,
NPPVpluginTransparentBool,
NPPVjavaClass,
NPPVpluginWindowSize,
NPPVpluginTimerInterval,
NPPVpluginScriptableInstance = (10 | NP_ABI_MASK),
NPPVpluginScriptableIID = 11,
NPPVjavascriptPushCallerBool = 12,
NPPVpluginKeepLibraryInMemory = 13,
NPPVpluginNeedsXEmbed = 14,
NPPVpluginScriptableNPObject = 15,
NPPVformValue = 16,
NPPVpluginUrlRequestsDisplayedBool = 17,
NPPVpluginWantsAllNetworkStreams = 18,
NPPVpluginNativeAccessibleAtkPlugId = 19,
NPPVpluginCancelSrcStream = 20,
NPPVSupportsAdvancedKeyHandling = 21
} NPPVariable;
typedef enum {
NPNVxDisplay = 1,
NPNVxtAppContext,
NPNVnetscapeWindow,
NPNVjavascriptEnabledBool,
NPNVasdEnabledBool,
NPNVisOfflineBool,
NPNVserviceManager = (10 | NP_ABI_MASK),
NPNVDOMElement = (11 | NP_ABI_MASK),
NPNVDOMWindow = (12 | NP_ABI_MASK),
NPNVToolkit = (13 | NP_ABI_MASK),
NPNVSupportsXEmbedBool = 14,
NPNVWindowNPObject = 15,
NPNVPluginElementNPObject = 16,
NPNVSupportsWindowless = 17,
NPNVprivateModeBool = 18,
NPNVsupportsAdvancedKeyHandling = 21
} NPNVariable;
typedef enum {
NPWindowTypeWindow = 1,
NPWindowTypeDrawable
} NPWindowType;
typedef struct _NPWindow {
void *window;
INT32 x;
INT32 y;
UINT32 width;
UINT32 height;
NPRect clipRect;
NPWindowType type;
} NPWindow;
typedef struct _NPFullPrint {
NPBool pluginPrinted;
NPBool printOne;
void *platformPrint;
} NPFullPrint;
typedef struct _NPEmbedPrint {
NPWindow window;
void *platformPrint;
} NPEmbedPrint;
typedef struct _NPPrint {
UINT16 mode;
union {
NPFullPrint fullPrint;
NPEmbedPrint embedPrint;
} print;
} NPPrint;
typedef HRGN NPRegion;
[
object,
uuid(8f672000-bab9-4c60-aaaf-2673c4e2a4c6),
...
...
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