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
a35c77fd
Commit
a35c77fd
authored
Oct 30, 2023
by
Connor McAdams
Committed by
Alexandre Julliard
Oct 30, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uiautomationcore: Implement…
uiautomationcore: Implement IRawElementProviderFragment::GetEmbeddedFragmentRoots for MSAA providers. Signed-off-by:
Connor McAdams
<
cmcadams@codeweavers.com
>
parent
8935dc73
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
2 deletions
+21
-2
uiautomation.c
dlls/uiautomationcore/tests/uiautomation.c
+19
-0
uia_provider.c
dlls/uiautomationcore/uia_provider.c
+2
-2
No files found.
dlls/uiautomationcore/tests/uiautomation.c
View file @
a35c77fd
...
...
@@ -3836,6 +3836,7 @@ static void test_uia_prov_from_acc_fragment_root(HWND hwnd)
IRawElementProviderFragmentRoot
*
elroot
,
*
elroot2
;
IRawElementProviderFragment
*
elfrag
,
*
elfrag2
;
IRawElementProviderSimple
*
elprov
;
SAFEARRAY
*
ret_arr
;
ULONG
old_ref
;
HRESULT
hr
;
...
...
@@ -3852,6 +3853,12 @@ static void test_uia_prov_from_acc_fragment_root(HWND hwnd)
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
ok
(
!!
elfrag
,
"elfrag == NULL
\n
"
);
/* GetEmbeddedFragmentRoots test. */
ret_arr
=
(
void
*
)
0xdeadbeef
;
hr
=
IRawElementProviderFragment_GetEmbeddedFragmentRoots
(
elfrag
,
&
ret_arr
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
ok
(
!
ret_arr
,
"ret_arr != NULL
\n
"
);
/*
* get_FragmentRoot does the equivalent of calling
* AccessibleObjectFromWindow with OBJID_CLIENT on the HWND associated
...
...
@@ -4161,6 +4168,12 @@ static void test_uia_prov_from_acc_fragment_root(HWND hwnd)
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
ok
(
!!
elfrag
,
"elfrag == NULL
\n
"
);
/* GetEmbeddedFragmentRoots test. */
ret_arr
=
(
void
*
)
0xdeadbeef
;
hr
=
IRawElementProviderFragment_GetEmbeddedFragmentRoots
(
elfrag
,
&
ret_arr
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
ok
(
!
ret_arr
,
"ret_arr != NULL
\n
"
);
/*
* Simple child element queries HWND as well, does not just return its
* parent.
...
...
@@ -4212,6 +4225,12 @@ static void test_uia_prov_from_acc_fragment_root(HWND hwnd)
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
ok
(
!!
elfrag
,
"elfrag == NULL
\n
"
);
/* GetEmbeddedFragmentRoots test. */
ret_arr
=
(
void
*
)
0xdeadbeef
;
hr
=
IRawElementProviderFragment_GetEmbeddedFragmentRoots
(
elfrag
,
&
ret_arr
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
ok
(
!
ret_arr
,
"ret_arr != NULL
\n
"
);
/*
* Again, same behavior as simple children. It doesn't just retrieve the
* parent IAccessible, it queries the HWND.
...
...
dlls/uiautomationcore/uia_provider.c
View file @
a35c77fd
...
...
@@ -1005,9 +1005,9 @@ static HRESULT WINAPI msaa_fragment_get_BoundingRectangle(IRawElementProviderFra
static
HRESULT
WINAPI
msaa_fragment_GetEmbeddedFragmentRoots
(
IRawElementProviderFragment
*
iface
,
SAFEARRAY
**
ret_val
)
{
FIXME
(
"%p, %p: stub!
\n
"
,
iface
,
ret_val
);
TRACE
(
"%p, %p
\n
"
,
iface
,
ret_val
);
*
ret_val
=
NULL
;
return
E_NOTIMPL
;
return
S_OK
;
}
static
HRESULT
WINAPI
msaa_fragment_SetFocus
(
IRawElementProviderFragment
*
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