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
eda756db
Commit
eda756db
authored
Oct 03, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 03, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added support for binding ActiveX events with script event attribute.
parent
aaabec2b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
pluginhost.c
dlls/mshtml/pluginhost.c
+0
-0
pluginhost.h
dlls/mshtml/pluginhost.h
+3
-0
script.c
dlls/mshtml/script.c
+5
-2
No files found.
dlls/mshtml/pluginhost.c
View file @
eda756db
This diff is collapsed.
Click to expand it.
dlls/mshtml/pluginhost.h
View file @
eda756db
...
...
@@ -17,6 +17,7 @@
*/
typedef
struct
HTMLPluginContainer
HTMLPluginContainer
;
typedef
struct
PHEventSink
PHEventSink
;
typedef
struct
{
IOleClientSite
IOleClientSite_iface
;
...
...
@@ -43,6 +44,7 @@ typedef struct {
HTMLDocumentNode
*
doc
;
struct
list
entry
;
PHEventSink
*
sink
;
HTMLPluginContainer
*
element
;
}
PluginHost
;
...
...
@@ -71,3 +73,4 @@ HRESULT get_plugin_disp(HTMLPluginContainer*,IDispatch**) DECLSPEC_HIDDEN;
HRESULT
get_plugin_dispid
(
HTMLPluginContainer
*
,
WCHAR
*
,
DISPID
*
)
DECLSPEC_HIDDEN
;
HRESULT
invoke_plugin_prop
(
HTMLPluginContainer
*
,
DISPID
,
LCID
,
WORD
,
DISPPARAMS
*
,
VARIANT
*
,
EXCEPINFO
*
)
DECLSPEC_HIDDEN
;
void
notif_container_change
(
HTMLPluginContainer
*
,
DISPID
);
void
bind_activex_event
(
HTMLDocumentNode
*
,
HTMLPluginContainer
*
,
WCHAR
*
,
IDispatch
*
)
DECLSPEC_HIDDEN
;
dlls/mshtml/script.c
View file @
eda756db
...
...
@@ -1065,6 +1065,8 @@ static BOOL parse_event_str(WCHAR *event, const WCHAR **args)
{
WCHAR
*
ptr
;
TRACE
(
"%s
\n
"
,
debugstr_w
(
event
));
for
(
ptr
=
event
;
isalnumW
(
*
ptr
);
ptr
++
);
if
(
!*
ptr
)
{
*
args
=
NULL
;
...
...
@@ -1079,8 +1081,9 @@ static BOOL parse_event_str(WCHAR *event, const WCHAR **args)
while
(
isalnumW
(
*
ptr
)
||
isspaceW
(
*
ptr
)
||
*
ptr
==
','
)
ptr
++
;
if
(
*
ptr
++
!=
')'
)
if
(
*
ptr
!=
')'
)
return
FALSE
;
*
ptr
++
=
0
;
return
!*
ptr
;
}
...
...
@@ -1203,7 +1206,7 @@ void bind_event_scripts(HTMLDocumentNode *doc)
IHTMLElement_QueryInterface
(
&
event_target
->
IHTMLElement_iface
,
&
IID_HTMLPluginContainer
,
(
void
**
)
&
plugin_container
);
if
(
plugin_container
)
FIXME
(
"ActiveX events not supported
\n
"
);
bind_activex_event
(
doc
,
plugin_container
,
event
,
event_disp
);
else
bind_elem_event
(
doc
,
event_target
,
event
,
event_disp
);
...
...
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