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
700ab01b
Commit
700ab01b
authored
Dec 30, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 30, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: COM cleanup for the IHTMLFiltersCollection iface.
parent
98d5a2e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
20 deletions
+21
-20
htmlelem.c
dlls/mshtml/htmlelem.c
+21
-20
No files found.
dlls/mshtml/htmlelem.c
View file @
700ab01b
...
@@ -98,15 +98,15 @@ static const tag_desc_t *get_tag_desc(const WCHAR *tag_name)
...
@@ -98,15 +98,15 @@ static const tag_desc_t *get_tag_desc(const WCHAR *tag_name)
typedef
struct
typedef
struct
{
{
DispatchEx
dispex
;
DispatchEx
dispex
;
const
IHTMLFiltersCollectionVtbl
*
lpHTMLFiltersCollectionVtbl
;
IHTMLFiltersCollection
IHTMLFiltersCollection_iface
;
LONG
ref
;
LONG
ref
;
}
HTMLFiltersCollection
;
}
HTMLFiltersCollection
;
#define HTMLFILTERSCOLLECTION(x) ((IHTMLFiltersCollection*) &(x)->lpHTMLFiltersCollectionVtbl
)
static
inline
HTMLFiltersCollection
*
impl_from_IHTMLFiltersCollection
(
IHTMLFiltersCollection
*
iface
)
{
#define HTMLFILTERSCOLLECTION_THIS(iface) \
return
CONTAINING_RECORD
(
iface
,
HTMLFiltersCollection
,
IHTMLFiltersCollection_iface
);
DEFINE_THIS(HTMLFiltersCollection, HTMLFiltersCollection, iface)
}
IHTMLFiltersCollection
*
HTMLFiltersCollection_Create
(
void
);
IHTMLFiltersCollection
*
HTMLFiltersCollection_Create
(
void
);
...
@@ -1781,16 +1781,16 @@ HRESULT HTMLElement_Create(HTMLDocumentNode *doc, nsIDOMNode *nsnode, BOOL use_g
...
@@ -1781,16 +1781,16 @@ HRESULT HTMLElement_Create(HTMLDocumentNode *doc, nsIDOMNode *nsnode, BOOL use_g
/* interface IHTMLFiltersCollection */
/* interface IHTMLFiltersCollection */
static
HRESULT
WINAPI
HTMLFiltersCollection_QueryInterface
(
IHTMLFiltersCollection
*
iface
,
REFIID
riid
,
void
**
ppv
)
static
HRESULT
WINAPI
HTMLFiltersCollection_QueryInterface
(
IHTMLFiltersCollection
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
{
HTMLFiltersCollection
*
This
=
HTMLFILTERSCOLLECTION_THIS
(
iface
);
HTMLFiltersCollection
*
This
=
impl_from_IHTMLFiltersCollection
(
iface
);
TRACE
(
"%p %s %p
\n
"
,
This
,
debugstr_guid
(
riid
),
ppv
);
TRACE
(
"%p %s %p
\n
"
,
This
,
debugstr_guid
(
riid
),
ppv
);
if
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
))
{
if
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
))
{
TRACE
(
"(%p)->(IID_IUnknown %p)
\n
"
,
This
,
ppv
);
TRACE
(
"(%p)->(IID_IUnknown %p)
\n
"
,
This
,
ppv
);
*
ppv
=
HTMLFILTERSCOLLECTION
(
This
)
;
*
ppv
=
&
This
->
IHTMLFiltersCollection_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IHTMLFiltersCollection
,
riid
))
{
}
else
if
(
IsEqualGUID
(
&
IID_IHTMLFiltersCollection
,
riid
))
{
TRACE
(
"(%p)->(IID_IHTMLFiltersCollection %p)
\n
"
,
This
,
ppv
);
TRACE
(
"(%p)->(IID_IHTMLFiltersCollection %p)
\n
"
,
This
,
ppv
);
*
ppv
=
HTMLFILTERSCOLLECTION
(
This
)
;
*
ppv
=
&
This
->
IHTMLFiltersCollection_iface
;
}
else
if
(
dispex_query_interface
(
&
This
->
dispex
,
riid
,
ppv
))
{
}
else
if
(
dispex_query_interface
(
&
This
->
dispex
,
riid
,
ppv
))
{
return
*
ppv
?
S_OK
:
E_NOINTERFACE
;
return
*
ppv
?
S_OK
:
E_NOINTERFACE
;
}
}
...
@@ -1806,7 +1806,7 @@ static HRESULT WINAPI HTMLFiltersCollection_QueryInterface(IHTMLFiltersCollectio
...
@@ -1806,7 +1806,7 @@ static HRESULT WINAPI HTMLFiltersCollection_QueryInterface(IHTMLFiltersCollectio
static
ULONG
WINAPI
HTMLFiltersCollection_AddRef
(
IHTMLFiltersCollection
*
iface
)
static
ULONG
WINAPI
HTMLFiltersCollection_AddRef
(
IHTMLFiltersCollection
*
iface
)
{
{
HTMLFiltersCollection
*
This
=
HTMLFILTERSCOLLECTION_THIS
(
iface
);
HTMLFiltersCollection
*
This
=
impl_from_IHTMLFiltersCollection
(
iface
);
LONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
LONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p) ref=%d
\n
"
,
This
,
ref
);
TRACE
(
"(%p) ref=%d
\n
"
,
This
,
ref
);
...
@@ -1816,7 +1816,7 @@ static ULONG WINAPI HTMLFiltersCollection_AddRef(IHTMLFiltersCollection *iface)
...
@@ -1816,7 +1816,7 @@ static ULONG WINAPI HTMLFiltersCollection_AddRef(IHTMLFiltersCollection *iface)
static
ULONG
WINAPI
HTMLFiltersCollection_Release
(
IHTMLFiltersCollection
*
iface
)
static
ULONG
WINAPI
HTMLFiltersCollection_Release
(
IHTMLFiltersCollection
*
iface
)
{
{
HTMLFiltersCollection
*
This
=
HTMLFILTERSCOLLECTION_THIS
(
iface
);
HTMLFiltersCollection
*
This
=
impl_from_IHTMLFiltersCollection
(
iface
);
LONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
LONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p) ref=%d
\n
"
,
This
,
ref
);
TRACE
(
"(%p) ref=%d
\n
"
,
This
,
ref
);
...
@@ -1831,14 +1831,14 @@ static ULONG WINAPI HTMLFiltersCollection_Release(IHTMLFiltersCollection *iface)
...
@@ -1831,14 +1831,14 @@ static ULONG WINAPI HTMLFiltersCollection_Release(IHTMLFiltersCollection *iface)
static
HRESULT
WINAPI
HTMLFiltersCollection_GetTypeInfoCount
(
IHTMLFiltersCollection
*
iface
,
UINT
*
pctinfo
)
static
HRESULT
WINAPI
HTMLFiltersCollection_GetTypeInfoCount
(
IHTMLFiltersCollection
*
iface
,
UINT
*
pctinfo
)
{
{
HTMLFiltersCollection
*
This
=
HTMLFILTERSCOLLECTION_THIS
(
iface
);
HTMLFiltersCollection
*
This
=
impl_from_IHTMLFiltersCollection
(
iface
);
return
IDispatchEx_GetTypeInfoCount
(
DISPATCHEX
(
&
This
->
dispex
),
pctinfo
);
return
IDispatchEx_GetTypeInfoCount
(
DISPATCHEX
(
&
This
->
dispex
),
pctinfo
);
}
}
static
HRESULT
WINAPI
HTMLFiltersCollection_GetTypeInfo
(
IHTMLFiltersCollection
*
iface
,
static
HRESULT
WINAPI
HTMLFiltersCollection_GetTypeInfo
(
IHTMLFiltersCollection
*
iface
,
UINT
iTInfo
,
LCID
lcid
,
ITypeInfo
**
ppTInfo
)
UINT
iTInfo
,
LCID
lcid
,
ITypeInfo
**
ppTInfo
)
{
{
HTMLFiltersCollection
*
This
=
HTMLFILTERSCOLLECTION_THIS
(
iface
);
HTMLFiltersCollection
*
This
=
impl_from_IHTMLFiltersCollection
(
iface
);
return
IDispatchEx_GetTypeInfo
(
DISPATCHEX
(
&
This
->
dispex
),
iTInfo
,
lcid
,
ppTInfo
);
return
IDispatchEx_GetTypeInfo
(
DISPATCHEX
(
&
This
->
dispex
),
iTInfo
,
lcid
,
ppTInfo
);
}
}
...
@@ -1846,7 +1846,7 @@ static HRESULT WINAPI HTMLFiltersCollection_GetIDsOfNames(IHTMLFiltersCollection
...
@@ -1846,7 +1846,7 @@ static HRESULT WINAPI HTMLFiltersCollection_GetIDsOfNames(IHTMLFiltersCollection
REFIID
riid
,
LPOLESTR
*
rgszNames
,
UINT
cNames
,
REFIID
riid
,
LPOLESTR
*
rgszNames
,
UINT
cNames
,
LCID
lcid
,
DISPID
*
rgDispId
)
LCID
lcid
,
DISPID
*
rgDispId
)
{
{
HTMLFiltersCollection
*
This
=
HTMLFILTERSCOLLECTION_THIS
(
iface
);
HTMLFiltersCollection
*
This
=
impl_from_IHTMLFiltersCollection
(
iface
);
return
IDispatchEx_GetIDsOfNames
(
DISPATCHEX
(
&
This
->
dispex
),
riid
,
rgszNames
,
cNames
,
lcid
,
rgDispId
);
return
IDispatchEx_GetIDsOfNames
(
DISPATCHEX
(
&
This
->
dispex
),
riid
,
rgszNames
,
cNames
,
lcid
,
rgDispId
);
}
}
...
@@ -1854,14 +1854,14 @@ static HRESULT WINAPI HTMLFiltersCollection_Invoke(IHTMLFiltersCollection *iface
...
@@ -1854,14 +1854,14 @@ static HRESULT WINAPI HTMLFiltersCollection_Invoke(IHTMLFiltersCollection *iface
LCID
lcid
,
WORD
wFlags
,
DISPPARAMS
*
pDispParams
,
VARIANT
*
pVarResult
,
LCID
lcid
,
WORD
wFlags
,
DISPPARAMS
*
pDispParams
,
VARIANT
*
pVarResult
,
EXCEPINFO
*
pExcepInfo
,
UINT
*
puArgErr
)
EXCEPINFO
*
pExcepInfo
,
UINT
*
puArgErr
)
{
{
HTMLFiltersCollection
*
This
=
HTMLFILTERSCOLLECTION_THIS
(
iface
);
HTMLFiltersCollection
*
This
=
impl_from_IHTMLFiltersCollection
(
iface
);
return
IDispatchEx_Invoke
(
DISPATCHEX
(
&
This
->
dispex
),
dispIdMember
,
riid
,
lcid
,
return
IDispatchEx_Invoke
(
DISPATCHEX
(
&
This
->
dispex
),
dispIdMember
,
riid
,
lcid
,
wFlags
,
pDispParams
,
pVarResult
,
pExcepInfo
,
puArgErr
);
wFlags
,
pDispParams
,
pVarResult
,
pExcepInfo
,
puArgErr
);
}
}
static
HRESULT
WINAPI
HTMLFiltersCollection_get_length
(
IHTMLFiltersCollection
*
iface
,
LONG
*
p
)
static
HRESULT
WINAPI
HTMLFiltersCollection_get_length
(
IHTMLFiltersCollection
*
iface
,
LONG
*
p
)
{
{
HTMLFiltersCollection
*
This
=
HTMLFILTERSCOLLECTION_THIS
(
iface
);
HTMLFiltersCollection
*
This
=
impl_from_IHTMLFiltersCollection
(
iface
);
if
(
!
p
)
if
(
!
p
)
return
E_POINTER
;
return
E_POINTER
;
...
@@ -1874,14 +1874,14 @@ static HRESULT WINAPI HTMLFiltersCollection_get_length(IHTMLFiltersCollection *i
...
@@ -1874,14 +1874,14 @@ static HRESULT WINAPI HTMLFiltersCollection_get_length(IHTMLFiltersCollection *i
static
HRESULT
WINAPI
HTMLFiltersCollection_get__newEnum
(
IHTMLFiltersCollection
*
iface
,
IUnknown
**
p
)
static
HRESULT
WINAPI
HTMLFiltersCollection_get__newEnum
(
IHTMLFiltersCollection
*
iface
,
IUnknown
**
p
)
{
{
HTMLFiltersCollection
*
This
=
HTMLFILTERSCOLLECTION_THIS
(
iface
);
HTMLFiltersCollection
*
This
=
impl_from_IHTMLFiltersCollection
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
static
HRESULT
WINAPI
HTMLFiltersCollection_item
(
IHTMLFiltersCollection
*
iface
,
VARIANT
*
pvarIndex
,
VARIANT
*
pvarResult
)
static
HRESULT
WINAPI
HTMLFiltersCollection_item
(
IHTMLFiltersCollection
*
iface
,
VARIANT
*
pvarIndex
,
VARIANT
*
pvarResult
)
{
{
HTMLFiltersCollection
*
This
=
HTMLFILTERSCOLLECTION_THIS
(
iface
);
HTMLFiltersCollection
*
This
=
impl_from_IHTMLFiltersCollection
(
iface
);
FIXME
(
"(%p)->(%p, %p)
\n
"
,
This
,
pvarIndex
,
pvarResult
);
FIXME
(
"(%p)->(%p, %p)
\n
"
,
This
,
pvarIndex
,
pvarResult
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
@@ -1948,10 +1948,11 @@ IHTMLFiltersCollection *HTMLFiltersCollection_Create()
...
@@ -1948,10 +1948,11 @@ IHTMLFiltersCollection *HTMLFiltersCollection_Create()
{
{
HTMLFiltersCollection
*
ret
=
heap_alloc
(
sizeof
(
HTMLFiltersCollection
));
HTMLFiltersCollection
*
ret
=
heap_alloc
(
sizeof
(
HTMLFiltersCollection
));
ret
->
lpHTMLFiltersCollection
Vtbl
=
&
HTMLFiltersCollectionVtbl
;
ret
->
IHTMLFiltersCollection_iface
.
lp
Vtbl
=
&
HTMLFiltersCollectionVtbl
;
ret
->
ref
=
1
;
ret
->
ref
=
1
;
init_dispex
(
&
ret
->
dispex
,
(
IUnknown
*
)
HTMLFILTERSCOLLECTION
(
ret
),
&
HTMLFiltersCollection_dispex
);
init_dispex
(
&
ret
->
dispex
,
(
IUnknown
*
)
&
ret
->
IHTMLFiltersCollection_iface
,
&
HTMLFiltersCollection_dispex
);
return
HTMLFILTERSCOLLECTION
(
ret
)
;
return
&
ret
->
IHTMLFiltersCollection_iface
;
}
}
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