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
40b2deb8
Commit
40b2deb8
authored
Jan 11, 2016
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 11, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLUniqueName interface stub implementation.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
27182667
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
83 additions
and
0 deletions
+83
-0
htmlelem.c
dlls/mshtml/htmlelem.c
+81
-0
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-0
dom.c
dlls/mshtml/tests/dom.c
+1
-0
No files found.
dlls/mshtml/htmlelem.c
View file @
40b2deb8
...
...
@@ -3791,6 +3791,84 @@ static const IHTMLElement4Vtbl HTMLElement4Vtbl = {
HTMLElement4_get_onfocusout
};
static
inline
HTMLElement
*
impl_from_IHTMLUniqueName
(
IHTMLUniqueName
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
HTMLElement
,
IHTMLUniqueName_iface
);
}
static
HRESULT
WINAPI
HTMLUniqueName_QueryInterface
(
IHTMLUniqueName
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
HTMLElement
*
This
=
impl_from_IHTMLUniqueName
(
iface
);
return
IHTMLElement_QueryInterface
(
&
This
->
IHTMLElement_iface
,
riid
,
ppv
);
}
static
ULONG
WINAPI
HTMLUniqueName_AddRef
(
IHTMLUniqueName
*
iface
)
{
HTMLElement
*
This
=
impl_from_IHTMLUniqueName
(
iface
);
return
IHTMLElement_AddRef
(
&
This
->
IHTMLElement_iface
);
}
static
ULONG
WINAPI
HTMLUniqueName_Release
(
IHTMLUniqueName
*
iface
)
{
HTMLElement
*
This
=
impl_from_IHTMLUniqueName
(
iface
);
return
IHTMLElement_Release
(
&
This
->
IHTMLElement_iface
);
}
static
HRESULT
WINAPI
HTMLUniqueName_GetTypeInfoCount
(
IHTMLUniqueName
*
iface
,
UINT
*
pctinfo
)
{
HTMLElement
*
This
=
impl_from_IHTMLUniqueName
(
iface
);
return
IDispatchEx_GetTypeInfoCount
(
&
This
->
node
.
event_target
.
dispex
.
IDispatchEx_iface
,
pctinfo
);
}
static
HRESULT
WINAPI
HTMLUniqueName_GetTypeInfo
(
IHTMLUniqueName
*
iface
,
UINT
iTInfo
,
LCID
lcid
,
ITypeInfo
**
ppTInfo
)
{
HTMLElement
*
This
=
impl_from_IHTMLUniqueName
(
iface
);
return
IDispatchEx_GetTypeInfo
(
&
This
->
node
.
event_target
.
dispex
.
IDispatchEx_iface
,
iTInfo
,
lcid
,
ppTInfo
);
}
static
HRESULT
WINAPI
HTMLUniqueName_GetIDsOfNames
(
IHTMLUniqueName
*
iface
,
REFIID
riid
,
LPOLESTR
*
rgszNames
,
UINT
cNames
,
LCID
lcid
,
DISPID
*
rgDispId
)
{
HTMLElement
*
This
=
impl_from_IHTMLUniqueName
(
iface
);
return
IDispatchEx_GetIDsOfNames
(
&
This
->
node
.
event_target
.
dispex
.
IDispatchEx_iface
,
riid
,
rgszNames
,
cNames
,
lcid
,
rgDispId
);
}
static
HRESULT
WINAPI
HTMLUniqueName_Invoke
(
IHTMLUniqueName
*
iface
,
DISPID
dispIdMember
,
REFIID
riid
,
LCID
lcid
,
WORD
wFlags
,
DISPPARAMS
*
pDispParams
,
VARIANT
*
pVarResult
,
EXCEPINFO
*
pExcepInfo
,
UINT
*
puArgErr
)
{
HTMLElement
*
This
=
impl_from_IHTMLUniqueName
(
iface
);
return
IDispatchEx_Invoke
(
&
This
->
node
.
event_target
.
dispex
.
IDispatchEx_iface
,
dispIdMember
,
riid
,
lcid
,
wFlags
,
pDispParams
,
pVarResult
,
pExcepInfo
,
puArgErr
);
}
static
HRESULT
WINAPI
HTMLUniqueName_get_uniqueNumber
(
IHTMLUniqueName
*
iface
,
LONG
*
p
)
{
HTMLElement
*
This
=
impl_from_IHTMLUniqueName
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLUniqueName_get_uniqueID
(
IHTMLUniqueName
*
iface
,
BSTR
*
p
)
{
HTMLElement
*
This
=
impl_from_IHTMLUniqueName
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
const
IHTMLUniqueNameVtbl
HTMLUniqueNameVtbl
=
{
HTMLUniqueName_QueryInterface
,
HTMLUniqueName_AddRef
,
HTMLUniqueName_Release
,
HTMLUniqueName_GetTypeInfoCount
,
HTMLUniqueName_GetTypeInfo
,
HTMLUniqueName_GetIDsOfNames
,
HTMLUniqueName_Invoke
,
HTMLUniqueName_get_uniqueNumber
,
HTMLUniqueName_get_uniqueID
};
static
inline
HTMLElement
*
impl_from_HTMLDOMNode
(
HTMLDOMNode
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
HTMLElement
,
node
);
...
...
@@ -3812,6 +3890,8 @@ HRESULT HTMLElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
*
ppv
=
&
This
->
IHTMLElement3_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IHTMLElement4
,
riid
))
{
*
ppv
=
&
This
->
IHTMLElement4_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IHTMLUniqueName
,
riid
))
{
*
ppv
=
&
This
->
IHTMLUniqueName_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IConnectionPointContainer
,
riid
))
{
*
ppv
=
&
This
->
cp_container
.
IConnectionPointContainer_iface
;
}
else
{
...
...
@@ -4072,6 +4152,7 @@ void HTMLElement_Init(HTMLElement *This, HTMLDocumentNode *doc, nsIDOMHTMLElemen
This
->
IHTMLElement2_iface
.
lpVtbl
=
&
HTMLElement2Vtbl
;
This
->
IHTMLElement3_iface
.
lpVtbl
=
&
HTMLElement3Vtbl
;
This
->
IHTMLElement4_iface
.
lpVtbl
=
&
HTMLElement4Vtbl
;
This
->
IHTMLUniqueName_iface
.
lpVtbl
=
&
HTMLUniqueNameVtbl
;
if
(
dispex_data
&&
!
dispex_data
->
vtbl
)
dispex_data
->
vtbl
=
&
HTMLElement_dispex_vtbl
;
...
...
dlls/mshtml/mshtml_private.h
View file @
40b2deb8
...
...
@@ -706,6 +706,7 @@ typedef struct {
IHTMLElement2
IHTMLElement2_iface
;
IHTMLElement3
IHTMLElement3_iface
;
IHTMLElement4
IHTMLElement4_iface
;
IHTMLUniqueName
IHTMLUniqueName_iface
;
nsIDOMHTMLElement
*
nselem
;
HTMLStyle
*
style
;
...
...
dlls/mshtml/tests/dom.c
View file @
40b2deb8
...
...
@@ -179,6 +179,7 @@ static const IID * const doc_obj_iids[] = {
&IID_IHTMLElement2, \
&IID_IHTMLElement3, \
&IID_IHTMLElement4, \
&IID_IHTMLUniqueName, \
&IID_IDispatchEx
static
const
IID
*
const
elem_iids
[]
=
{
...
...
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