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

Issue 1774123006: Implement link selection on alt+mouse drag. (Closed)

Created:
4 years, 9 months ago by kotenkov
Modified:
4 years, 8 months ago
Reviewers:
tkent, yosin_UTC9
CC:
blink-reviews, chromium-reviews, kinuko+watch
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement link selection on alt+mouse drag. BUG=244738 TEST=webkit_unit_tests --gtest_filter=LinkSelectionTest.* Committed: https://crrev.com/9e80a9e5b5b71a48119225a614b7c0b8369badf2 Cr-Commit-Position: refs/heads/master@{#383684}

Patch Set 1 #

Total comments: 9

Patch Set 2 : Address comments. #

Total comments: 7

Patch Set 3 : Improve |waitForDeferredTasks()|. #

Patch Set 4 : Remove static and rename function. #

Total comments: 11

Patch Set 5 : Address comments. #

Total comments: 1

Patch Set 6 : Rename SelectionTestBase -> WebSelectionTestBase. #

Patch Set 7 : Rename WebSelectionTestBase -> WebViewSelectionTestBase. #

Patch Set 8 : Move SelectionTestBase to LinkSelectionTest.cpp. #

Total comments: 2

Patch Set 9 : Use String instead of std::string. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+360 lines, -5 lines) Patch
M third_party/WebKit/Source/core/editing/SelectionController.h View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/SelectionController.cpp View 1 2 3 4 3 chunks +9 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/input/EventHandler.cpp View 1 2 3 4 3 chunks +9 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/testing/UnitTestHelpers.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/testing/UnitTestHelpers.cpp View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/tests/FrameTestHelpers.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp View 1 chunk +12 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/web/tests/LinkSelectionTest.cpp View 1 2 3 4 5 6 7 8 1 chunk +314 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/web.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 46 (9 generated)
kotenkov
Hi, yosin, here is the patch regarding link selection that I have promised you. PTAL. ...
4 years, 9 months ago (2016-03-09 17:27:59 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1774123006/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1774123006/1
4 years, 9 months ago (2016-03-10 01:36:11 UTC) #4
yosin_UTC9
On 2016/03/09 at 17:27:59, kotenkov wrote: > Hi, yosin, > here is the patch regarding ...
4 years, 9 months ago (2016-03-10 01:39:15 UTC) #5
yosin_UTC9
I asked UX-Review and send "Intent to ship" soon. https://codereview.chromium.org/1774123006/diff/1/third_party/WebKit/Source/core/editing/SelectionController.h File third_party/WebKit/Source/core/editing/SelectionController.h (right): https://codereview.chromium.org/1774123006/diff/1/third_party/WebKit/Source/core/editing/SelectionController.h#newcode92 third_party/WebKit/Source/core/editing/SelectionController.h:92: ...
4 years, 9 months ago (2016-03-10 01:40:49 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/194254)
4 years, 9 months ago (2016-03-10 02:49:23 UTC) #8
kotenkov
I've fixed the issues. https://codereview.chromium.org/1774123006/diff/20001/third_party/WebKit/Source/web/tests/SelectionTestBase.h File third_party/WebKit/Source/web/tests/SelectionTestBase.h (right): https://codereview.chromium.org/1774123006/diff/20001/third_party/WebKit/Source/web/tests/SelectionTestBase.h#newcode28 third_party/WebKit/Source/web/tests/SelectionTestBase.h:28: DragFlags = SendDownEvent | SendUpEvent); ...
4 years, 9 months ago (2016-03-10 12:00:30 UTC) #9
kotenkov
On 2016/03/10 01:39:15, Yosi_UTC9 wrote: > On 2016/03/09 at 17:27:59, kotenkov wrote: > > Hi, ...
4 years, 9 months ago (2016-03-10 12:01:56 UTC) #10
yosin_UTC9
On 2016/03/10 at 12:01:56, kotenkov wrote: > On 2016/03/10 01:39:15, Yosi_UTC9 wrote: > > On ...
4 years, 9 months ago (2016-03-11 01:20:51 UTC) #11
yosin_UTC9
core/editing changes are OK +tken@ for web/ changes. Please hold committing until we get approval ...
4 years, 9 months ago (2016-03-11 01:32:07 UTC) #12
kotenkov
https://codereview.chromium.org/1774123006/diff/20001/third_party/WebKit/Source/web/tests/LinkSelectionTest.cpp File third_party/WebKit/Source/web/tests/LinkSelectionTest.cpp (right): https://codereview.chromium.org/1774123006/diff/20001/third_party/WebKit/Source/web/tests/LinkSelectionTest.cpp#newcode36 third_party/WebKit/Source/web/tests/LinkSelectionTest.cpp:36: static const char* kHTMLString = On 2016/03/11 01:32:07, Yosi_UTC9 ...
4 years, 9 months ago (2016-03-11 21:22:51 UTC) #13
yosin_UTC9
https://codereview.chromium.org/1774123006/diff/20001/third_party/WebKit/Source/web/tests/LinkSelectionTest.cpp File third_party/WebKit/Source/web/tests/LinkSelectionTest.cpp (right): https://codereview.chromium.org/1774123006/diff/20001/third_party/WebKit/Source/web/tests/LinkSelectionTest.cpp#newcode36 third_party/WebKit/Source/web/tests/LinkSelectionTest.cpp:36: static const char* kHTMLString = On 2016/03/11 at 21:22:51, ...
4 years, 9 months ago (2016-03-14 04:04:57 UTC) #14
yosin_UTC9
On 2016/03/14 at 04:04:57, Yosi_UTC9 wrote: > https://codereview.chromium.org/1774123006/diff/20001/third_party/WebKit/Source/web/tests/LinkSelectionTest.cpp > File third_party/WebKit/Source/web/tests/LinkSelectionTest.cpp (right): > > https://codereview.chromium.org/1774123006/diff/20001/third_party/WebKit/Source/web/tests/LinkSelectionTest.cpp#newcode36 ...
4 years, 9 months ago (2016-03-17 01:55:06 UTC) #15
kotenkov
Thanks for your updates, they are really helpful. https://codereview.chromium.org/1774123006/diff/20001/third_party/WebKit/Source/web/tests/LinkSelectionTest.cpp File third_party/WebKit/Source/web/tests/LinkSelectionTest.cpp (right): https://codereview.chromium.org/1774123006/diff/20001/third_party/WebKit/Source/web/tests/LinkSelectionTest.cpp#newcode36 third_party/WebKit/Source/web/tests/LinkSelectionTest.cpp:36: static ...
4 years, 9 months ago (2016-03-17 06:36:44 UTC) #16
yosin_UTC9
On 2016/03/17 at 06:36:44, kotenkov wrote: > Thanks for your updates, they are really helpful. ...
4 years, 9 months ago (2016-03-17 06:56:56 UTC) #17
yosin_UTC9
On 2016/03/17 at 06:56:56, Yosi_UTC9 wrote: > On 2016/03/17 at 06:36:44, kotenkov wrote: > > ...
4 years, 9 months ago (2016-03-17 07:07:50 UTC) #18
kotenkov
I've removed the static and additionally renamed the test function. Guess it's time to add ...
4 years, 9 months ago (2016-03-24 11:14:33 UTC) #19
kotenkov
I've removed the static and additionally renamed the test function. Guess it's time to add ...
4 years, 9 months ago (2016-03-24 11:14:36 UTC) #20
kotenkov
4 years, 9 months ago (2016-03-24 11:23:34 UTC) #22
tkent
https://codereview.chromium.org/1774123006/diff/60001/third_party/WebKit/Source/core/editing/SelectionController.cpp File third_party/WebKit/Source/core/editing/SelectionController.cpp (right): https://codereview.chromium.org/1774123006/diff/60001/third_party/WebKit/Source/core/editing/SelectionController.cpp#newcode628 third_party/WebKit/Source/core/editing/SelectionController.cpp:628: bool mayBeLinkSelection(const MouseEventWithHitTestResults& event) This looks "isLinkSelection" to me. ...
4 years, 9 months ago (2016-03-25 03:33:03 UTC) #23
kotenkov
Renamed mayBeLinkSelection() -> isLinkSelection(). Removed statics. Used full paths. Renamed ASSERTs.
4 years, 9 months ago (2016-03-25 07:28:09 UTC) #24
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1774123006/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1774123006/80001
4 years, 9 months ago (2016-03-25 07:35:42 UTC) #26
yosin_UTC9
lgtm for core/editing https://codereview.chromium.org/1774123006/diff/80001/third_party/WebKit/Source/web/tests/SelectionTestBase.h File third_party/WebKit/Source/web/tests/SelectionTestBase.h (right): https://codereview.chromium.org/1774123006/diff/80001/third_party/WebKit/Source/web/tests/SelectionTestBase.h#newcode19 third_party/WebKit/Source/web/tests/SelectionTestBase.h:19: class SelectionTestBase : public ::testing::Test { ...
4 years, 9 months ago (2016-03-25 08:24:01 UTC) #27
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-25 08:54:57 UTC) #29
kotenkov
Renamed SelectionTestBase -> WebSelectionTestBase.
4 years, 9 months ago (2016-03-25 08:56:28 UTC) #30
tkent
On 2016/03/25 at 08:56:28, kotenkov wrote: > Renamed SelectionTestBase -> WebSelectionTestBase. Please follow yosin's advice. ...
4 years, 9 months ago (2016-03-28 01:09:14 UTC) #31
kotenkov
On 2016/03/28 01:09:14, tkent wrote: > Also, if WebSelectionTestBase is used only in LinkSelectionTest.cpp, please ...
4 years, 9 months ago (2016-03-28 05:20:54 UTC) #32
kotenkov
4 years, 9 months ago (2016-03-28 06:11:51 UTC) #33
yosin_UTC9
On 2016/03/28 at 05:20:54, kotenkov wrote: > On 2016/03/28 01:09:14, tkent wrote: > > Also, ...
4 years, 9 months ago (2016-03-28 07:19:45 UTC) #34
kotenkov
On 2016/03/28 07:19:45, Yosi_UTC9 wrote: > Will we have other test classes use |WebViewSelectionTestBase|? > ...
4 years, 9 months ago (2016-03-28 07:32:52 UTC) #35
kotenkov
On 2016/03/28 07:19:45, Yosi_UTC9 wrote: > Will we have other test classes use |WebViewSelectionTestBase|? > ...
4 years, 9 months ago (2016-03-28 07:32:54 UTC) #36
yosin_UTC9
On 2016/03/28 at 07:32:54, kotenkov wrote: > On 2016/03/28 07:19:45, Yosi_UTC9 wrote: > > Will ...
4 years, 9 months ago (2016-03-28 07:50:52 UTC) #37
tkent
https://codereview.chromium.org/1774123006/diff/140001/third_party/WebKit/Source/web/tests/LinkSelectionTest.cpp File third_party/WebKit/Source/web/tests/LinkSelectionTest.cpp (right): https://codereview.chromium.org/1774123006/diff/140001/third_party/WebKit/Source/web/tests/LinkSelectionTest.cpp#newcode45 third_party/WebKit/Source/web/tests/LinkSelectionTest.cpp:45: std::string getSelectionText(); Please don't use std::string in Blink. Use ...
4 years, 9 months ago (2016-03-28 07:59:21 UTC) #38
kotenkov
> Please don't use std::string in Blink. Use WTF::String instead. Done. https://codereview.chromium.org/1774123006/diff/140001/third_party/WebKit/Source/web/tests/LinkSelectionTest.cpp File third_party/WebKit/Source/web/tests/LinkSelectionTest.cpp (right): ...
4 years, 9 months ago (2016-03-28 08:26:30 UTC) #39
tkent
lgtm On 2016/03/28 at 08:26:30, kotenkov wrote: > > Please don't use std::string in Blink. ...
4 years, 8 months ago (2016-03-28 23:50:26 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1774123006/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1774123006/160001
4 years, 8 months ago (2016-03-29 05:44:57 UTC) #43
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 8 months ago (2016-03-29 07:19:07 UTC) #44
commit-bot: I haz the power
4 years, 8 months ago (2016-03-29 07:20:08 UTC) #46
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/9e80a9e5b5b71a48119225a614b7c0b8369badf2
Cr-Commit-Position: refs/heads/master@{#383684}

Powered by Google App Engine
This is Rietveld 408576698