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

Issue 590483002: Check if Button is pressed for changing selection (Closed)

Created:
6 years, 3 months ago by AviD
Modified:
6 years, 2 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jdduke+watch_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Check if Button is pressed for changing selection Adding flags to check if SPen button is pressed when gesture text selection is in progress. The selection should be updated only when the button is pressed. BUG=416004 Committed: https://crrev.com/169b875abb32975d8374866e333bf6f477f6c182 Cr-Commit-Position: refs/heads/master@{#299149}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Updated according to review + Unittest #

Patch Set 3 : Check only for Secondary Button #

Total comments: 3

Patch Set 4 : Updated as per review and unittests updated #

Total comments: 6

Patch Set 5 : updated according to review comments #

Patch Set 6 : adding spaces in log #

Total comments: 2

Patch Set 7 : Review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -4 lines) Patch
M content/browser/renderer_host/input/gesture_text_selector.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/gesture_text_selector.cc View 1 2 3 4 5 6 3 chunks +24 lines, -2 lines 0 comments Download
M content/browser/renderer_host/input/gesture_text_selector_unittest.cc View 1 2 3 4 5 6 3 chunks +59 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (2 generated)
AviD
@jdduke, @ChangwanRyu Could you please take a look?
6 years, 3 months ago (2014-09-19 16:56:37 UTC) #2
jdduke (slow)
https://codereview.chromium.org/590483002/diff/1/content/browser/renderer_host/input/gesture_text_selector.cc File content/browser/renderer_host/input/gesture_text_selector.cc (right): https://codereview.chromium.org/590483002/diff/1/content/browser/renderer_host/input/gesture_text_selector.cc#newcode16 content/browser/renderer_host/input/gesture_text_selector.cc:16: spen_button_pressed_(false), We're trying to keep this class generic, for ...
6 years, 3 months ago (2014-09-19 17:34:22 UTC) #3
AviD
@jdduke Thanks for the comments. Could you PTAL? https://codereview.chromium.org/590483002/diff/1/content/browser/renderer_host/input/gesture_text_selector.cc File content/browser/renderer_host/input/gesture_text_selector.cc (right): https://codereview.chromium.org/590483002/diff/1/content/browser/renderer_host/input/gesture_text_selector.cc#newcode16 content/browser/renderer_host/input/gesture_text_selector.cc:16: spen_button_pressed_(false), ...
6 years, 3 months ago (2014-09-23 11:52:09 UTC) #4
jdduke (slow)
https://codereview.chromium.org/590483002/diff/40001/content/browser/renderer_host/input/gesture_text_selector.cc File content/browser/renderer_host/input/gesture_text_selector.cc (right): https://codereview.chromium.org/590483002/diff/40001/content/browser/renderer_host/input/gesture_text_selector.cc#newcode57 content/browser/renderer_host/input/gesture_text_selector.cc:57: if (secondary_button_pressed_) { So, what happens when the user ...
6 years, 3 months ago (2014-09-23 15:10:48 UTC) #5
AviD
Actually, there are 4 possible ways to handle this condition : 1. To end selection ...
6 years, 3 months ago (2014-09-23 16:01:04 UTC) #6
jdduke (slow)
On 2014/09/23 16:01:04, AviD wrote: > 3. To end selection on Button Release, and not ...
6 years, 3 months ago (2014-09-23 16:06:49 UTC) #7
AviD
On 2014/09/23 16:06:49, jdduke wrote: > On 2014/09/23 16:01:04, AviD wrote: > > 3. To ...
6 years, 2 months ago (2014-09-29 15:54:41 UTC) #8
Changwan Ryu
On 2014/09/29 15:54:41, AviD wrote: > On 2014/09/23 16:06:49, jdduke wrote: > > On 2014/09/23 ...
6 years, 2 months ago (2014-09-30 09:16:17 UTC) #9
jdduke (slow)
Thanks, this is just about there. https://codereview.chromium.org/590483002/diff/60001/content/browser/renderer_host/input/gesture_text_selector.cc File content/browser/renderer_host/input/gesture_text_selector.cc (right): https://codereview.chromium.org/590483002/diff/60001/content/browser/renderer_host/input/gesture_text_selector.cc#newcode51 content/browser/renderer_host/input/gesture_text_selector.cc:51: secondary_button_pressed_ = text_selection_triggered_; ...
6 years, 2 months ago (2014-10-10 14:37:33 UTC) #10
AviD
@jdduke: Thanks for your review. Could you please take another look? https://codereview.chromium.org/590483002/diff/60001/content/browser/renderer_host/input/gesture_text_selector.cc File content/browser/renderer_host/input/gesture_text_selector.cc (right): ...
6 years, 2 months ago (2014-10-10 16:06:11 UTC) #11
jdduke (slow)
lgtm with nit. https://codereview.chromium.org/590483002/diff/170001/content/browser/renderer_host/input/gesture_text_selector_unittest.cc File content/browser/renderer_host/input/gesture_text_selector_unittest.cc (right): https://codereview.chromium.org/590483002/diff/170001/content/browser/renderer_host/input/gesture_text_selector_unittest.cc#newcode46 content/browser/renderer_host/input/gesture_text_selector_unittest.cc:46: event_log_.push_back("SelectRange(" + to_string(x1) + ", " ...
6 years, 2 months ago (2014-10-10 16:22:12 UTC) #12
jdduke (slow)
https://codereview.chromium.org/590483002/diff/170001/content/browser/renderer_host/input/gesture_text_selector.cc File content/browser/renderer_host/input/gesture_text_selector.cc (right): https://codereview.chromium.org/590483002/diff/170001/content/browser/renderer_host/input/gesture_text_selector.cc#newcode40 content/browser/renderer_host/input/gesture_text_selector.cc:40: DCHECK(client); Also initialize anchor_x_/anchor_y_ in the constructor initializer list.
6 years, 2 months ago (2014-10-10 16:23:21 UTC) #13
AviD
On 2014/10/10 16:23:21, jdduke wrote: > https://codereview.chromium.org/590483002/diff/170001/content/browser/renderer_host/input/gesture_text_selector.cc > File content/browser/renderer_host/input/gesture_text_selector.cc (right): > > https://codereview.chromium.org/590483002/diff/170001/content/browser/renderer_host/input/gesture_text_selector.cc#newcode40 > ...
6 years, 2 months ago (2014-10-10 16:49:43 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/590483002/240001
6 years, 2 months ago (2014-10-10 16:56:41 UTC) #16
commit-bot: I haz the power
Committed patchset #7 (id:240001)
6 years, 2 months ago (2014-10-10 18:41:20 UTC) #17
commit-bot: I haz the power
6 years, 2 months ago (2014-10-10 18:41:58 UTC) #18
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/169b875abb32975d8374866e333bf6f477f6c182
Cr-Commit-Position: refs/heads/master@{#299149}

Powered by Google App Engine
This is Rietveld 408576698