Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Issue 975113002: Resurrect Aura Linux accessibility. (Closed)

Created:
5 years, 9 months ago by dmazzoni
Modified:
5 years, 9 months ago
CC:
chromium-reviews, je_julie(Not used), plundblad+watch_chromium.org, aboxhall+watch_chromium.org, tfarina, nektar+watch_chromium.org, yuzo+watch_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Resurrect Aura Linux accessibility. This is based in part on the ATK code we had as part of the Linux GTK port that went away, but now rewritten on top of AXPlatformNode. This patch successfully exposes an accessibility tree for Views and exposes top-level windows and the the role and name of each View. You can test it using accerciser. This is just to get the infrastructure in place - we need to implement more of the interface for it to be useful for accessibility tools. BUG=463671 Committed: https://crrev.com/f65bad877350b5f7857d29e4b1b0d4d3f5c7cb6d Cr-Commit-Position: refs/heads/master@{#320383}

Patch Set 1 #

Patch Set 2 : Fixed gn build #

Patch Set 3 : Fix chromeos build #

Patch Set 4 : Eliminate dependency on atk_bridge_adaptor_init #

Patch Set 5 : Rebase, suppress clang warning #

Patch Set 6 : Suppress clang warning #

Total comments: 8

Patch Set 7 : Respond to feedback, plumb through application name #

Patch Set 8 : Call g_type_init #

Patch Set 9 : Return program name as utf-8 and try without g_type_init #

Patch Set 10 : Finally fix clang warning #

Total comments: 8

Patch Set 11 : Move platform_node_ construction to initializer list #

Patch Set 12 : Revert unintentional change to content_tests #

Patch Set 13 : Revert change to tools/ too #

Patch Set 14 : Add g_type_init only for older glib versions #

Patch Set 15 : Call g_type_init from ax_platform_node_auralinux instead #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+877 lines, -4 lines) Patch
M build/config/linux/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +19 lines, -0 lines 0 comments Download
M build/config/linux/pkg-config.py View 1 2 3 2 chunks +13 lines, -0 lines 0 comments Download
M build/linux/system.gyp View 1 2 3 1 chunk +24 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/chrome_views_delegate.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/chrome_views_delegate.cc View 1 2 3 4 5 6 2 chunks +5 lines, -0 lines 0 comments Download
A tools/accessibility/dump_accessibility_tree_auralinux.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +32 lines, -0 lines 0 comments Download
M ui/accessibility/BUILD.gn View 1 2 3 4 5 6 7 8 9 2 chunks +17 lines, -0 lines 0 comments Download
M ui/accessibility/accessibility.gyp View 1 2 3 4 5 2 chunks +25 lines, -0 lines 0 comments Download
A ui/accessibility/platform/atk_util_auralinux.h View 1 2 3 4 5 6 1 chunk +30 lines, -0 lines 0 comments Download
A ui/accessibility/platform/atk_util_auralinux.cc View 1 2 3 4 5 6 7 8 14 1 chunk +161 lines, -0 lines 0 comments Download
M ui/accessibility/platform/ax_platform_node.cc View 1 chunk +1 line, -1 line 0 comments Download
A ui/accessibility/platform/ax_platform_node_auralinux.h View 1 chunk +51 lines, -0 lines 0 comments Download
A ui/accessibility/platform/ax_platform_node_auralinux.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +277 lines, -0 lines 0 comments Download
M ui/accessibility/platform/ax_platform_node_base.h View 2 chunks +3 lines, -1 line 0 comments Download
M ui/gfx/native_widget_types.h View 2 chunks +11 lines, -0 lines 0 comments Download
M ui/views/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/accessibility/native_view_accessibility.cc View 2 chunks +3 lines, -2 lines 0 comments Download
A ui/views/accessibility/native_view_accessibility_auralinux.h View 1 2 3 4 5 6 1 chunk +27 lines, -0 lines 0 comments Download
A ui/views/accessibility/native_view_accessibility_auralinux.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +164 lines, -0 lines 0 comments Download
M ui/views/views.gyp View 2 chunks +3 lines, -0 lines 1 comment Download
M ui/views/views_delegate.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/views_delegate.cc View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (5 generated)
dmazzoni
Ready for initial review. I can't figure out why the clang gn build is failing, ...
5 years, 9 months ago (2015-03-11 09:01:00 UTC) #2
Peter Lundblad
lgtm Just some minor thigns to fix.
5 years, 9 months ago (2015-03-11 14:55:00 UTC) #3
Peter Lundblad
lgtm Just some minor thigns to fix. https://codereview.chromium.org/975113002/diff/100001/ui/accessibility/platform/atk_util_auralinux.h File ui/accessibility/platform/atk_util_auralinux.h (right): https://codereview.chromium.org/975113002/diff/100001/ui/accessibility/platform/atk_util_auralinux.h#newcode17 ui/accessibility/platform/atk_util_auralinux.h:17: public: nit: ...
5 years, 9 months ago (2015-03-11 14:58:21 UTC) #4
dmazzoni
https://codereview.chromium.org/975113002/diff/100001/ui/accessibility/platform/atk_util_auralinux.h File ui/accessibility/platform/atk_util_auralinux.h (right): https://codereview.chromium.org/975113002/diff/100001/ui/accessibility/platform/atk_util_auralinux.h#newcode17 ui/accessibility/platform/atk_util_auralinux.h:17: public: On 2015/03/11 14:58:21, Peter Lundblad wrote: > nit: ...
5 years, 9 months ago (2015-03-11 18:39:53 UTC) #5
dmazzoni
+dpranke for build/ +sky for */views/*
5 years, 9 months ago (2015-03-11 22:36:39 UTC) #7
sky
https://codereview.chromium.org/975113002/diff/180001/ui/views/accessibility/native_view_accessibility_auralinux.cc File ui/views/accessibility/native_view_accessibility_auralinux.cc (right): https://codereview.chromium.org/975113002/diff/180001/ui/views/accessibility/native_view_accessibility_auralinux.cc#newcode91 ui/views/accessibility/native_view_accessibility_auralinux.cc:91: if (!root_view) Can this really happen? https://codereview.chromium.org/975113002/diff/180001/ui/views/accessibility/native_view_accessibility_auralinux.cc#newcode129 ui/views/accessibility/native_view_accessibility_auralinux.cc:129: platform_node_ ...
5 years, 9 months ago (2015-03-11 23:05:57 UTC) #8
Dirk Pranke
build changes lgtm .
5 years, 9 months ago (2015-03-11 23:09:15 UTC) #9
dmazzoni
https://codereview.chromium.org/975113002/diff/180001/ui/views/accessibility/native_view_accessibility_auralinux.cc File ui/views/accessibility/native_view_accessibility_auralinux.cc (right): https://codereview.chromium.org/975113002/diff/180001/ui/views/accessibility/native_view_accessibility_auralinux.cc#newcode91 ui/views/accessibility/native_view_accessibility_auralinux.cc:91: if (!root_view) On 2015/03/11 23:05:57, sky wrote: > Can ...
5 years, 9 months ago (2015-03-11 23:38:56 UTC) #10
sky
Ok, LGTM
5 years, 9 months ago (2015-03-12 15:28:00 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/975113002/280001
5 years, 9 months ago (2015-03-12 21:23:41 UTC) #14
commit-bot: I haz the power
Committed patchset #15 (id:280001)
5 years, 9 months ago (2015-03-12 22:00:02 UTC) #15
commit-bot: I haz the power
Patchset 15 (id:??) landed as https://crrev.com/f65bad877350b5f7857d29e4b1b0d4d3f5c7cb6d Cr-Commit-Position: refs/heads/master@{#320383}
5 years, 9 months ago (2015-03-12 22:00:31 UTC) #16
gunsch
https://codereview.chromium.org/975113002/diff/280001/ui/views/views.gyp File ui/views/views.gyp (right): https://codereview.chromium.org/975113002/diff/280001/ui/views/views.gyp#newcode640 ui/views/views.gyp:640: '../../build/linux/system.gyp:atk', This definition is guarded with "use_ozone==0", but the ...
5 years, 9 months ago (2015-03-12 22:44:13 UTC) #18
dmazzoni
Sure, I didn't realize we had that combination of flags, I'll fix it to exclude ...
5 years, 9 months ago (2015-03-12 23:14:08 UTC) #19
alexmos
5 years, 9 months ago (2015-03-12 23:16:40 UTC) #20
Message was sent while issue was closed.
A revert of this CL (patchset #15 id:280001) has been created in
https://codereview.chromium.org/1002993002/ by alexmos@chromium.org.

The reason for reverting is: Caused compile failure on Linux x64 bot
(http://build.chromium.org/p/chromium.chrome/builders/Google%20Chrome%20Linux%...)

Output snippet:
FAILED: cd ../../chrome; flock -- /tmp/linux_package_lock bash
../out/Release/installer/debian/build.sh -o../out/Release -b ../out/Release -a
x64 -c unstable
dpkg-shlibdeps: warning: binaries to analyze should already be installed in
their package's directory.
2a3
> libatk1.0-0 (>= 1.12.4)

ERROR: Shared library dependencies changed!
If this is intentional, please update:
chrome/installer/linux/debian/expected_deps_ia32
chrome/installer/linux/debian/expected_deps_x64
.

Powered by Google App Engine
This is Rietveld 408576698