Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
21a30da6
Commit
21a30da6
authored
Apr 21, 2017
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 21, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IProvideClassInfo2 implementation for HTMLXMLHttpRequest object.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
97c71b25
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
0 deletions
+51
-0
xmlhttprequest.c
dlls/mshtml/xmlhttprequest.c
+51
-0
No files found.
dlls/mshtml/xmlhttprequest.c
View file @
21a30da6
...
...
@@ -101,6 +101,7 @@ typedef struct {
struct
HTMLXMLHttpRequest
{
EventTarget
event_target
;
IHTMLXMLHttpRequest
IHTMLXMLHttpRequest_iface
;
IProvideClassInfo2
IProvideClassInfo2_iface
;
LONG
ref
;
nsIXMLHttpRequest
*
nsxhr
;
XMLHttpReqEventListener
*
event_listener
;
...
...
@@ -218,6 +219,10 @@ static HRESULT WINAPI HTMLXMLHttpRequest_QueryInterface(IHTMLXMLHttpRequest *ifa
*
ppv
=
&
This
->
IHTMLXMLHttpRequest_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IHTMLXMLHttpRequest
,
riid
))
{
*
ppv
=
&
This
->
IHTMLXMLHttpRequest_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IProvideClassInfo
,
riid
))
{
*
ppv
=
&
This
->
IProvideClassInfo2_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IProvideClassInfo2
,
riid
))
{
*
ppv
=
&
This
->
IProvideClassInfo2_iface
;
}
else
if
(
dispex_query_interface
(
&
This
->
event_target
.
dispex
,
riid
,
ppv
))
{
return
*
ppv
?
S_OK
:
E_NOINTERFACE
;
}
else
{
...
...
@@ -682,6 +687,51 @@ static const IHTMLXMLHttpRequestVtbl HTMLXMLHttpRequestVtbl = {
HTMLXMLHttpRequest_setRequestHeader
};
static
inline
HTMLXMLHttpRequest
*
impl_from_IProvideClassInfo2
(
IProvideClassInfo2
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
HTMLXMLHttpRequest
,
IProvideClassInfo2_iface
);
}
static
HRESULT
WINAPI
ProvideClassInfo_QueryInterface
(
IProvideClassInfo2
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
HTMLXMLHttpRequest
*
This
=
impl_from_IProvideClassInfo2
(
iface
);
return
IHTMLXMLHttpRequest_QueryInterface
(
&
This
->
IHTMLXMLHttpRequest_iface
,
riid
,
ppv
);
}
static
ULONG
WINAPI
ProvideClassInfo_AddRef
(
IProvideClassInfo2
*
iface
)
{
HTMLXMLHttpRequest
*
This
=
impl_from_IProvideClassInfo2
(
iface
);
return
IHTMLXMLHttpRequest_AddRef
(
&
This
->
IHTMLXMLHttpRequest_iface
);
}
static
ULONG
WINAPI
ProvideClassInfo_Release
(
IProvideClassInfo2
*
iface
)
{
HTMLXMLHttpRequest
*
This
=
impl_from_IProvideClassInfo2
(
iface
);
return
IHTMLXMLHttpRequest_Release
(
&
This
->
IHTMLXMLHttpRequest_iface
);
}
static
HRESULT
WINAPI
ProvideClassInfo_GetClassInfo
(
IProvideClassInfo2
*
iface
,
ITypeInfo
**
ppTI
)
{
HTMLXMLHttpRequest
*
This
=
impl_from_IProvideClassInfo2
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
ppTI
);
return
get_class_typeinfo
(
&
CLSID_HTMLXMLHttpRequest
,
ppTI
);
}
static
HRESULT
WINAPI
ProvideClassInfo2_GetGUID
(
IProvideClassInfo2
*
iface
,
DWORD
dwGuidKind
,
GUID
*
pGUID
)
{
HTMLXMLHttpRequest
*
This
=
impl_from_IProvideClassInfo2
(
iface
);
FIXME
(
"(%p)->(%u %p)
\n
"
,
This
,
dwGuidKind
,
pGUID
);
return
E_NOTIMPL
;
}
static
const
IProvideClassInfo2Vtbl
ProvideClassInfo2Vtbl
=
{
ProvideClassInfo_QueryInterface
,
ProvideClassInfo_AddRef
,
ProvideClassInfo_Release
,
ProvideClassInfo_GetClassInfo
,
ProvideClassInfo2_GetGUID
,
};
static
inline
HTMLXMLHttpRequest
*
impl_from_DispatchEx
(
DispatchEx
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
HTMLXMLHttpRequest
,
event_target
.
dispex
);
...
...
@@ -849,6 +899,7 @@ static HRESULT WINAPI HTMLXMLHttpRequestFactory_create(IHTMLXMLHttpRequestFactor
ret
->
nsxhr
=
nsxhr
;
ret
->
IHTMLXMLHttpRequest_iface
.
lpVtbl
=
&
HTMLXMLHttpRequestVtbl
;
ret
->
IProvideClassInfo2_iface
.
lpVtbl
=
&
ProvideClassInfo2Vtbl
;
init_event_target
(
&
ret
->
event_target
);
init_dispex
(
&
ret
->
event_target
.
dispex
,
(
IUnknown
*
)
&
ret
->
IHTMLXMLHttpRequest_iface
,
&
HTMLXMLHttpRequest_dispex
);
...
...
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