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

Issue 2530073002: Add kAccessibilityFocusFallsbackToWidget property (Closed)

Created:
4 years ago by yawano
Modified:
4 years ago
Reviewers:
dmazzoni, reveman, sky
CC:
reveman, aboxhall+watch_chromium.org, chromium-reviews, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, groby+bubble_chromium.org, hcarmona+bubble_chromium.org, je_julie, msw+watch_chromium.org, nektar+watch_chromium.org, rouslan+bubble_chromium.org, sky, tfarina, yuzo+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add kAccessibilityFocusFallsbackToWidget property - Added kAccessibilityFocusFallsbackToWidget property to aura::Window. - Default value of kAccessibilityFocusFallsbackToWidget is true. - kAccessibilityFocusFallsbackToWidget is set to false for arc window. BUG=661061 TEST=manually tested as described in the issue; User can navigate elements in Android window by using TalkBack. interactive_ui_tests:SpokenFeedbackTest Committed: https://crrev.com/7f0cf5b355d668d98b8097e850eb33a9b86a727a Cr-Commit-Position: refs/heads/master@{#437469}

Patch Set 1 #

Patch Set 2 : Change test cases #

Total comments: 4

Patch Set 3 : Address comments. #

Patch Set 4 : Remove unnecessary blank line. #

Total comments: 6

Patch Set 5 : Add comments and use DCHECK #

Patch Set 6 : Fix condition in DCHECK #

Total comments: 2

Patch Set 7 : Check whether the window is arc or not #

Total comments: 7

Patch Set 8 : Add kAccessibilityFocusFallsbackToWidgetKey #

Patch Set 9 : Fix AxAuraObjCache #

Total comments: 2

Patch Set 10 : Fix style. #

Total comments: 2

Patch Set 11 : Fix a nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -5 lines) Patch
M chrome/browser/chromeos/accessibility/spoken_feedback_browsertest.cc View 1 2 2 chunks +11 lines, -4 lines 0 comments Download
M components/exo/shell_surface.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M ui/aura/client/aura_constants.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
M ui/aura/client/aura_constants.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/accessibility/ax_aura_obj_cache.cc View 1 2 3 4 5 6 7 8 9 2 chunks +9 lines, -1 line 0 comments Download

Messages

Total messages: 78 (42 generated)
yawano
dmazzoni@: PTAL chrome/browser/chromeos/accessibility/spoken_feedback_browsertest.cc and ui/views/accessibility/ax_aura_obj_cache.cc Especially, please take a look whether changes in spoken_feedback_browsertest.cc are ...
4 years ago (2016-11-29 05:18:29 UTC) #6
dmazzoni
Rather than marking the bubble dialog root view as accessibility focusable, would it be possible ...
4 years ago (2016-11-29 17:50:17 UTC) #12
yawano
Reviewers: -msw@, +sky@, +reveman@ sky@: PTAL ui/views/widget/widget.cc. reveman@: PTAL components/exo/shell_surface.cc Thank you! dmazzoni@: Thank you ...
4 years ago (2016-11-30 10:55:55 UTC) #18
sky
https://codereview.chromium.org/2530073002/diff/60001/ui/views/widget/widget.cc File ui/views/widget/widget.cc (right): https://codereview.chromium.org/2530073002/diff/60001/ui/views/widget/widget.cc#newcode334 ui/views/widget/widget.cc:334: root_view_->SetFocusBehavior(View::FocusBehavior::ACCESSIBLE_ONLY); Can you clarify why you want this? The ...
4 years ago (2016-11-30 16:26:04 UTC) #21
reveman
https://codereview.chromium.org/2530073002/diff/60001/components/exo/shell_surface.cc File components/exo/shell_surface.cc (right): https://codereview.chromium.org/2530073002/diff/60001/components/exo/shell_surface.cc#newcode1024 components/exo/shell_surface.cc:1024: if (root_view != nullptr) { nit: s/root_view != nullptr/root_view/ ...
4 years ago (2016-11-30 17:00:40 UTC) #22
dmazzoni
On 2016/11/30 17:00:40, reveman wrote: > https://codereview.chromium.org/2530073002/diff/60001/components/exo/shell_surface.cc > File components/exo/shell_surface.cc (right): > > https://codereview.chromium.org/2530073002/diff/60001/components/exo/shell_surface.cc#newcode1024 > ...
4 years ago (2016-11-30 22:50:12 UTC) #23
yawano
Sorry, I forgot to update description. I've added comments in the code. More background about ...
4 years ago (2016-12-01 00:24:24 UTC) #26
sky
https://codereview.chromium.org/2530073002/diff/100001/ui/views/widget/widget.cc File ui/views/widget/widget.cc (right): https://codereview.chromium.org/2530073002/diff/100001/ui/views/widget/widget.cc#newcode336 ui/views/widget/widget.cc:336: root_view_->SetFocusBehavior(View::FocusBehavior::ACCESSIBLE_ONLY); Again, might this result in trying to focus ...
4 years ago (2016-12-01 00:36:59 UTC) #27
reveman
components/exo/shell_surface.cc lgtm
4 years ago (2016-12-01 00:39:31 UTC) #28
yawano
https://codereview.chromium.org/2530073002/diff/100001/ui/views/widget/widget.cc File ui/views/widget/widget.cc (right): https://codereview.chromium.org/2530073002/diff/100001/ui/views/widget/widget.cc#newcode336 ui/views/widget/widget.cc:336: root_view_->SetFocusBehavior(View::FocusBehavior::ACCESSIBLE_ONLY); On 2016/12/01 00:36:59, sky wrote: > Again, might ...
4 years ago (2016-12-01 00:47:08 UTC) #29
sky
On 2016/12/01 00:47:08, yawano wrote: > https://codereview.chromium.org/2530073002/diff/100001/ui/views/widget/widget.cc > File ui/views/widget/widget.cc (right): > > https://codereview.chromium.org/2530073002/diff/100001/ui/views/widget/widget.cc#newcode336 > ...
4 years ago (2016-12-01 03:18:46 UTC) #30
yawano
On 2016/12/01 03:18:46, sky wrote: > On 2016/12/01 00:47:08, yawano wrote: > > > https://codereview.chromium.org/2530073002/diff/100001/ui/views/widget/widget.cc ...
4 years ago (2016-12-01 03:41:32 UTC) #31
sky
On Wed, Nov 30, 2016 at 7:41 PM, <yawano@chromium.org> wrote: > On 2016/12/01 03:18:46, sky ...
4 years ago (2016-12-01 15:54:39 UTC) #32
dmazzoni
On 2016/12/01 15:54:39, sky wrote: > > No, this should be in Chrome side, IIUC. ...
4 years ago (2016-12-01 21:23:08 UTC) #33
yawano
On 2016/12/01 21:23:08, dmazzoni wrote: > On 2016/12/01 15:54:39, sky wrote: > > > No, ...
4 years ago (2016-12-02 01:19:57 UTC) #34
yawano
reveman@, sky@: moving from reviewers to CC. Changed to directly check whether the window is ...
4 years ago (2016-12-02 09:24:40 UTC) #39
dmazzoni
lgtm This looks like a reasonable fix to merge, then it'd be nice to find ...
4 years ago (2016-12-02 17:11:07 UTC) #43
sky
https://codereview.chromium.org/2530073002/diff/120001/ui/views/accessibility/ax_aura_obj_cache.cc File ui/views/accessibility/ax_aura_obj_cache.cc (right): https://codereview.chromium.org/2530073002/diff/120001/ui/views/accessibility/ax_aura_obj_cache.cc#newcode31 ui/views/accessibility/ax_aura_obj_cache.cc:31: if (!window || window->GetName() != kExoShellSurfaceWindowName) Why do you ...
4 years ago (2016-12-02 17:49:57 UTC) #45
sky
https://codereview.chromium.org/2530073002/diff/120001/ui/views/accessibility/ax_aura_obj_cache.cc File ui/views/accessibility/ax_aura_obj_cache.cc (right): https://codereview.chromium.org/2530073002/diff/120001/ui/views/accessibility/ax_aura_obj_cache.cc#newcode31 ui/views/accessibility/ax_aura_obj_cache.cc:31: if (!window || window->GetName() != kExoShellSurfaceWindowName) On 2016/12/02 17:49:56, ...
4 years ago (2016-12-02 17:50:40 UTC) #46
yawano
https://codereview.chromium.org/2530073002/diff/120001/ui/views/accessibility/ax_aura_obj_cache.cc File ui/views/accessibility/ax_aura_obj_cache.cc (right): https://codereview.chromium.org/2530073002/diff/120001/ui/views/accessibility/ax_aura_obj_cache.cc#newcode31 ui/views/accessibility/ax_aura_obj_cache.cc:31: if (!window || window->GetName() != kExoShellSurfaceWindowName) On 2016/12/02 17:50:40, ...
4 years ago (2016-12-05 02:16:36 UTC) #47
sky
Ok, makes sense
4 years ago (2016-12-05 16:02:57 UTC) #48
reveman
https://codereview.chromium.org/2530073002/diff/120001/ui/views/accessibility/ax_aura_obj_cache.cc File ui/views/accessibility/ax_aura_obj_cache.cc (right): https://codereview.chromium.org/2530073002/diff/120001/ui/views/accessibility/ax_aura_obj_cache.cc#newcode31 ui/views/accessibility/ax_aura_obj_cache.cc:31: if (!window || window->GetName() != kExoShellSurfaceWindowName) On 2016/12/02 at ...
4 years ago (2016-12-05 16:42:37 UTC) #50
yawano
> exo::ShellSurface::GetMainSurface can be used to more efficiently determine if a > window is an ...
4 years ago (2016-12-06 11:09:43 UTC) #51
sky
https://codereview.chromium.org/2530073002/diff/120001/ui/views/accessibility/ax_aura_obj_cache.cc File ui/views/accessibility/ax_aura_obj_cache.cc (right): https://codereview.chromium.org/2530073002/diff/120001/ui/views/accessibility/ax_aura_obj_cache.cc#newcode30 ui/views/accessibility/ax_aura_obj_cache.cc:30: bool IsArcWindow(aura::Window* window) { Views shouldn't need to know ...
4 years ago (2016-12-06 17:23:21 UTC) #52
yawano
Added kAccessibilityFocusFallsbackToWidget and changed AxAuraObjCache to check it. PTAL again as we've changed how to ...
4 years ago (2016-12-07 11:10:00 UTC) #53
yawano
Updated subject and description of this CL.
4 years ago (2016-12-07 11:13:09 UTC) #55
reveman
components/exo lgtm
4 years ago (2016-12-07 16:43:17 UTC) #60
sky
LGTM - thanks!
4 years ago (2016-12-07 17:52:39 UTC) #61
yawano
dmazzoni@: fixed ax_aura_obj_cache.cc. PTAL c/b/chromeos/accessibility and ui/views/accessibility. Thank you!
4 years ago (2016-12-08 07:31:08 UTC) #66
sky
SLGTM https://codereview.chromium.org/2530073002/diff/160001/ui/views/accessibility/ax_aura_obj_cache.cc File ui/views/accessibility/ax_aura_obj_cache.cc (right): https://codereview.chromium.org/2530073002/diff/160001/ui/views/accessibility/ax_aura_obj_cache.cc#newcode170 ui/views/accessibility/ax_aura_obj_cache.cc:170: } else { chromium style is no else ...
4 years ago (2016-12-08 16:07:18 UTC) #67
yawano
Thank you! https://codereview.chromium.org/2530073002/diff/160001/ui/views/accessibility/ax_aura_obj_cache.cc File ui/views/accessibility/ax_aura_obj_cache.cc (right): https://codereview.chromium.org/2530073002/diff/160001/ui/views/accessibility/ax_aura_obj_cache.cc#newcode170 ui/views/accessibility/ax_aura_obj_cache.cc:170: } else { On 2016/12/08 16:07:18, sky ...
4 years ago (2016-12-09 01:40:00 UTC) #68
dmazzoni
lgtm, thanks! https://codereview.chromium.org/2530073002/diff/180001/ui/aura/client/aura_constants.h File ui/aura/client/aura_constants.h (right): https://codereview.chromium.org/2530073002/diff/180001/ui/aura/client/aura_constants.h#newcode28 ui/aura/client/aura_constants.h:28: // A property key to store whether ...
4 years ago (2016-12-09 03:48:37 UTC) #69
yawano
Thank you! https://codereview.chromium.org/2530073002/diff/180001/ui/aura/client/aura_constants.h File ui/aura/client/aura_constants.h (right): https://codereview.chromium.org/2530073002/diff/180001/ui/aura/client/aura_constants.h#newcode28 ui/aura/client/aura_constants.h:28: // A property key to store whether ...
4 years ago (2016-12-09 03:52:50 UTC) #70
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2530073002/200001
4 years ago (2016-12-09 03:54:03 UTC) #73
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years ago (2016-12-09 04:46:55 UTC) #76
commit-bot: I haz the power
4 years ago (2016-12-09 04:49:19 UTC) #78
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/7f0cf5b355d668d98b8097e850eb33a9b86a727a
Cr-Commit-Position: refs/heads/master@{#437469}

Powered by Google App Engine
This is Rietveld 408576698