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
f1d77f18
Commit
f1d77f18
authored
May 24, 2022
by
Connor McAdams
Committed by
Alexandre Julliard
Jun 13, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uiautomationcore: Add stub IRawElementProviderFragment for MSAA providers.
Signed-off-by:
Connor McAdams
<
cmcadams@codeweavers.com
>
parent
35939bbe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
89 additions
and
0 deletions
+89
-0
uia_provider.c
dlls/uiautomationcore/uia_provider.c
+89
-0
No files found.
dlls/uiautomationcore/uia_provider.c
View file @
f1d77f18
...
...
@@ -289,6 +289,7 @@ static LONG msaa_role_to_uia_control_type(LONG role)
*/
struct
msaa_provider
{
IRawElementProviderSimple
IRawElementProviderSimple_iface
;
IRawElementProviderFragment
IRawElementProviderFragment_iface
;
ILegacyIAccessibleProvider
ILegacyIAccessibleProvider_iface
;
LONG
refcount
;
...
...
@@ -336,6 +337,8 @@ HRESULT WINAPI msaa_provider_QueryInterface(IRawElementProviderSimple *iface, RE
*
ppv
=
NULL
;
if
(
IsEqualIID
(
riid
,
&
IID_IRawElementProviderSimple
)
||
IsEqualIID
(
riid
,
&
IID_IUnknown
))
*
ppv
=
iface
;
else
if
(
IsEqualIID
(
riid
,
&
IID_IRawElementProviderFragment
))
*
ppv
=
&
msaa_prov
->
IRawElementProviderFragment_iface
;
else
if
(
IsEqualIID
(
riid
,
&
IID_ILegacyIAccessibleProvider
))
*
ppv
=
&
msaa_prov
->
ILegacyIAccessibleProvider_iface
;
else
...
...
@@ -482,6 +485,91 @@ static const IRawElementProviderSimpleVtbl msaa_provider_vtbl = {
};
/*
* IRawElementProviderFragment interface for UiaProviderFromIAccessible
* providers.
*/
static
inline
struct
msaa_provider
*
impl_from_msaa_fragment
(
IRawElementProviderFragment
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
msaa_provider
,
IRawElementProviderFragment_iface
);
}
static
HRESULT
WINAPI
msaa_fragment_QueryInterface
(
IRawElementProviderFragment
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
struct
msaa_provider
*
msaa_prov
=
impl_from_msaa_fragment
(
iface
);
return
IRawElementProviderSimple_QueryInterface
(
&
msaa_prov
->
IRawElementProviderSimple_iface
,
riid
,
ppv
);
}
static
ULONG
WINAPI
msaa_fragment_AddRef
(
IRawElementProviderFragment
*
iface
)
{
struct
msaa_provider
*
msaa_prov
=
impl_from_msaa_fragment
(
iface
);
return
IRawElementProviderSimple_AddRef
(
&
msaa_prov
->
IRawElementProviderSimple_iface
);
}
static
ULONG
WINAPI
msaa_fragment_Release
(
IRawElementProviderFragment
*
iface
)
{
struct
msaa_provider
*
msaa_prov
=
impl_from_msaa_fragment
(
iface
);
return
IRawElementProviderSimple_Release
(
&
msaa_prov
->
IRawElementProviderSimple_iface
);
}
static
HRESULT
WINAPI
msaa_fragment_Navigate
(
IRawElementProviderFragment
*
iface
,
enum
NavigateDirection
direction
,
IRawElementProviderFragment
**
ret_val
)
{
FIXME
(
"%p, %d, %p: stub!
\n
"
,
iface
,
direction
,
ret_val
);
*
ret_val
=
NULL
;
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
msaa_fragment_GetRuntimeId
(
IRawElementProviderFragment
*
iface
,
SAFEARRAY
**
ret_val
)
{
FIXME
(
"%p, %p: stub!
\n
"
,
iface
,
ret_val
);
*
ret_val
=
NULL
;
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
msaa_fragment_get_BoundingRectangle
(
IRawElementProviderFragment
*
iface
,
struct
UiaRect
*
ret_val
)
{
FIXME
(
"%p, %p: stub!
\n
"
,
iface
,
ret_val
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
msaa_fragment_GetEmbeddedFragmentRoots
(
IRawElementProviderFragment
*
iface
,
SAFEARRAY
**
ret_val
)
{
FIXME
(
"%p, %p: stub!
\n
"
,
iface
,
ret_val
);
*
ret_val
=
NULL
;
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
msaa_fragment_SetFocus
(
IRawElementProviderFragment
*
iface
)
{
FIXME
(
"%p: stub!
\n
"
,
iface
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
msaa_fragment_get_FragmentRoot
(
IRawElementProviderFragment
*
iface
,
IRawElementProviderFragmentRoot
**
ret_val
)
{
FIXME
(
"%p, %p: stub!
\n
"
,
iface
,
ret_val
);
*
ret_val
=
NULL
;
return
E_NOTIMPL
;
}
static
const
IRawElementProviderFragmentVtbl
msaa_fragment_vtbl
=
{
msaa_fragment_QueryInterface
,
msaa_fragment_AddRef
,
msaa_fragment_Release
,
msaa_fragment_Navigate
,
msaa_fragment_GetRuntimeId
,
msaa_fragment_get_BoundingRectangle
,
msaa_fragment_GetEmbeddedFragmentRoots
,
msaa_fragment_SetFocus
,
msaa_fragment_get_FragmentRoot
,
};
/*
* ILegacyIAccessibleProvider interface for UiaProviderFromIAccessible
* providers.
*/
...
...
@@ -682,6 +770,7 @@ HRESULT WINAPI UiaProviderFromIAccessible(IAccessible *acc, long child_id, DWORD
return
E_OUTOFMEMORY
;
msaa_prov
->
IRawElementProviderSimple_iface
.
lpVtbl
=
&
msaa_provider_vtbl
;
msaa_prov
->
IRawElementProviderFragment_iface
.
lpVtbl
=
&
msaa_fragment_vtbl
;
msaa_prov
->
ILegacyIAccessibleProvider_iface
.
lpVtbl
=
&
msaa_acc_provider_vtbl
;
msaa_prov
->
refcount
=
1
;
msaa_prov
->
hwnd
=
hwnd
;
...
...
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