AX: [ATK] object:state-changed notifications missing for multiple ARIA attributes
authorjdiggs@igalia.com <jdiggs@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 29 Sep 2017 00:13:13 +0000 (00:13 +0000)
committerjdiggs@igalia.com <jdiggs@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 29 Sep 2017 00:13:13 +0000 (00:13 +0000)
commit58d3700f2a867206f2be2bc19863adbec6ebe036
tree2cf01b8079c9c9028137a0731ae425db29d22e4b
parentc1cf2c6bd0dfb2fcf386e49c1100328ccd548b14
AX: [ATK] object:state-changed notifications missing for multiple ARIA attributes
https://bugs.webkit.org/show_bug.cgi?id=177542

Source/WebCore:

Add new notification types to AXObjectCache in order to support the notifications
needed, post the notifications to all platforms, emit the signals for ATK.

Reviewed by Chris Fleizach.

Tests: accessibility/gtk/aria-disabled-changed-notification.html
       accessibility/gtk/aria-expanded-changed-notification.html
       accessibility/gtk/aria-pressed-changed-notification.html
       accessibility/gtk/aria-readonly-changed-notification.html
       accessibility/gtk/aria-required-changed-notification.html

* accessibility/AXObjectCache.cpp:
(WebCore::AXObjectCache::handleAttributeChanged):
* accessibility/AXObjectCache.h:
* accessibility/atk/AXObjectCacheAtk.cpp:
(WebCore::AXObjectCache::postPlatformNotification):

Tools:

Add platform support for the notifications. Also add support for getting the
boolean argument indicating whether the state has been set or unset.

Reviewed by Chris Fleizach.

* WebKitTestRunner/InjectedBundle/atk/AccessibilityNotificationHandlerAtk.cpp:

LayoutTests:

Reviewed by Chris Fleizach.

* accessibility/gtk/aria-disabled-changed-notification-expected.txt: Added.
* accessibility/gtk/aria-disabled-changed-notification.html: Added.
* accessibility/gtk/aria-expanded-changed-notification-expected.txt: Added.
* accessibility/gtk/aria-expanded-changed-notification.html: Added.
* accessibility/gtk/aria-pressed-changed-notification-expected.txt: Added.
* accessibility/gtk/aria-pressed-changed-notification.html: Added.
* accessibility/gtk/aria-readonly-changed-notification-expected.txt: Added.
* accessibility/gtk/aria-readonly-changed-notification.html: Added.
* accessibility/gtk/aria-required-changed-notification-expected.txt: Added.
* accessibility/gtk/aria-required-changed-notification.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@222640 268f45cc-cd09-0410-ab3c-d52691b4dbfc
17 files changed:
LayoutTests/ChangeLog
LayoutTests/accessibility/gtk/aria-disabled-changed-notification-expected.txt [new file with mode: 0644]
LayoutTests/accessibility/gtk/aria-disabled-changed-notification.html [new file with mode: 0644]
LayoutTests/accessibility/gtk/aria-expanded-changed-notification-expected.txt [new file with mode: 0644]
LayoutTests/accessibility/gtk/aria-expanded-changed-notification.html [new file with mode: 0644]
LayoutTests/accessibility/gtk/aria-pressed-changed-notification-expected.txt [new file with mode: 0644]
LayoutTests/accessibility/gtk/aria-pressed-changed-notification.html [new file with mode: 0644]
LayoutTests/accessibility/gtk/aria-readonly-changed-notification-expected.txt [new file with mode: 0644]
LayoutTests/accessibility/gtk/aria-readonly-changed-notification.html [new file with mode: 0644]
LayoutTests/accessibility/gtk/aria-required-changed-notification-expected.txt [new file with mode: 0644]
LayoutTests/accessibility/gtk/aria-required-changed-notification.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/accessibility/AXObjectCache.cpp
Source/WebCore/accessibility/AXObjectCache.h
Source/WebCore/accessibility/atk/AXObjectCacheAtk.cpp
Tools/ChangeLog
Tools/WebKitTestRunner/InjectedBundle/atk/AccessibilityNotificationHandlerAtk.cpp