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

Issue 759433002: Reland: Move TouchSelectionController from content to ui (Closed)

Created:
6 years ago by mohsen
Modified:
6 years ago
CC:
chromium-reviews, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, tfarina, jam, penghuang+watch_chromium.org, sievers+watch_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, James Su, jdduke+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Reland: Move TouchSelectionController from content to ui This patch is only moving new unified touch selection files from content/ to ui/touch_selection/. This is the first step to allow Aura use the new unified TouchSelectionController. The only change to TouchSelectionController needed for this move is replacing use of cc::ViewportSelectionBound with ui::SelectionBound. The actual use of the new touch selection for Aura will happen in future CL(s). After that, we can remove current touch selection code from ui/base/touch/. BUG=399721 Committed: https://crrev.com/29fd405ca491a6fcf0dde6277d92d44300cb2926 Cr-Commit-Position: refs/heads/master@{#307336} Committed: https://crrev.com/f837da7c7807d4dc84733b201ac74a6bab9ae3a5 Cr-Commit-Position: refs/heads/master@{#307514}

Patch Set 1 #

Patch Set 2 : Rebased #

Patch Set 3 : Fixes for android/windows builds #

Patch Set 4 : More build fixes #

Patch Set 5 : Fix for ios build and some typos #

Total comments: 25

Patch Set 6 : Addressed reviewers' comments #

Total comments: 8

Patch Set 7 : Addressed more reviewers' comments #

Total comments: 4

Patch Set 8 : Fixed typo #

Patch Set 9 : Fixed gyp files for tests #

Patch Set 10 : Added tests to android gtest config #

Patch Set 11 : Rebased #

Patch Set 12 : Rebased #

Patch Set 13 : Excluded ui/touch_selection from Windows GN build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+680 lines, -2839 lines) Patch
M BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +8 lines, -0 lines 0 comments Download
M android_webview/java_library_common.mk View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M android_webview/libwebviewchromium.gypi View 1 2 3 4 5 6 7 8 9 10 2 chunks +1 line, -1 line 0 comments Download
M build/all.gyp View 1 2 3 4 5 6 7 8 9 10 8 chunks +16 lines, -0 lines 0 comments Download
M build/android/pylib/gtest/gtest_config.py View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/DEPS View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/android/composited_touch_handle_drawable.h View 1 2 3 chunks +5 lines, -5 lines 0 comments Download
M content/browser/android/composited_touch_handle_drawable.cc View 1 2 4 chunks +11 lines, -11 lines 0 comments Download
M content/browser/android/content_view_core_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -4 lines 0 comments Download
M content/browser/android/popup_touch_handle_drawable.h View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M content/browser/android/popup_touch_handle_drawable.cc View 1 2 1 chunk +5 lines, -5 lines 0 comments Download
D content/browser/renderer_host/input/selection_event_type.h View 1 chunk +0 lines, -29 lines 0 comments Download
D content/browser/renderer_host/input/touch_handle.h View 1 chunk +0 lines, -134 lines 0 comments Download
D content/browser/renderer_host/input/touch_handle.cc View 1 chunk +0 lines, -264 lines 0 comments Download
D content/browser/renderer_host/input/touch_handle_unittest.cc View 1 chunk +0 lines, -492 lines 0 comments Download
D content/browser/renderer_host/input/touch_selection_controller.h View 1 1 chunk +0 lines, -154 lines 0 comments Download
D content/browser/renderer_host/input/touch_selection_controller.cc View 1 1 chunk +0 lines, -435 lines 0 comments Download
D content/browser/renderer_host/input/touch_selection_controller_unittest.cc View 1 1 chunk +0 lines, -845 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.h View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +6 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +15 lines, -14 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 5 2 chunks +10 lines, -9 lines 0 comments Download
M content/browser/web_contents/touch_editable_impl_aura.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/web_contents/touch_editable_impl_aura_browsertest.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M content/content.gyp View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +1 line, -9 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +1 line, -6 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -2 lines 0 comments Download
M content/public/android/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 3 chunks +1 line, -2 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 1 2 3 4 5 6 7 8 9 10 2 chunks +1 line, -1 line 0 comments Download
M ui/base/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -1 line 0 comments Download
A ui/base/touch/selection_bound.h View 1 2 3 4 5 6 7 1 chunk +75 lines, -0 lines 0 comments Download
A ui/base/touch/selection_bound.cc View 1 2 3 4 5 1 chunk +93 lines, -0 lines 0 comments Download
A + ui/base/touch/selection_bound_unittest.cc View 1 2 3 4 5 1 chunk +66 lines, -75 lines 0 comments Download
M ui/base/touch/touch_editing_controller.h View 1 2 3 4 5 1 chunk +6 lines, -32 lines 0 comments Download
M ui/base/touch/touch_editing_controller.cc View 1 chunk +0 lines, -39 lines 0 comments Download
D ui/base/touch/touch_editing_controller_unittest.cc View 1 chunk +0 lines, -99 lines 0 comments Download
M ui/base/ui_base.gyp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M ui/base/ui_base_tests.gyp View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -2 lines 0 comments Download
A ui/touch_selection/BUILD.gn View 1 2 3 1 chunk +60 lines, -0 lines 0 comments Download
A ui/touch_selection/DEPS View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
A ui/touch_selection/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A + ui/touch_selection/selection_event_type.h View 1 2 2 chunks +7 lines, -7 lines 0 comments Download
A + ui/touch_selection/touch_handle.h View 6 chunks +10 lines, -10 lines 0 comments Download
A + ui/touch_selection/touch_handle.cc View 6 chunks +9 lines, -9 lines 0 comments Download
A + ui/touch_selection/touch_handle_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
A + ui/touch_selection/touch_selection_controller.h View 1 2 3 4 5 5 chunks +16 lines, -22 lines 0 comments Download
A + ui/touch_selection/touch_selection_controller.cc View 1 5 chunks +21 lines, -23 lines 0 comments Download
A + ui/touch_selection/touch_selection_controller_unittest.cc View 1 2 3 4 5 4 chunks +16 lines, -19 lines 0 comments Download
A ui/touch_selection/ui_touch_selection.gyp View 1 2 3 4 5 6 7 8 1 chunk +81 lines, -0 lines 0 comments Download
A ui/touch_selection/ui_touch_selection_export.h View 1 2 3 4 5 1 chunk +37 lines, -0 lines 0 comments Download
M ui/views/controls/textfield/textfield.cc View 1 2 3 4 5 3 chunks +9 lines, -9 lines 0 comments Download
M ui/views/touchui/touch_selection_controller_impl.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/touchui/touch_selection_controller_impl.cc View 1 2 3 4 5 8 chunks +45 lines, -39 lines 0 comments Download
M ui/views/touchui/touch_selection_controller_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +13 lines, -13 lines 0 comments Download

Messages

Total messages: 57 (29 generated)
mohsen
Please take a look... jdduke@: can you especially take a look at android gyp/gn files, ...
6 years ago (2014-11-27 23:39:28 UTC) #8
jdduke (slow)
At a high level, the move looks good. I don't love the idea of a ...
6 years ago (2014-12-01 20:38:04 UTC) #9
mfomitchev
+1 to jdduke's comment re new touch_selection folder. It seems to me ui/base/touch/ would be ...
6 years ago (2014-12-01 21:36:24 UTC) #10
mohsen
If we want to move touch selection to ui, I think we should either put ...
6 years ago (2014-12-02 05:17:03 UTC) #19
mfomitchev
LGTM
6 years ago (2014-12-02 16:07:27 UTC) #20
jdduke (slow)
I have a slight preference to putting things in ui/base/touch, but it's not a deal ...
6 years ago (2014-12-02 16:35:37 UTC) #22
mohsen
https://codereview.chromium.org/759433002/diff/380001/ui/base/touch/selection_bound.h File ui/base/touch/selection_bound.h (right): https://codereview.chromium.org/759433002/diff/380001/ui/base/touch/selection_bound.h#newcode34 ui/base/touch/selection_bound.h:34: explicit SelectionBound(const cc::ViewportSelectionBound& bound); On 2014/12/02 16:35:37, jdduke wrote: ...
6 years ago (2014-12-02 20:50:31 UTC) #23
mfomitchev
https://codereview.chromium.org/759433002/diff/400001/ui/base/touch/selection_bound.h File ui/base/touch/selection_bound.h (right): https://codereview.chromium.org/759433002/diff/400001/ui/base/touch/selection_bound.h#newcode53 ui/base/touch/selection_bound.h:53: // Retruns the difference between rounded top y and ...
6 years ago (2014-12-02 20:56:15 UTC) #24
jdduke (slow)
https://codereview.chromium.org/759433002/diff/400001/build/all.gyp File build/all.gyp (right): https://codereview.chromium.org/759433002/diff/400001/build/all.gyp#newcode841 build/all.gyp:841: '../ui/events/events.gyp:events_unittests', Don't we need to add the touch_selection unittests ...
6 years ago (2014-12-02 21:07:15 UTC) #25
mohsen
https://codereview.chromium.org/759433002/diff/400001/build/all.gyp File build/all.gyp (right): https://codereview.chromium.org/759433002/diff/400001/build/all.gyp#newcode841 build/all.gyp:841: '../ui/events/events.gyp:events_unittests', On 2014/12/02 21:07:15, jdduke wrote: > Don't we ...
6 years ago (2014-12-02 21:14:04 UTC) #26
sadrul
On 2014/12/02 16:35:37, jdduke wrote: > I have a slight preference to putting things in ...
6 years ago (2014-12-03 00:00:28 UTC) #27
mohsen
I've updated CL description and fixed gyp files for tests. sadrul@: can you take a ...
6 years ago (2014-12-04 21:45:24 UTC) #32
sadrul
lgtm
6 years ago (2014-12-04 21:47:49 UTC) #33
jdduke (slow)
Sigh, still not in love with the top-level churn this is causing, per offline discussion ...
6 years ago (2014-12-04 21:49:37 UTC) #34
mohsen
+boliu@ for OWNERS review of /android_webview/ +jam@ for OWNERS review of /content/, specifically, /content/DEPS, /content/content.gyp, ...
6 years ago (2014-12-04 22:43:40 UTC) #36
mohsen
+jam@ for OWNERS review of /content/, specifically, /content/DEPS, /content/content.gyp, /content/browser/BUILD.gn, and /content/public/android/BUILD.gn and also the ...
6 years ago (2014-12-04 22:44:33 UTC) #38
boliu
android_webview lgtm
6 years ago (2014-12-04 23:10:56 UTC) #39
jam
lgtm
6 years ago (2014-12-05 00:31:55 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/759433002/580001
6 years ago (2014-12-08 19:53:50 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/28902)
6 years ago (2014-12-08 20:01:49 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/759433002/600001
6 years ago (2014-12-08 20:05:41 UTC) #47
commit-bot: I haz the power
Committed patchset #12 (id:600001)
6 years ago (2014-12-08 21:06:56 UTC) #48
commit-bot: I haz the power
Patchset 12 (id:??) landed as https://crrev.com/29fd405ca491a6fcf0dde6277d92d44300cb2926 Cr-Commit-Position: refs/heads/master@{#307336}
6 years ago (2014-12-08 21:08:10 UTC) #49
Ryan Sleevi
A revert of this CL (patchset #12 id:600001) has been created in https://codereview.chromium.org/754963007/ by rsleevi@chromium.org. ...
6 years ago (2014-12-08 21:50:40 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/759433002/620001
6 years ago (2014-12-09 17:52:48 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/759433002/620001
6 years ago (2014-12-09 18:59:58 UTC) #55
commit-bot: I haz the power
Committed patchset #13 (id:620001)
6 years ago (2014-12-09 19:01:45 UTC) #56
commit-bot: I haz the power
6 years ago (2014-12-09 19:02:39 UTC) #57
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/f837da7c7807d4dc84733b201ac74a6bab9ae3a5
Cr-Commit-Position: refs/heads/master@{#307514}

Powered by Google App Engine
This is Rietveld 408576698