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

Issue 2709883002: Fix fading overlay events (Closed)

Created:
3 years, 10 months ago by mdjones
Modified:
3 years, 10 months ago
Reviewers:
gone
CC:
chromium-reviews, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix fading overlay events Previously the FadingViewObserver had events triggered by setAlpha to avoid null checks required by Android K. This turns out to have issues with calling the "change" event too many times. As a result the list of obscuring views in ChromeActivity gets the same view added to it multiple times, breaking accessibility. This change does two things. First, the event system for the fading view is changed to work based on View's onVisibilityChanged event. The observers are null checked to avoid issues on Android K. Second, the list of obscuring views has been changed to be a set so that it will not contain multiple references to the same view. BUG=689203 Review-Url: https://codereview.chromium.org/2709883002 Cr-Commit-Position: refs/heads/master@{#452190} Committed: https://chromium.googlesource.com/chromium/src/+/e18b88a5d18f93520fe9e97851e14582b0eb5e50

Patch Set 1 #

Total comments: 2

Patch Set 2 : rearrange null check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -4 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/widget/FadingBackgroundView.java View 1 1 chunk +24 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (5 generated)
mdjones
ptal
3 years, 10 months ago (2017-02-21 22:25:37 UTC) #2
gone
lgtm https://codereview.chromium.org/2709883002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/widget/FadingBackgroundView.java File chrome/android/java/src/org/chromium/chrome/browser/widget/FadingBackgroundView.java (right): https://codereview.chromium.org/2709883002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/widget/FadingBackgroundView.java#newcode104 chrome/android/java/src/org/chromium/chrome/browser/widget/FadingBackgroundView.java:104: // This is added for the exclusive purpose ...
3 years, 10 months ago (2017-02-22 18:59:59 UTC) #3
mdjones
https://codereview.chromium.org/2709883002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/widget/FadingBackgroundView.java File chrome/android/java/src/org/chromium/chrome/browser/widget/FadingBackgroundView.java (right): https://codereview.chromium.org/2709883002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/widget/FadingBackgroundView.java#newcode104 chrome/android/java/src/org/chromium/chrome/browser/widget/FadingBackgroundView.java:104: // This is added for the exclusive purpose of ...
3 years, 10 months ago (2017-02-22 20:08:11 UTC) #6
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/2709883002/20001
3 years, 10 months ago (2017-02-22 20:09:01 UTC) #7
commit-bot: I haz the power
3 years, 10 months ago (2017-02-22 20:49:58 UTC) #10
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/e18b88a5d18f93520fe9e97851e1...

Powered by Google App Engine
This is Rietveld 408576698