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
26227450
Commit
26227450
authored
Jul 03, 2023
by
Connor McAdams
Committed by
Alexandre Julliard
Jul 10, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uiautomationcore: Add support for matching serverside events through navigation.
Signed-off-by:
Connor McAdams
<
cmcadams@codeweavers.com
>
parent
68d0c88b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
117 additions
and
48 deletions
+117
-48
uiautomation.c
dlls/uiautomationcore/tests/uiautomation.c
+5
-5
uia_classes.idl
dlls/uiautomationcore/uia_classes.idl
+1
-1
uia_event.c
dlls/uiautomationcore/uia_event.c
+111
-42
No files found.
dlls/uiautomationcore/tests/uiautomation.c
View file @
26227450
...
@@ -14063,11 +14063,11 @@ static void test_UiaAddEvent_client_proc(void)
...
@@ -14063,11 +14063,11 @@ static void test_UiaAddEvent_client_proc(void)
SET_EXPECT
(
uia_event_callback
);
SET_EXPECT
(
uia_event_callback
);
post_event_message
(
hwnd
,
WM_UIA_TEST_RAISE_EVENT
,
0
,
PROVIDER_CHILD_ID
,
ProviderOptions_ServerSideProvider
);
post_event_message
(
hwnd
,
WM_UIA_TEST_RAISE_EVENT
,
0
,
PROVIDER_CHILD_ID
,
ProviderOptions_ServerSideProvider
);
todo_wine
ok
(
!
WaitForSingleObject
(
EventData
.
event_handle
,
2000
),
"Wait for event_handle failed.
\n
"
);
ok
(
!
WaitForSingleObject
(
EventData
.
event_handle
,
2000
),
"Wait for event_handle failed.
\n
"
);
todo_wine
CHECK_CALLED
(
prov_callback_base_hwnd
);
CHECK_CALLED
(
prov_callback_base_hwnd
);
todo_wine
CHECK_CALLED_MULTI
(
prov_callback_nonclient
,
2
);
CHECK_CALLED_MULTI
(
prov_callback_nonclient
,
2
);
todo_wine
CHECK_CALLED_MULTI
(
prov_callback_proxy
,
2
);
todo_wine
CHECK_CALLED_MULTI
(
prov_callback_proxy
,
2
);
todo_wine
CHECK_CALLED
(
uia_event_callback
);
CHECK_CALLED
(
uia_event_callback
);
hr
=
UiaRemoveEvent
(
event
);
hr
=
UiaRemoveEvent
(
event
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
...
@@ -14696,7 +14696,7 @@ static void test_UiaAddEvent(const char *name)
...
@@ -14696,7 +14696,7 @@ static void test_UiaAddEvent(const char *name)
}
}
}
}
todo_wine
CHECK_CALLED_AT_LEAST
(
winproc_GETOBJECT_UiaRoot
,
5
);
CHECK_CALLED_AT_LEAST
(
winproc_GETOBJECT_UiaRoot
,
5
);
GetExitCodeProcess
(
proc
.
hProcess
,
&
exit_code
);
GetExitCodeProcess
(
proc
.
hProcess
,
&
exit_code
);
if
(
exit_code
>
255
)
if
(
exit_code
>
255
)
ok
(
0
,
"unhandled exception %08x in child process %04x
\n
"
,
(
UINT
)
exit_code
,
(
UINT
)
GetProcessId
(
proc
.
hProcess
));
ok
(
0
,
"unhandled exception %08x in child process %04x
\n
"
,
(
UINT
)
exit_code
,
(
UINT
)
GetProcessId
(
proc
.
hProcess
));
...
...
dlls/uiautomationcore/uia_classes.idl
View file @
26227450
...
@@ -75,7 +75,7 @@ library UIA_wine_private
...
@@ -75,7 +75,7 @@ library UIA_wine_private
HRESULT
advise_events
(
[
in
]
BOOL
advise_added
,
[
in
]
long
adviser_start_idx
)
;
HRESULT
advise_events
(
[
in
]
BOOL
advise_added
,
[
in
]
long
adviser_start_idx
)
;
HRESULT
set_event_data
(
[
in
]
const
GUID
*
event_guid
,
[
in
]
long
scope
,
[
in
]
VARIANT
runtime_id
,
HRESULT
set_event_data
(
[
in
]
const
GUID
*
event_guid
,
[
in
]
long
scope
,
[
in
]
VARIANT
runtime_id
,
[
in
]
IWineUiaEvent
*
event_iface
)
;
[
in
]
IWineUiaEvent
*
event_iface
)
;
HRESULT
raise_event
(
[
in
]
VARIANT
in_node
)
;
HRESULT
raise_event
(
[
in
]
VARIANT
in_node
,
[
in
]
VARIANT
in_nav_start_node
)
;
}
}
[
[
...
...
dlls/uiautomationcore/uia_event.c
View file @
26227450
This diff is collapsed.
Click to expand it.
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