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

Issue 640093003: Resolve lint warnings related to ClickableViewAccessibility when a class overrides onTouch event. (Closed)

Created:
6 years, 2 months ago by wajahat
Modified:
6 years, 2 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, Abhishek, Jitu( very slow this week)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Suppress lint warnings related to ClickableViewAccessibility while implementing onTouchEvent() The following lint warnings are reported when chrome shell is built: 1) org/chromium/content/browser/PopupZoomer.class Custom view org/chromium/content/browser/PopupZoomer overrides onTouchEvent but not performClick: ClickableViewAccessibility [warning] 2) org/chromium/content/browser/input/PopupTouchHandleDrawable.class Custom view org/chromium/content/browser/input/PopupTouchHandleDrawable overrides onTouchEvent but not performClick: ClickableViewAccessibility [warning] 3) org/chromium/chrome/shell/ChromeShellToolbar$7.class org/chromium/chrome/shell/ChromeShellToolbar$7#onTouch should call View#performClick when a click is detected: ClickableViewAccessibility [warning] 4) org/chromium/chrome/browser/appmenu/AppMenuButtonHelper.class org/chromium/chrome/browser/appmenu/AppMenuButtonHelper#onTouch should call View#performClick when a click is detected: ClickableViewAccessibility [warning] As performClick is not required to be overriden hence these warnings can be suppressed. BUG=None. Committed: https://crrev.com/813cb6cd34822072dd6b0bc1744c31ff4c0bac88 Cr-Commit-Position: refs/heads/master@{#300847}

Patch Set 1 #

Patch Set 2 : resolving lints #

Total comments: 7

Patch Set 3 : reverting previous changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -3 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuButtonHelper.java View 2 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellToolbar.java View 2 chunks +2 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/PopupZoomer.java View 2 2 chunks +2 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/input/PopupTouchHandleDrawable.java View 1 2 3 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 22 (4 generated)
wajahat
Please review, Thanks!
6 years, 2 months ago (2014-10-09 12:13:03 UTC) #2
aurimas (slooooooooow)
+newt: thoughts?
6 years, 2 months ago (2014-10-09 22:18:21 UTC) #4
newt (away)
These lint warnings are legitimate problems that need to be fixed. They prevent accessibility (e.g. ...
6 years, 2 months ago (2014-10-09 22:39:04 UTC) #5
wajahat
On 2014/10/09 22:39:04, newt wrote: > These lint warnings are legitimate problems that need to ...
6 years, 2 months ago (2014-10-13 14:53:22 UTC) #6
wajahat
On 2014/10/13 14:53:22, wajahat wrote: > On 2014/10/09 22:39:04, newt wrote: > > These lint ...
6 years, 2 months ago (2014-10-15 04:46:19 UTC) #7
newt (away)
jdduke: Could you look at the comment in PopupTouchHandleDrawable? https://codereview.chromium.org/640093003/diff/50001/chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuButtonHelper.java File chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuButtonHelper.java (right): https://codereview.chromium.org/640093003/diff/50001/chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuButtonHelper.java#newcode92 chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuButtonHelper.java:92: ...
6 years, 2 months ago (2014-10-20 22:20:53 UTC) #8
jdduke (slow)
https://codereview.chromium.org/640093003/diff/50001/content/public/android/java/src/org/chromium/content/browser/input/PopupTouchHandleDrawable.java File content/public/android/java/src/org/chromium/content/browser/input/PopupTouchHandleDrawable.java (right): https://codereview.chromium.org/640093003/diff/50001/content/public/android/java/src/org/chromium/content/browser/input/PopupTouchHandleDrawable.java#newcode131 content/public/android/java/src/org/chromium/content/browser/input/PopupTouchHandleDrawable.java:131: performClick(); On 2014/10/20 22:20:53, newt wrote: > This isn't ...
6 years, 2 months ago (2014-10-20 23:06:17 UTC) #10
wajahat
Comments: PopupZoomer doesn't appear in accessibility mode, app menu works fine in accessibility mode event ...
6 years, 2 months ago (2014-10-21 14:34:56 UTC) #11
jdduke (slow)
Changes to PopupTouchHandleDrawable.java look good.
6 years, 2 months ago (2014-10-21 15:22:09 UTC) #12
wajahat
On 2014/10/21 15:22:09, jdduke wrote: > Changes to PopupTouchHandleDrawable.java look good. @newt comments ???
6 years, 2 months ago (2014-10-22 05:41:15 UTC) #13
newt (away)
lgtm
6 years, 2 months ago (2014-10-22 06:42:18 UTC) #14
wajahat
On 2014/10/21 15:22:09, jdduke wrote: > Changes to PopupTouchHandleDrawable.java look good. @jdduke comments? can we ...
6 years, 2 months ago (2014-10-22 10:51:36 UTC) #15
jdduke (slow)
On 2014/10/22 10:51:36, wajahat wrote: > On 2014/10/21 15:22:09, jdduke wrote: > > Changes to ...
6 years, 2 months ago (2014-10-22 12:56:52 UTC) #16
wajahat
On 2014/10/22 12:56:52, jdduke wrote: > On 2014/10/22 10:51:36, wajahat wrote: > > On 2014/10/21 ...
6 years, 2 months ago (2014-10-22 13:01:14 UTC) #17
Yaron
rs lgtm (newt already reviewed)
6 years, 2 months ago (2014-10-22 18:40:26 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/640093003/80001
6 years, 2 months ago (2014-10-23 05:35:12 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:80001)
6 years, 2 months ago (2014-10-23 06:22:53 UTC) #21
commit-bot: I haz the power
6 years, 2 months ago (2014-10-23 06:23:44 UTC) #22
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/813cb6cd34822072dd6b0bc1744c31ff4c0bac88
Cr-Commit-Position: refs/heads/master@{#300847}

Powered by Google App Engine
This is Rietveld 408576698