|
1 /* |
|
2 * Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Thin wrapper around plugin's function table. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 #ifndef NPNIMPLEMENTATION_H |
|
23 #define NPNIMPLEMENTATION_H |
|
24 |
|
25 // INCLUDE FILES |
|
26 #include <e32std.h> |
|
27 #include <e32base.h> |
|
28 #include <eikenv.h> |
|
29 #include <npupp.h> |
|
30 #include <sysutil.h> |
|
31 |
|
32 |
|
33 NPError NpnGetUrl( NPP aInstance, const TDesC& aUrl, |
|
34 const TDesC* aWindowType ); |
|
35 |
|
36 |
|
37 NPError NpnPostUrl( NPP aInstance, const TDesC& aUrl, |
|
38 const TDesC* aWindowType, const TDesC& aBuf, NPBool aFile ); |
|
39 |
|
40 |
|
41 NPError NpnRequestRead( NPStream* /*aStream*/, |
|
42 NPByteRange* /*aRangeList*/ ); |
|
43 |
|
44 |
|
45 NPError NpnNewStream( NPP /*aInstance*/, NPMIMEType /*aType*/, |
|
46 const TDesC* /*aWindowType*/, NPStream** /*aStream*/ ); |
|
47 |
|
48 |
|
49 TInt32 NpnWrite( NPP /*aInstance*/, NPStream* /*aStream*/, |
|
50 TInt32 /*aLen*/, void* /*aBuffer*/ ); |
|
51 |
|
52 |
|
53 NPError NpnDestroyStream( NPP /*aInstance*/, |
|
54 NPStream* /*aStream*/, NPReason /*aReason*/ ); |
|
55 |
|
56 |
|
57 void NpnStatus( NPP /*aInstance*/, const TDesC& aMessage ); |
|
58 |
|
59 |
|
60 const TDesC* NpnUAgent( NPP /*aInstance*/ ); |
|
61 |
|
62 |
|
63 void* NpnMemAlloc( uint32 aSize ); |
|
64 |
|
65 |
|
66 void NpnMemFree( void* aPtr ); |
|
67 |
|
68 |
|
69 uint32 NpnMemFlush( uint32 /*aSize*/ ); |
|
70 |
|
71 |
|
72 void NpnReloadPlugins( NPBool aReloadPages ); |
|
73 |
|
74 |
|
75 JRIEnv* NpnGetJavaEnv(); |
|
76 |
|
77 |
|
78 jref NpnGetJavaPeer( NPP /*aInstance*/ ); |
|
79 |
|
80 |
|
81 NPError NpnGetUrlNotify( NPP aInstance, const TDesC& aUrl, |
|
82 const TDesC* aWindowType, void* aNotifyData ); |
|
83 |
|
84 |
|
85 NPError NpnPostUrlNotify( NPP aInstance, const TDesC& aUrl, |
|
86 const TDesC* aWindowType, const TDesC& aBuf, NPBool aFile, void* aNotifyData ); |
|
87 |
|
88 |
|
89 NPError NpnGetValue( NPP aInstance, NPNVariable aVariable, void *aRetValue ); |
|
90 |
|
91 |
|
92 NPError NpnSetValue( NPP aInstance, NPPVariable aVariable, void *aSetValue ); |
|
93 |
|
94 |
|
95 void NpnInvalidateRect( NPP /*aInstance*/, NPRect * /*aRect*/ ); |
|
96 |
|
97 |
|
98 void NpnInvalidateRegion( NPP /*aInstance*/, NPRegion /*aRegion*/ ); |
|
99 |
|
100 |
|
101 void NpnForceRedraw( NPP /*aInstance*/ ); |
|
102 |
|
103 |
|
104 |
|
105 // ----------------------------------------------------------------------------- |
|
106 // PluginNpnFuncs |
|
107 // |
|
108 // A const global variable used to hold the browser callback functions. |
|
109 // ----------------------------------------------------------------------------- |
|
110 // |
|
111 const NPNetscapeFuncs NpnImplementationFuncs = |
|
112 { |
|
113 sizeof( NPNetscapeFuncs ), |
|
114 1, // Version |
|
115 NpnGetUrl, |
|
116 NpnPostUrl, |
|
117 NpnRequestRead, |
|
118 NpnNewStream, |
|
119 NpnWrite, |
|
120 NpnDestroyStream, |
|
121 NpnStatus, |
|
122 NpnUAgent, |
|
123 NpnMemAlloc, |
|
124 NpnMemFree, |
|
125 NpnMemFlush, |
|
126 NpnReloadPlugins, |
|
127 NpnGetJavaEnv, |
|
128 NpnGetJavaPeer, |
|
129 NpnGetUrlNotify, |
|
130 NpnPostUrlNotify, |
|
131 NpnGetValue, |
|
132 NpnSetValue, |
|
133 NpnInvalidateRect, |
|
134 NpnInvalidateRegion, |
|
135 NpnForceRedraw |
|
136 }; |
|
137 |
|
138 |
|
139 #endif // NPNIMPLEMENTATION_H |
|
140 // End Of file |