Commit deb75580 authored by Jacobo Aragunde Pérez's avatar Jacobo Aragunde Pérez Committed by Commit Bot

Process ax::mojom::Event::kAlert in the auralinux backend.

This event is emitted by alert-like contents like bubbles or infobars.
The auralinux backend now emits the platform event
"object:state-changed:showing".

It fixes one aspect of the bug 1052675: there was no event indicating
the appearance of the bubble.

Bug: 1052675
Change-Id: I73a8441b457088261e70dbddb4c00795c8553a1a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2062349
Commit-Queue: Jacobo Aragunde Pérez <jaragunde@igalia.com>
Reviewed-by: default avatarJoanmarie Diggs <jdiggs@igalia.com>
Cr-Commit-Position: refs/heads/master@{#755380}
parent 9bee9146
...@@ -3829,6 +3829,11 @@ void AXPlatformNodeAuraLinux::OnInvalidStatusChanged() { ...@@ -3829,6 +3829,11 @@ void AXPlatformNodeAuraLinux::OnInvalidStatusChanged() {
GetData().GetInvalidState() != ax::mojom::InvalidState::kFalse); GetData().GetInvalidState() != ax::mojom::InvalidState::kFalse);
} }
void AXPlatformNodeAuraLinux::OnAlertShown() {
atk_object_notify_state_change(ATK_OBJECT(GetOrCreateAtkObject()),
ATK_STATE_SHOWING, TRUE);
}
void AXPlatformNodeAuraLinux::NotifyAccessibilityEvent( void AXPlatformNodeAuraLinux::NotifyAccessibilityEvent(
ax::mojom::Event event_type) { ax::mojom::Event event_type) {
if (!GetOrCreateAtkObject()) if (!GetOrCreateAtkObject())
...@@ -3904,6 +3909,9 @@ void AXPlatformNodeAuraLinux::NotifyAccessibilityEvent( ...@@ -3904,6 +3909,9 @@ void AXPlatformNodeAuraLinux::NotifyAccessibilityEvent(
// kLoadComplete. // kLoadComplete.
OnDocumentTitleChanged(); OnDocumentTitleChanged();
break; break;
case ax::mojom::Event::kAlert:
OnAlertShown();
break;
default: default:
break; break;
} }
......
...@@ -215,6 +215,7 @@ class AX_EXPORT AXPlatformNodeAuraLinux : public AXPlatformNodeBase { ...@@ -215,6 +215,7 @@ class AX_EXPORT AXPlatformNodeAuraLinux : public AXPlatformNodeBase {
void OnParentChanged(); void OnParentChanged();
void OnWindowVisibilityChanged(); void OnWindowVisibilityChanged();
void OnScrolledToAnchor(); void OnScrolledToAnchor();
void OnAlertShown();
void ResendFocusSignalsForCurrentlyFocusedNode(); void ResendFocusSignalsForCurrentlyFocusedNode();
bool SupportsSelectionWithAtkSelection(); bool SupportsSelectionWithAtkSelection();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment