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

Issue 1129193007: aw: Ensure synchronization of PopupWindow handle visibility/position (Closed)

Created:
5 years, 7 months ago by jdduke (slow)
Modified:
5 years, 7 months ago
Reviewers:
Ted C, no sievers, mohsen
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

aw: Ensure synchronization of PopupWindow handle visibility/position Setting the visibility and position of a PopupWindow does not guarantee that the new visibility/position will take effect in the same frame. This leads to cases where the PopupWindow touch handles can appear out of position for a single frame. Prevent this by delaying visibility updates by one frame when the handles transition from hidden to visible. Also avoid issues where Android rejects one-dimensional selection rect regions, as well as issues where selection bounds queried from inside the selection event callback were stale. BUG=490800 Committed: https://crrev.com/b3446ff33425d6a1944087fdb342cdc8959e7d99 Cr-Commit-Position: refs/heads/master@{#331703}

Patch Set 1 #

Patch Set 2 : CLeanup #

Patch Set 3 : Simpler visibility fix + selection rect fixes #

Patch Set 4 : Tweak comment #

Total comments: 3

Patch Set 5 : Cleanup #

Total comments: 1

Patch Set 6 : Slightly simpler visibility fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -30 lines) Patch
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/input/PopupTouchHandleDrawable.java View 1 2 3 4 5 3 chunks +22 lines, -3 lines 0 comments Download
M ui/touch_selection/touch_selection_controller.h View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M ui/touch_selection/touch_selection_controller.cc View 1 2 3 4 4 chunks +18 lines, -21 lines 0 comments Download
M ui/touch_selection/touch_selection_controller_unittest.cc View 1 2 4 chunks +50 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (6 generated)
jdduke (slow)
+sievers, FYI I pulled this part out from https://codereview.chromium.org/1087893003/ so we can cherry-pick to M44.
5 years, 7 months ago (2015-05-21 19:23:01 UTC) #2
no sievers
+Ted to see if he has any idea why this wouldn't be in the right ...
5 years, 7 months ago (2015-05-21 21:17:12 UTC) #4
jdduke (slow)
On 2015/05/21 21:17:12, sievers wrote: > +Ted to see if he has any idea why ...
5 years, 7 months ago (2015-05-21 21:19:28 UTC) #5
jdduke (slow)
On 2015/05/21 21:19:28, jdduke wrote: > On 2015/05/21 21:17:12, sievers wrote: > > +Ted to ...
5 years, 7 months ago (2015-05-27 18:06:51 UTC) #6
jdduke (slow)
Per offline discussion, there's a much better solution for the stale visibility (a little embarrassing ...
5 years, 7 months ago (2015-05-27 19:49:42 UTC) #9
Ted C
lgtm https://codereview.chromium.org/1129193007/diff/80001/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/1129193007/diff/80001/content/public/android/java/src/org/chromium/content/browser/input/PopupTouchHandleDrawable.java#newcode231 content/public/android/java/src/org/chromium/content/browser/input/PopupTouchHandleDrawable.java:231: updatePosition(); Should we add an assert in updatePosition ...
5 years, 7 months ago (2015-05-27 20:02:03 UTC) #10
jdduke (slow)
https://codereview.chromium.org/1129193007/diff/80001/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/1129193007/diff/80001/content/public/android/java/src/org/chromium/content/browser/input/PopupTouchHandleDrawable.java#newcode231 content/public/android/java/src/org/chromium/content/browser/input/PopupTouchHandleDrawable.java:231: updatePosition(); On 2015/05/27 20:02:03, Ted C wrote: > Should ...
5 years, 7 months ago (2015-05-27 20:05:56 UTC) #11
jdduke (slow)
https://codereview.chromium.org/1129193007/diff/80001/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/1129193007/diff/80001/content/public/android/java/src/org/chromium/content/browser/input/PopupTouchHandleDrawable.java#newcode231 content/public/android/java/src/org/chromium/content/browser/input/PopupTouchHandleDrawable.java:231: updatePosition(); On 2015/05/27 20:05:56, jdduke wrote: > On 2015/05/27 ...
5 years, 7 months ago (2015-05-27 20:07:18 UTC) #12
mohsen
TouchSelectionController changes LGTM.
5 years, 7 months ago (2015-05-27 20:13:14 UTC) #13
Ted C
On 2015/05/27 20:07:18, jdduke wrote: > https://codereview.chromium.org/1129193007/diff/80001/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): > > ...
5 years, 7 months ago (2015-05-27 20:14:20 UTC) #14
jdduke (slow)
https://codereview.chromium.org/1129193007/diff/60002/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/1129193007/diff/60002/content/public/android/java/src/org/chromium/content/browser/input/PopupTouchHandleDrawable.java#newcode229 content/public/android/java/src/org/chromium/content/browser/input/PopupTouchHandleDrawable.java:229: // updates until it has been marked visible. I ...
5 years, 7 months ago (2015-05-27 20:30:40 UTC) #15
jdduke (slow)
OK, per offline discussion Ted I've gone back to a modified version of the original ...
5 years, 7 months ago (2015-05-27 21:21:39 UTC) #16
Ted C
lgtm
5 years, 7 months ago (2015-05-27 21:37:18 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1129193007/110001
5 years, 7 months ago (2015-05-27 22:10:32 UTC) #20
commit-bot: I haz the power
Committed patchset #6 (id:110001)
5 years, 7 months ago (2015-05-28 00:22:07 UTC) #21
commit-bot: I haz the power
5 years, 7 months ago (2015-05-28 00:23:51 UTC) #22
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/b3446ff33425d6a1944087fdb342cdc8959e7d99
Cr-Commit-Position: refs/heads/master@{#331703}

Powered by Google App Engine
This is Rietveld 408576698