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
d06d73c1
Commit
d06d73c1
authored
May 12, 2014
by
Jacek Caban
Committed by
Alexandre Julliard
May 12, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IDispatchEx support to HTMLOptionElementFactory object.
parent
b54a9c66
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
11 deletions
+29
-11
htmloption.c
dlls/mshtml/htmloption.c
+25
-11
mshtml_private.h
dlls/mshtml/mshtml_private.h
+2
-0
dom.c
dlls/mshtml/tests/dom.c
+2
-0
No files found.
dlls/mshtml/htmloption.c
View file @
d06d73c1
...
...
@@ -374,6 +374,8 @@ static HRESULT WINAPI HTMLOptionElementFactory_QueryInterface(IHTMLOptionElement
*
ppv
=
&
This
->
IHTMLOptionElementFactory_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IHTMLOptionElementFactory
,
riid
))
{
*
ppv
=
&
This
->
IHTMLOptionElementFactory_iface
;
}
else
if
(
dispex_query_interface
(
&
This
->
dispex
,
riid
,
ppv
))
{
return
*
ppv
?
S_OK
:
E_NOINTERFACE
;
}
else
{
*
ppv
=
NULL
;
WARN
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_mshtml_guid
(
riid
),
ppv
);
...
...
@@ -401,8 +403,10 @@ static ULONG WINAPI HTMLOptionElementFactory_Release(IHTMLOptionElementFactory *
TRACE
(
"(%p) ref=%d
\n
"
,
This
,
ref
);
if
(
!
ref
)
if
(
!
ref
)
{
release_dispex
(
&
This
->
dispex
);
heap_free
(
This
);
}
return
ref
;
}
...
...
@@ -410,16 +414,14 @@ static ULONG WINAPI HTMLOptionElementFactory_Release(IHTMLOptionElementFactory *
static
HRESULT
WINAPI
HTMLOptionElementFactory_GetTypeInfoCount
(
IHTMLOptionElementFactory
*
iface
,
UINT
*
pctinfo
)
{
HTMLOptionElementFactory
*
This
=
impl_from_IHTMLOptionElementFactory
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pctinfo
);
return
E_NOTIMPL
;
return
IDispatchEx_GetTypeInfoCount
(
&
This
->
dispex
.
IDispatchEx_iface
,
pctinfo
);
}
static
HRESULT
WINAPI
HTMLOptionElementFactory_GetTypeInfo
(
IHTMLOptionElementFactory
*
iface
,
UINT
iTInfo
,
LCID
lcid
,
ITypeInfo
**
ppTInfo
)
{
HTMLOptionElementFactory
*
This
=
impl_from_IHTMLOptionElementFactory
(
iface
);
FIXME
(
"(%p)->(%u %u %p)
\n
"
,
This
,
iTInfo
,
lcid
,
ppTInfo
);
return
E_NOTIMPL
;
return
IDispatchEx_GetTypeInfo
(
&
This
->
dispex
.
IDispatchEx_iface
,
iTInfo
,
lcid
,
ppTInfo
);
}
static
HRESULT
WINAPI
HTMLOptionElementFactory_GetIDsOfNames
(
IHTMLOptionElementFactory
*
iface
,
REFIID
riid
,
...
...
@@ -427,9 +429,7 @@ static HRESULT WINAPI HTMLOptionElementFactory_GetIDsOfNames(IHTMLOptionElementF
LCID
lcid
,
DISPID
*
rgDispId
)
{
HTMLOptionElementFactory
*
This
=
impl_from_IHTMLOptionElementFactory
(
iface
);
FIXME
(
"(%p)->(%s %p %u %u %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
rgszNames
,
cNames
,
lcid
,
rgDispId
);
return
E_NOTIMPL
;
return
IDispatchEx_GetIDsOfNames
(
&
This
->
dispex
.
IDispatchEx_iface
,
riid
,
rgszNames
,
cNames
,
lcid
,
rgDispId
);
}
static
HRESULT
WINAPI
HTMLOptionElementFactory_Invoke
(
IHTMLOptionElementFactory
*
iface
,
DISPID
dispIdMember
,
...
...
@@ -437,9 +437,8 @@ static HRESULT WINAPI HTMLOptionElementFactory_Invoke(IHTMLOptionElementFactory
VARIANT
*
pVarResult
,
EXCEPINFO
*
pExcepInfo
,
UINT
*
puArgErr
)
{
HTMLOptionElementFactory
*
This
=
impl_from_IHTMLOptionElementFactory
(
iface
);
FIXME
(
"(%p)->(%d %s %d %d %p %p %p %p)
\n
"
,
This
,
dispIdMember
,
debugstr_guid
(
riid
),
lcid
,
wFlags
,
pDispParams
,
pVarResult
,
pExcepInfo
,
puArgErr
);
return
E_NOTIMPL
;
return
IDispatchEx_Invoke
(
&
This
->
dispex
.
IDispatchEx_iface
,
dispIdMember
,
riid
,
lcid
,
wFlags
,
pDispParams
,
pVarResult
,
pExcepInfo
,
puArgErr
);
}
static
HRESULT
WINAPI
HTMLOptionElementFactory_create
(
IHTMLOptionElementFactory
*
iface
,
...
...
@@ -505,6 +504,18 @@ static const IHTMLOptionElementFactoryVtbl HTMLOptionElementFactoryVtbl = {
HTMLOptionElementFactory_create
};
static
const
tid_t
HTMLOptionElementFactory_iface_tids
[]
=
{
IHTMLOptionElementFactory_tid
,
0
};
static
dispex_static_data_t
HTMLOptionElementFactory_dispex
=
{
NULL
,
IHTMLOptionElementFactory_tid
,
NULL
,
HTMLOptionElementFactory_iface_tids
};
HRESULT
HTMLOptionElementFactory_Create
(
HTMLInnerWindow
*
window
,
HTMLOptionElementFactory
**
ret_ptr
)
{
HTMLOptionElementFactory
*
ret
;
...
...
@@ -517,6 +528,9 @@ HRESULT HTMLOptionElementFactory_Create(HTMLInnerWindow *window, HTMLOptionEleme
ret
->
ref
=
1
;
ret
->
window
=
window
;
init_dispex
(
&
ret
->
dispex
,
(
IUnknown
*
)
&
ret
->
IHTMLOptionElementFactory_iface
,
&
HTMLOptionElementFactory_dispex
);
*
ret_ptr
=
ret
;
return
S_OK
;
}
dlls/mshtml/mshtml_private.h
View file @
d06d73c1
...
...
@@ -167,6 +167,7 @@ typedef struct event_target_t event_target_t;
XIID(IHTMLObjectElement) \
XIID(IHTMLObjectElement2) \
XIID(IHTMLOptionElement) \
XIID(IHTMLOptionElementFactory) \
XIID(IHTMLPluginsCollection) \
XIID(IHTMLRect) \
XIID(IHTMLScreen) \
...
...
@@ -318,6 +319,7 @@ typedef struct {
}
global_prop_t
;
typedef
struct
{
DispatchEx
dispex
;
IHTMLOptionElementFactory
IHTMLOptionElementFactory_iface
;
LONG
ref
;
...
...
dlls/mshtml/tests/dom.c
View file @
d06d73c1
...
...
@@ -1741,6 +1741,8 @@ static IHTMLOptionElement *_create_option_elem(unsigned line, IHTMLDocument2 *do
IHTMLWindow2_Release
(
window
);
ok_
(
__FILE__
,
line
)
(
hres
==
S_OK
,
"get_Option failed: %08x
\n
"
,
hres
);
test_disp
((
IUnknown
*
)
factory
,
&
IID_IHTMLOptionElementFactory
,
"[object]"
);
V_VT
(
&
text
)
=
VT_BSTR
;
V_BSTR
(
&
text
)
=
a2bstr
(
txt
);
V_VT
(
&
value
)
=
VT_BSTR
;
...
...
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