RESOLVED FIXED Bug 99011
[EFL][GTK]Sharing accessibility support in WebKitTestRunner
https://bugs.webkit.org/show_bug.cgi?id=99011
Summary [EFL][GTK]Sharing accessibility support in WebKitTestRunner
Mateusz Leszko
Reported 2012-10-11 01:12:33 PDT
Extending WebKitTestRunner by adding classes needed to support WAI-ARIA.
Attachments
patch (75.08 KB, patch)
2012-10-31 10:33 PDT, Mateusz Leszko
no flags
Accessibility files from gtk folder are moved to atk folder due to common implementation. Event Type naming changed to default, from Gtk to ATK. (7.61 KB, patch)
2012-11-16 03:31 PST, Mateusz Leszko
mrobinson: review+
buildbot: commit-queue-
Accessibility files from gtk folder are moved to atk folder due to common implementation. Event Type naming changed to default, from Gtk to ATK. (7.59 KB, patch)
2012-11-20 01:50 PST, Mateusz Leszko
m.leszko: review+
Accessibility files from gtk folder are moved to atk folder due to common implementation. Event Type naming changed to default, from Gtk to ATK. (7.59 KB, patch)
2012-11-20 02:03 PST, Mateusz Leszko
no flags
Mateusz Leszko
Comment 1 2012-10-23 05:12:06 PDT
WebKit-EFL implementation seems to be similar to WebKit-GTK. To eliminate code duplication I propose to share those in one directory, like ./Tools/WebKitTestRunner/InjectionBundle/a11y Core implementation should be common and any differences should be dealed with platform specific macros. I propose to move implementation from ./Tools/WebKitTestRunner/InjectionBundle/gtk/Accessiblity* to ./Tools/WebKitTestRunner/InjectionBundle/a11y/Accessiblity*
Mateusz Leszko
Comment 2 2012-10-30 02:45:03 PDT
Due to depend bug 99578 I think "atk" folder name would be better. The question is what with other files from folders gtk and efl: ActivateFontsGtk.cpp InjectedBundleGtk.cpp TestRunnerGtk.cpp We can left it where it is or create: atk/efl atk/gtk folders. Which is better?
Mateusz Leszko
Comment 3 2012-10-31 10:33:58 PDT
Mario Sanchez Prada
Comment 4 2012-11-08 01:15:52 PST
(In reply to comment #2) > Due to depend bug 99578 I think "atk" folder name would be better. The question is what with other files from folders gtk and efl: > ActivateFontsGtk.cpp > InjectedBundleGtk.cpp > TestRunnerGtk.cpp > > We can left it where it is or create: > atk/efl > atk/gtk > folders. Which is better? Those files are more general than AccessibilityUIElement and AccessibilityController (they are not related to accessibility) and so I don't think putting them under and atk/ path would make sense. So, I think the approach you're following in the current patch is the right one.
Mateusz Leszko
Comment 5 2012-11-13 03:15:12 PST
I've compared LayoutTest results, and before and after patch results are the same.
Grzegorz Czajkowski
Comment 6 2012-11-14 07:17:26 PST
Comment on attachment 171683 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=171683&action=review > Tools/ChangeLog:3 > + [EFL] Adding accessibility support for WebKitTestRunner Generally, this title should be the same as bugzilla's one. > Tools/ChangeLog:11 > + (WTR): If there are no changes in below methods I think we can omit them. The implementation has been just moved. Please leave only those ChangeLogs entries: * WebKitTestRunner/InjectedBundle/atk/AccessibilityControllerAtk.cpp: Renamed from Tools/WebKitTestRunner/InjectedBundle/gtk/AccessibilityControllerGtk.cpp. * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp: Renamed from Tools/WebKitTestRunner/InjectedBundle/gtk/AccessibilityUIElementGtk.cpp.
Mario Sanchez Prada
Comment 7 2012-11-15 04:17:51 PST
Comment on attachment 171683 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=171683&action=review > Tools/WebKitTestRunner/InjectedBundle/atk/AccessibilityControllerAtk.cpp:111 > + m_stateChangeListenerId = atk_add_global_event_listener(axObjectEventListener, "Gtk:AtkObject:state-change"); > + m_focusEventListenerId = atk_add_global_event_listener(axObjectEventListener, "Gtk:AtkObject:focus-event"); > + m_activeDescendantChangedListenerId = atk_add_global_event_listener(axObjectEventListener, "Gtk:AtkObject:active-descendant-changed"); > + m_childrenChangedListenerId = atk_add_global_event_listener(axObjectEventListener, "Gtk:AtkObject:children-changed"); > + m_propertyChangedListenerId = atk_add_global_event_listener(axObjectEventListener, "Gtk:AtkObject:property-change"); > + m_visibleDataChangedListenerId = atk_add_global_event_listener(axObjectEventListener, "Gtk:AtkObject:visible-data-changed"); I think we should stop using the "Gtk" namespace in this lines and replace it with "Atk" or "ATK", which is what it's recommended in the ATK documentation (see [1]). We probably have already avoided using "Gtk" in the first place (I think we did it following the example of other implementations, IIRC). This change would not impact functionality and would be more coherent with the intention of writing a Gtk independent implementation of AccessibilityUIElement. > Tools/WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:34 > +#include <gtk/gtk.h> We probably could/should get rid of this include here. I guess. [1] http://developer.gnome.org/atk/stable/AtkUtil.html#atk-add-global-event-listener
Grzegorz Czajkowski
Comment 8 2012-11-16 03:22:50 PST
Comment on attachment 171683 [details] patch Clearing the review flag regarding to the comments (comment 6, comment 7).
Mateusz Leszko
Comment 9 2012-11-16 03:31:01 PST
Created attachment 174636 [details] Accessibility files from gtk folder are moved to atk folder due to common implementation. Event Type naming changed to default, from Gtk to ATK.
Mateusz Leszko
Comment 10 2012-11-16 03:31:35 PST
(In reply to comment #6) > (From update of attachment 171683 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=171683&action=review > > > Tools/ChangeLog:3 > > + [EFL] Adding accessibility support for WebKitTestRunner > > Generally, this title should be the same as bugzilla's one. fixed > > > Tools/ChangeLog:11 > > + (WTR): > > If there are no changes in below methods I think we can omit them. The implementation has been just moved. Please leave only those ChangeLogs entries: > * WebKitTestRunner/InjectedBundle/atk/AccessibilityControllerAtk.cpp: Renamed from Tools/WebKitTestRunner/InjectedBundle/gtk/AccessibilityControllerGtk.cpp. > * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp: Renamed from Tools/WebKitTestRunner/InjectedBundle/gtk/AccessibilityUIElementGtk.cpp. fixed
Mateusz Leszko
Comment 11 2012-11-16 03:34:10 PST
(In reply to comment #7) > (From update of attachment 171683 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=171683&action=review > > > Tools/WebKitTestRunner/InjectedBundle/atk/AccessibilityControllerAtk.cpp:111 > > + m_stateChangeListenerId = atk_add_global_event_listener(axObjectEventListener, "Gtk:AtkObject:state-change"); > > + m_focusEventListenerId = atk_add_global_event_listener(axObjectEventListener, "Gtk:AtkObject:focus-event"); > > + m_activeDescendantChangedListenerId = atk_add_global_event_listener(axObjectEventListener, "Gtk:AtkObject:active-descendant-changed"); > > + m_childrenChangedListenerId = atk_add_global_event_listener(axObjectEventListener, "Gtk:AtkObject:children-changed"); > > + m_propertyChangedListenerId = atk_add_global_event_listener(axObjectEventListener, "Gtk:AtkObject:property-change"); > > + m_visibleDataChangedListenerId = atk_add_global_event_listener(axObjectEventListener, "Gtk:AtkObject:visible-data-changed"); > > I think we should stop using the "Gtk" namespace in this lines and replace it with "Atk" or "ATK", which is what it's recommended in the ATK documentation (see [1]). We probably have already avoided using "Gtk" in the first place (I think we did it following the example of other implementations, IIRC). > > This change would not impact functionality and would be more coherent with the intention of writing a Gtk independent implementation of AccessibilityUIElement. fixed > > > Tools/WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:34 > > +#include <gtk/gtk.h> > > We probably could/should get rid of this include here. I guess. not "build-breaking" after remove so I removed it, as you suggested.
Mario Sanchez Prada
Comment 12 2012-11-16 04:27:36 PST
Comment on attachment 174636 [details] Accessibility files from gtk folder are moved to atk folder due to common implementation. Event Type naming changed to default, from Gtk to ATK. It looks good to me
Grzegorz Czajkowski
Comment 13 2012-11-16 05:07:50 PST
Comment on attachment 174636 [details] Accessibility files from gtk folder are moved to atk folder due to common implementation. Event Type naming changed to default, from Gtk to ATK. View in context: https://bugs.webkit.org/attachment.cgi?id=174636&action=review > Tools/WebKitTestRunner/GNUmakefile.am:97 > + Tools/WebKitTestRunner/InjectedBundle/atk/AccessibilityControllerAtk.cpp \ Please fix spaces before landing.
Build Bot
Comment 14 2012-11-16 19:22:55 PST
Comment on attachment 174636 [details] Accessibility files from gtk folder are moved to atk folder due to common implementation. Event Type naming changed to default, from Gtk to ATK. Attachment 174636 [details] did not pass mac-ews (mac): Output: http://queues.webkit.org/results/14868407 New failing tests: inspector-protocol/nmi-webaudio.html
Mateusz Leszko
Comment 15 2012-11-19 01:29:23 PST
(In reply to comment #14) > (From update of attachment 174636 [details]) > Attachment 174636 [details] did not pass mac-ews (mac): > Output: http://queues.webkit.org/results/14868407 > > New failing tests: > inspector-protocol/nmi-webaudio.html This test is not connected with the patch.
Grzegorz Czajkowski
Comment 16 2012-11-19 06:50:33 PST
CC'ing reviewers.
Mateusz Leszko
Comment 17 2012-11-20 01:50:19 PST
Created attachment 175173 [details] Accessibility files from gtk folder are moved to atk folder due to common implementation. Event Type naming changed to default, from Gtk to ATK.
Mateusz Leszko
Comment 18 2012-11-20 02:03:21 PST
Created attachment 175174 [details] Accessibility files from gtk folder are moved to atk folder due to common implementation. Event Type naming changed to default, from Gtk to ATK.
WebKit Review Bot
Comment 19 2012-11-20 02:25:10 PST
Comment on attachment 175174 [details] Accessibility files from gtk folder are moved to atk folder due to common implementation. Event Type naming changed to default, from Gtk to ATK. Clearing flags on attachment: 175174 Committed r135267: <http://trac.webkit.org/changeset/135267>
WebKit Review Bot
Comment 20 2012-11-20 02:25:16 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.