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

Issue 1239583003: Update touch selection notification names, add ESTABLISHED. (Closed)

Created:
5 years, 5 months ago by Donn Denman
Modified:
5 years, 4 months ago
CC:
aurimas (slooooooooow), chromium-reviews, pedro (no code reviews)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update touch selection notification names, add ESTABLISHED. Adds notification when a selection is established or dissolved, and changes all the names of the notifications for selection changes that are done when the handles are shown to include _HANDLE_ or _HANDLES_. This additional notification allows instrumentation tests in ContextualSearchManagerTest to wait until the selection is dissolved in the renderer to ensure correct touch handling. Also add a unit test that demonstrates the selection-wait working. BUG=487005 Committed: https://crrev.com/ae67c71852b1daf87e1f3d1661a0519c5e32105c Cr-Commit-Position: refs/heads/master@{#339291}

Patch Set 1 #

Patch Set 2 : Removed changes to tests that are independent of the instertion notification. #

Total comments: 2

Patch Set 3 : Add new SelectionEventTypes for bounds changing instead of reusing an insertion event. #

Total comments: 4

Patch Set 4 : Changed all existing SelectionEventType names to include "HANDLES". #

Patch Set 5 : Updated names for selection events. #

Patch Set 6 : Updated unit tests. #

Patch Set 7 : Tweak comments in unit test. #

Total comments: 4

Patch Set 8 : Changed boolean member to track SELECTION_ESTABLISHED instead of DISSOLVED. #

Total comments: 4

Patch Set 9 : Addressed nits. #

Patch Set 10 : Separated Test updates from infrastructure for the selection-notification. #

Patch Set 11 : Fixed issues with previous patchset (which was the follow-on CL). #

Patch Set 12 : Minor renaming of methods. #

Patch Set 13 : Update a method name. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -41 lines) Patch
M chrome/android/javatests/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManagerTest.java View 1 2 3 4 5 6 7 8 9 10 11 22 chunks +57 lines, -41 lines 0 comments Download

Messages

Total messages: 26 (5 generated)
Donn Denman
Jared, PTAL. Pedro, review optional.
5 years, 5 months ago (2015-07-15 19:55:13 UTC) #2
jdduke (slow)
https://chromiumcodereview.appspot.com/1239583003/diff/20001/ui/touch_selection/touch_selection_controller.cc File ui/touch_selection/touch_selection_controller.cc (right): https://chromiumcodereview.appspot.com/1239583003/diff/20001/ui/touch_selection/touch_selection_controller.cc#newcode135 ui/touch_selection/touch_selection_controller.cc:135: if (start_orientation_ == TouchHandleOrientation::UNDEFINED) { I'm confused, why would ...
5 years, 5 months ago (2015-07-15 20:33:25 UTC) #3
Donn Denman
Jared, thanks for helping with this! If you can think of a better way to ...
5 years, 5 months ago (2015-07-15 20:48:03 UTC) #4
Donn Denman
Jared, PTAL at patch set 3. Thanks!
5 years, 5 months ago (2015-07-15 22:53:27 UTC) #5
jdduke (slow)
https://chromiumcodereview.appspot.com/1239583003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchSelectionController.java File chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchSelectionController.java (right): https://chromiumcodereview.appspot.com/1239583003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchSelectionController.java#newcode210 chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchSelectionController.java:210: mIsSelectionBoundsDissolved = true; Shouldn't you reset this when there's ...
5 years, 5 months ago (2015-07-15 23:08:51 UTC) #7
jdduke (slow)
https://codereview.chromium.org/1239583003/diff/40001/ui/touch_selection/selection_event_type.h File ui/touch_selection/selection_event_type.h (right): https://codereview.chromium.org/1239583003/diff/40001/ui/touch_selection/selection_event_type.h#newcode27 ui/touch_selection/selection_event_type.h:27: BOUNDS_ESTABLISHED, On 2015/07/15 23:08:51, jdduke wrote: > mohsen@: Any ...
5 years, 5 months ago (2015-07-15 23:13:38 UTC) #8
Donn Denman
On 2015/07/15 23:13:38, jdduke wrote: > https://codereview.chromium.org/1239583003/diff/40001/ui/touch_selection/selection_event_type.h > File ui/touch_selection/selection_event_type.h (right): > > https://codereview.chromium.org/1239583003/diff/40001/ui/touch_selection/selection_event_type.h#newcode27 > ...
5 years, 5 months ago (2015-07-16 17:46:04 UTC) #9
jdduke (slow)
On 2015/07/16 17:46:04, Donn Denman wrote: > On 2015/07/15 23:13:38, jdduke wrote: > > > ...
5 years, 5 months ago (2015-07-16 17:57:53 UTC) #10
mohsen
https://codereview.chromium.org/1239583003/diff/40001/ui/touch_selection/selection_event_type.h File ui/touch_selection/selection_event_type.h (right): https://codereview.chromium.org/1239583003/diff/40001/ui/touch_selection/selection_event_type.h#newcode27 ui/touch_selection/selection_event_type.h:27: BOUNDS_ESTABLISHED, On 2015/07/15 23:13:38, jdduke wrote: > On 2015/07/15 ...
5 years, 5 months ago (2015-07-16 18:02:49 UTC) #11
donnd
On 2015/07/16 18:02:49, mohsen wrote: > https://codereview.chromium.org/1239583003/diff/40001/ui/touch_selection/selection_event_type.h > File ui/touch_selection/selection_event_type.h (right): > > https://codereview.chromium.org/1239583003/diff/40001/ui/touch_selection/selection_event_type.h#newcode27 > ...
5 years, 5 months ago (2015-07-16 18:15:13 UTC) #12
donnd
Jared, this is ready for a full review now. Aurimas, please review for OWNERS on ...
5 years, 5 months ago (2015-07-16 21:48:11 UTC) #13
jdduke (slow)
Does this fix the flakiness issue(s)? https://chromiumcodereview.appspot.com/1239583003/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchSelectionController.java File chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchSelectionController.java (right): https://chromiumcodereview.appspot.com/1239583003/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchSelectionController.java#newcode197 chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchSelectionController.java:197: mIsSelectionDissolved = false; ...
5 years, 5 months ago (2015-07-16 22:34:40 UTC) #14
Donn Denman
On 2015/07/16 22:34:40, jdduke wrote: > Does this fix the flakiness issue(s)? Yes, the 50-taps ...
5 years, 5 months ago (2015-07-16 22:52:29 UTC) #15
Donn Denman
Opps, forgot comments (below). https://chromiumcodereview.appspot.com/1239583003/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchSelectionController.java File chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchSelectionController.java (right): https://chromiumcodereview.appspot.com/1239583003/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchSelectionController.java#newcode197 chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchSelectionController.java:197: mIsSelectionDissolved = false; On 2015/07/16 ...
5 years, 5 months ago (2015-07-16 22:53:09 UTC) #16
jdduke (slow)
content/ and ui/ lgtm assuming mohsen@'s OK with the name change. https://chromiumcodereview.appspot.com/1239583003/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchSelectionController.java File chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchSelectionController.java (right): ...
5 years, 5 months ago (2015-07-16 23:15:50 UTC) #17
Donn Denman
Thanks Jared! mohsen@, does this all look OK? aurimas@, look OK to you too (for ...
5 years, 5 months ago (2015-07-16 23:24:52 UTC) #18
aurimas (slooooooooow)
lgtm
5 years, 5 months ago (2015-07-17 00:09:56 UTC) #20
mohsen
lgtm
5 years, 5 months ago (2015-07-17 00:49:33 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1239583003/190001
5 years, 5 months ago (2015-07-17 17:20:56 UTC) #24
commit-bot: I haz the power
Committed patchset #11 (id:190001)
5 years, 5 months ago (2015-07-17 18:39:22 UTC) #25
commit-bot: I haz the power
5 years, 5 months ago (2015-07-17 18:41:22 UTC) #26
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/ae67c71852b1daf87e1f3d1661a0519c5e32105c
Cr-Commit-Position: refs/heads/master@{#339291}

Powered by Google App Engine
This is Rietveld 408576698