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
d5059b83
Commit
d5059b83
authored
Apr 23, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added elements IDispatchEx implementation.
parent
22eb495a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
0 deletions
+31
-0
dispex.c
dlls/mshtml/dispex.c
+4
-0
htmlelem.c
dlls/mshtml/htmlelem.c
+14
-0
htmlnode.c
dlls/mshtml/htmlnode.c
+8
-0
mshtml_private.h
dlls/mshtml/mshtml_private.h
+5
-0
No files found.
dlls/mshtml/dispex.c
View file @
d5059b83
...
...
@@ -52,11 +52,15 @@ static struct list dispex_data_list = LIST_INIT(dispex_data_list);
static
REFIID
tid_ids
[]
=
{
&
IID_NULL
,
&
DIID_DispHTMLDocument
,
&
DIID_DispHTMLUnknownElement
,
&
DIID_DispHTMLWindow2
,
&
IID_IHTMLDocument2
,
&
IID_IHTMLDocument3
,
&
IID_IHTMLDocument4
,
&
IID_IHTMLDocument5
,
&
IID_IHTMLDOMNode
,
&
IID_IHTMLElement
,
&
IID_IHTMLElement2
,
&
IID_IHTMLWindow2
,
&
IID_IHTMLWindow3
,
&
IID_IOmNavigator
...
...
dlls/mshtml/htmlelem.c
View file @
d5059b83
...
...
@@ -1282,6 +1282,17 @@ static const NodeImplVtbl HTMLElementImplVtbl = {
HTMLElement_destructor
};
static
dispex_static_data_t
HTMLElement_dispex
=
{
DispHTMLUnknownElement_tid
,
NULL
,
{
IHTMLDOMNode_tid
,
IHTMLElement_tid
,
IHTMLElement2_tid
,
0
}
};
void
HTMLElement_Init
(
HTMLElement
*
This
)
{
This
->
node
.
vtbl
=
&
HTMLElementImplVtbl
;
...
...
@@ -1344,6 +1355,9 @@ HTMLElement *HTMLElement_Create(nsIDOMNode *nsnode)
ret
->
nselem
=
nselem
;
if
(
!
ret
->
node
.
dispex
.
data
)
init_dispex
(
&
ret
->
node
.
dispex
,
(
IUnknown
*
)
HTMLELEM
(
ret
),
&
HTMLElement_dispex
);
return
ret
;
}
...
...
dlls/mshtml/htmlnode.c
View file @
d5059b83
...
...
@@ -313,6 +313,14 @@ HRESULT HTMLDOMNode_QI(HTMLDOMNode *This, REFIID riid, void **ppv)
}
else
if
(
IsEqualGUID
(
&
IID_IDispatch
,
riid
))
{
TRACE
(
"(%p)->(IID_IDispatch %p)
\n
"
,
This
,
ppv
);
*
ppv
=
HTMLDOMNODE
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_IDispatchEx
,
riid
))
{
if
(
This
->
dispex
.
data
)
{
TRACE
(
"(%p)->(IID_IDispatchEx %p)
\n
"
,
This
,
ppv
);
*
ppv
=
DISPATCHEX
(
&
This
->
dispex
);
}
else
{
FIXME
(
"(%p)->(IID_IDispatchEx %p)
\n
"
,
This
,
ppv
);
return
E_NOINTERFACE
;
}
}
else
if
(
IsEqualGUID
(
&
IID_IHTMLDOMNode
,
riid
))
{
TRACE
(
"(%p)->(IID_IHTMLDOMNode %p)
\n
"
,
This
,
ppv
);
*
ppv
=
HTMLDOMNODE
(
This
);
...
...
dlls/mshtml/mshtml_private.h
View file @
d5059b83
...
...
@@ -62,11 +62,15 @@ typedef struct event_target_t event_target_t;
typedef
enum
{
NULL_tid
,
DispHTMLDocument_tid
,
DispHTMLUnknownElement_tid
,
DispHTMLWindow2_tid
,
IHTMLDocument2_tid
,
IHTMLDocument3_tid
,
IHTMLDocument4_tid
,
IHTMLDocument5_tid
,
IHTMLDOMNode_tid
,
IHTMLElement_tid
,
IHTMLElement2_tid
,
IHTMLWindow2_tid
,
IHTMLWindow3_tid
,
IOmNavigator_tid
,
...
...
@@ -293,6 +297,7 @@ typedef struct {
}
NodeImplVtbl
;
struct
HTMLDOMNode
{
DispatchEx
dispex
;
const
IHTMLDOMNodeVtbl
*
lpHTMLDOMNodeVtbl
;
const
NodeImplVtbl
*
vtbl
;
...
...
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