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

Issue 513483002: Clean up setting accessibility focus. (Closed)

Created:
6 years, 3 months ago by dmazzoni
Modified:
6 years, 3 months ago
Reviewers:
Peter Lundblad
CC:
chromium-reviews, plundblad+watch_chromium.org, aboxhall+watch_chromium.org, jam, yuzo+watch_chromium.org, darin-cc_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Clean up setting accessibility focus. Consolidate the code to set accessibility focus to one place. Fix it so we never set accessibility focus to the same id twice in a row, as that puts things in a weird state (because we then get a "clear" accessibility focus action on the current focused view). In a couple of places where we want to explicitly update the focus, set focus away and then back again so Android can't ignore it. BUG=407871 Committed: https://crrev.com/c1ae0872e4c0336406ad47f6ab332174c3da80d5 Cr-Commit-Position: refs/heads/master@{#292386}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address feedback #

Patch Set 3 : Fix return value #

Patch Set 4 : Try it with focus clear instead #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -24 lines) Patch
M content/public/android/java/src/org/chromium/content/browser/accessibility/BrowserAccessibilityManager.java View 1 2 3 5 chunks +29 lines, -24 lines 1 comment Download

Messages

Total messages: 13 (0 generated)
dmazzoni
dmazzoni@chromium.org changed reviewers: + plundblad@chromium.org
6 years, 3 months ago (2014-08-26 23:07:23 UTC) #1
dmazzoni
6 years, 3 months ago (2014-08-26 23:07:23 UTC) #2
Peter Lundblad
lgtm Good call! I think our focus handling when the frame is not initialized is ...
6 years, 3 months ago (2014-08-27 09:10:58 UTC) #3
dmazzoni
https://codereview.chromium.org/513483002/diff/1/content/public/android/java/src/org/chromium/content/browser/accessibility/BrowserAccessibilityManager.java File content/public/android/java/src/org/chromium/content/browser/accessibility/BrowserAccessibilityManager.java (right): https://codereview.chromium.org/513483002/diff/1/content/public/android/java/src/org/chromium/content/browser/accessibility/BrowserAccessibilityManager.java#newcode169 content/public/android/java/src/org/chromium/content/browser/accessibility/BrowserAccessibilityManager.java:169: } On 2014/08/27 09:10:58, Peter Lundblad wrote: > The ...
6 years, 3 months ago (2014-08-27 18:32:06 UTC) #4
dmazzoni
https://codereview.chromium.org/513483002/diff/60001/content/public/android/java/src/org/chromium/content/browser/accessibility/BrowserAccessibilityManager.java File content/public/android/java/src/org/chromium/content/browser/accessibility/BrowserAccessibilityManager.java (right): https://codereview.chromium.org/513483002/diff/60001/content/public/android/java/src/org/chromium/content/browser/accessibility/BrowserAccessibilityManager.java#newcode297 content/public/android/java/src/org/chromium/content/browser/accessibility/BrowserAccessibilityManager.java:297: AccessibilityEvent.TYPE_VIEW_ACCESSIBILITY_FOCUS_CLEARED); I changed this to a focus clear, as ...
6 years, 3 months ago (2014-08-27 19:27:12 UTC) #5
dmazzoni
The CQ bit was checked by dmazzoni@chromium.org
6 years, 3 months ago (2014-08-27 19:27:15 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmazzoni@chromium.org/513483002/60001
6 years, 3 months ago (2014-08-27 19:28:35 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 3 months ago (2014-08-27 20:25:56 UTC) #8
commit-bot: I haz the power
Failed to commit the patch.
6 years, 3 months ago (2014-08-27 20:25:57 UTC) #9
dmazzoni
The CQ bit was checked by dmazzoni@chromium.org
6 years, 3 months ago (2014-08-28 15:14:33 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmazzoni@chromium.org/513483002/60001
6 years, 3 months ago (2014-08-28 15:16:04 UTC) #11
commit-bot: I haz the power
Committed patchset #4 (id:60001) as f21f1f359b0c650ce177cd07d7143ca4673bb626
6 years, 3 months ago (2014-08-28 15:38:10 UTC) #12
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 02:59:41 UTC) #13
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/c1ae0872e4c0336406ad47f6ab332174c3da80d5
Cr-Commit-Position: refs/heads/master@{#292386}

Powered by Google App Engine
This is Rietveld 408576698