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

Issue 937773003: Add INSERTION_DRAG_STOPPED to SelectionEventType (Closed)

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

Description

Add INSERTION_DRAG_STOPPED to SelectionEventType In order to use ui::TouchSelectionController in Aura, we need to be notified when handle drag ends. Aura's touch selection quick menu is hidden on drag start and should be shown back on drag end. BUG=399721 Committed: https://crrev.com/5600e359878b61a6ab0f96361c731ea694064ed9 Cr-Commit-Position: refs/heads/master@{#317864}

Patch Set 1 #

Patch Set 2 : Updated insertion drag test #

Total comments: 4

Patch Set 3 : Added total event count #

Total comments: 2

Patch Set 4 : Used gmock macros #

Total comments: 3

Patch Set 5 : Rebased and Addressed Reviews #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -70 lines) Patch
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M ui/touch_selection/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ui/touch_selection/selection_event_type.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/touch_selection/touch_selection_controller.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M ui/touch_selection/touch_selection_controller_unittest.cc View 1 2 3 4 42 chunks +93 lines, -68 lines 0 comments Download
M ui/touch_selection/ui_touch_selection.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 16 (4 generated)
mohsen
jdduke@: Please take a look...
5 years, 10 months ago (2015-02-18 18:46:46 UTC) #2
jdduke (slow)
https://codereview.chromium.org/937773003/diff/20001/ui/touch_selection/touch_selection_controller_unittest.cc File ui/touch_selection/touch_selection_controller_unittest.cc (right): https://codereview.chromium.org/937773003/diff/20001/ui/touch_selection/touch_selection_controller_unittest.cc#newcode230 ui/touch_selection/touch_selection_controller_unittest.cc:230: EXPECT_EQ(0, GetAndResetEventCount(INSERTION_CLEARED)); This is a lot of boilerplate for ...
5 years, 10 months ago (2015-02-18 19:09:14 UTC) #3
mohsen
https://codereview.chromium.org/937773003/diff/20001/ui/touch_selection/touch_selection_controller_unittest.cc File ui/touch_selection/touch_selection_controller_unittest.cc (right): https://codereview.chromium.org/937773003/diff/20001/ui/touch_selection/touch_selection_controller_unittest.cc#newcode230 ui/touch_selection/touch_selection_controller_unittest.cc:230: EXPECT_EQ(0, GetAndResetEventCount(INSERTION_CLEARED)); On 2015/02/18 19:09:14, jdduke wrote: > This ...
5 years, 10 months ago (2015-02-18 21:53:36 UTC) #4
jdduke (slow)
Keeping counts is fine, but what if we only check the counts for the type ...
5 years, 10 months ago (2015-02-18 22:03:49 UTC) #5
mohsen
https://codereview.chromium.org/937773003/diff/20001/ui/touch_selection/touch_selection_controller_unittest.cc File ui/touch_selection/touch_selection_controller_unittest.cc (right): https://codereview.chromium.org/937773003/diff/20001/ui/touch_selection/touch_selection_controller_unittest.cc#newcode96 ui/touch_selection/touch_selection_controller_unittest.cc:96: event_count_[event]++; On 2015/02/18 22:03:49, jdduke wrote: > Hmm, you ...
5 years, 10 months ago (2015-02-18 23:35:22 UTC) #7
jdduke (slow)
https://codereview.chromium.org/937773003/diff/60001/ui/touch_selection/touch_selection_controller_unittest.cc File ui/touch_selection/touch_selection_controller_unittest.cc (right): https://codereview.chromium.org/937773003/diff/60001/ui/touch_selection/touch_selection_controller_unittest.cc#newcode566 ui/touch_selection/touch_selection_controller_unittest.cc:566: EXPECT_EQ(2, total_event_count()); This is still too much boiler plate. ...
5 years, 10 months ago (2015-02-19 22:53:48 UTC) #8
mohsen
https://codereview.chromium.org/937773003/diff/60001/ui/touch_selection/touch_selection_controller_unittest.cc File ui/touch_selection/touch_selection_controller_unittest.cc (right): https://codereview.chromium.org/937773003/diff/60001/ui/touch_selection/touch_selection_controller_unittest.cc#newcode566 ui/touch_selection/touch_selection_controller_unittest.cc:566: EXPECT_EQ(2, total_event_count()); On 2015/02/19 22:53:48, jdduke wrote: > This ...
5 years, 10 months ago (2015-02-20 18:16:00 UTC) #9
jdduke (slow)
lgtm, thanks. https://codereview.chromium.org/937773003/diff/80001/ui/touch_selection/touch_selection_controller_unittest.cc File ui/touch_selection/touch_selection_controller_unittest.cc (right): https://codereview.chromium.org/937773003/diff/80001/ui/touch_selection/touch_selection_controller_unittest.cc#newcode187 ui/touch_selection/touch_selection_controller_unittest.cc:187: std::vector<SelectionEventType> events = events_; std::vector<SelectionEventType> events; events.swap(events_); ...
5 years, 10 months ago (2015-02-23 16:19:27 UTC) #10
mohsen
https://codereview.chromium.org/937773003/diff/80001/ui/touch_selection/touch_selection_controller_unittest.cc File ui/touch_selection/touch_selection_controller_unittest.cc (right): https://codereview.chromium.org/937773003/diff/80001/ui/touch_selection/touch_selection_controller_unittest.cc#newcode187 ui/touch_selection/touch_selection_controller_unittest.cc:187: std::vector<SelectionEventType> events = events_; On 2015/02/23 16:19:27, jdduke wrote: ...
5 years, 10 months ago (2015-02-24 07:29:36 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/937773003/100001
5 years, 10 months ago (2015-02-24 19:46:44 UTC) #14
commit-bot: I haz the power
Committed patchset #5 (id:100001)
5 years, 10 months ago (2015-02-24 20:03:57 UTC) #15
commit-bot: I haz the power
5 years, 10 months ago (2015-02-24 20:04:31 UTC) #16
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/5600e359878b61a6ab0f96361c731ea694064ed9
Cr-Commit-Position: refs/heads/master@{#317864}

Powered by Google App Engine
This is Rietveld 408576698