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

Issue 1066053002: [Android] Allow custom ActionMode creation via ContentViewClient (Closed)

Created:
5 years, 8 months ago by jdduke (slow)
Modified:
5 years, 8 months ago
CC:
android-webview-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, jam, nona+watch_chromium.org, penghuang+watch_chromium.org, shuchen+watch_chromium.org, James Su, yusukes+watch_chromium.org, mohsen, Kibeom Kim (inactive)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android] Allow custom ActionMode creation via ContentViewClient Use the ContentViewClient to create the selection ActionMode. This allows the embedder to completely control the style and behavior of the ActionMode popup. BUG=389153 NOTRY=true Committed: https://crrev.com/3628fb3825e9119a4f96b0d425ffdf2c608bd6b7 Cr-Commit-Position: refs/heads/master@{#325154}

Patch Set 1 #

Patch Set 2 : Cleanup #

Patch Set 3 : Fix unit tests #

Total comments: 4

Patch Set 4 : Code review #

Patch Set 5 : Semi-working version with bounding rects #

Patch Set 6 : Working invalidation #

Patch Set 7 : Rebase #

Total comments: 4

Patch Set 8 : Cleanup #

Total comments: 1

Patch Set 9 : Final fix #

Total comments: 1

Patch Set 10 : Fix null check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+467 lines, -129 lines) Patch
M android_webview/glue/java/src/com/android/webview/chromium/WebViewContentsClientAdapter.java View 1 2 3 4 5 6 7 8 9 3 chunks +31 lines, -0 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java View 1 2 3 4 5 6 7 2 chunks +13 lines, -0 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContentsClient.java View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download
M android_webview/test/shell/src/org/chromium/android_webview/test/NullContentsClient.java View 2 chunks +13 lines, -0 lines 0 comments Download
M content/browser/android/content_view_core_impl.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 3 4 1 chunk +10 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.h View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 5 6 7 2 chunks +15 lines, -3 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewClient.java View 1 2 3 4 5 6 7 8 9 2 chunks +21 lines, -4 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 15 chunks +98 lines, -40 lines 0 comments Download
A content/public/android/java/src/org/chromium/content/browser/SelectActionMode.java View 1 2 3 4 5 6 7 8 9 1 chunk +51 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/SelectActionModeCallback.java View 1 2 3 4 5 8 chunks +51 lines, -7 lines 0 comments Download
M ui/base/touch/selection_bound.h View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M ui/base/touch/selection_bound.cc View 1 2 3 4 1 chunk +16 lines, -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_handle.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M ui/touch_selection/touch_handle.cc View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M ui/touch_selection/touch_selection_controller.h View 1 2 3 4 5 6 7 3 chunks +16 lines, -4 lines 0 comments Download
M ui/touch_selection/touch_selection_controller.cc View 1 2 3 4 5 6 7 10 chunks +53 lines, -20 lines 0 comments Download
M ui/touch_selection/touch_selection_controller_unittest.cc View 1 2 3 4 5 27 chunks +53 lines, -44 lines 0 comments Download

Messages

Total messages: 35 (13 generated)
jdduke (slow)
+sgurun: I guess we can push forward with review on this. I'll add more owners ...
5 years, 8 months ago (2015-04-08 00:38:00 UTC) #2
sgurun-gerrit only
On 2015/04/08 00:38:00, jdduke wrote: > +sgurun: I guess we can push forward with review ...
5 years, 8 months ago (2015-04-08 04:06:34 UTC) #3
jdduke (slow)
OK, tests now passing, thanks for reviewing Selim. Note that this will break downstream builds, ...
5 years, 8 months ago (2015-04-09 00:26:20 UTC) #4
sgurun-gerrit only
On 2015/04/09 00:26:20, jdduke wrote: > OK, tests now passing, thanks for reviewing Selim. Note ...
5 years, 8 months ago (2015-04-09 05:01:20 UTC) #5
sgurun-gerrit only
https://codereview.chromium.org/1066053002/diff/40001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java File content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java (right): https://codereview.chromium.org/1066053002/diff/40001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java#newcode578 content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java:578: nit: stale line https://codereview.chromium.org/1066053002/diff/40001/content/public/android/java/src/org/chromium/content/browser/SelectActionModeCallback.java File content/public/android/java/src/org/chromium/content/browser/SelectActionModeCallback.java (right): https://codereview.chromium.org/1066053002/diff/40001/content/public/android/java/src/org/chromium/content/browser/SelectActionModeCallback.java#newcode161 content/public/android/java/src/org/chromium/content/browser/SelectActionModeCallback.java:161: ...
5 years, 8 months ago (2015-04-09 05:01:31 UTC) #6
jdduke (slow)
+aelias for content/browser/renderer_host/ +mfomitchev for ui/touch_selection https://codereview.chromium.org/1066053002/diff/40001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java File content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java (right): https://codereview.chromium.org/1066053002/diff/40001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java#newcode578 content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java:578: On 2015/04/09 05:01:31, ...
5 years, 8 months ago (2015-04-09 17:46:20 UTC) #8
aelias_OOO_until_Jul13
content/browser/renderer_host/ lgtm
5 years, 8 months ago (2015-04-09 19:58:20 UTC) #9
mfomitchev
I thought we agreed that we wouldn't pass the positions with the SelectionEvent and instead ...
5 years, 8 months ago (2015-04-10 15:04:04 UTC) #10
jdduke (slow)
On 2015/04/10 15:04:04, mfomitchev wrote: > I thought we agreed that we wouldn't pass the ...
5 years, 8 months ago (2015-04-10 15:55:57 UTC) #11
mfomitchev
On 2015/04/10 15:55:57, jdduke wrote: > On 2015/04/10 15:04:04, mfomitchev wrote: > > I thought ...
5 years, 8 months ago (2015-04-10 16:23:09 UTC) #12
jdduke (slow)
Mikhail: Can you take a look at the changes to TouchSelectionController, namely, the addition of ...
5 years, 8 months ago (2015-04-14 00:07:39 UTC) #14
mfomitchev
https://codereview.chromium.org/1066053002/diff/140001/ui/touch_selection/touch_selection_controller.cc File ui/touch_selection/touch_selection_controller.cc (right): https://codereview.chromium.org/1066053002/diff/140001/ui/touch_selection/touch_selection_controller.cc#newcode245 ui/touch_selection/touch_selection_controller.cc:245: return RectFBetweenSelectionBounds(start_, end_); Can't we also have a case ...
5 years, 8 months ago (2015-04-14 15:02:34 UTC) #15
mfomitchev
5 years, 8 months ago (2015-04-14 15:02:56 UTC) #16
jdduke (slow)
https://codereview.chromium.org/1066053002/diff/140001/ui/touch_selection/touch_selection_controller.cc File ui/touch_selection/touch_selection_controller.cc (right): https://codereview.chromium.org/1066053002/diff/140001/ui/touch_selection/touch_selection_controller.cc#newcode245 ui/touch_selection/touch_selection_controller.cc:245: return RectFBetweenSelectionBounds(start_, end_); On 2015/04/14 15:02:33, mfomitchev wrote: > ...
5 years, 8 months ago (2015-04-14 15:19:30 UTC) #17
jdduke (slow)
+sadrul for ui/base/touch. Mikhail, I made the changes we discusse, could you take another look ...
5 years, 8 months ago (2015-04-14 18:39:12 UTC) #19
mfomitchev
LGTM
5 years, 8 months ago (2015-04-14 19:37:51 UTC) #22
sadrul
lgtm https://codereview.chromium.org/1066053002/diff/220001/ui/base/touch/selection_bound.h File ui/base/touch/selection_bound.h (right): https://codereview.chromium.org/1066053002/diff/220001/ui/base/touch/selection_bound.h#newcode72 ui/base/touch/selection_bound.h:72: mfomitchev@ Can you look into replacing the uses ...
5 years, 8 months ago (2015-04-14 19:38:43 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1066053002/220001
5 years, 8 months ago (2015-04-14 19:44:56 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1066053002/230001
5 years, 8 months ago (2015-04-14 21:50:23 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1066053002/230001
5 years, 8 months ago (2015-04-15 00:07:24 UTC) #33
commit-bot: I haz the power
Committed patchset #10 (id:230001)
5 years, 8 months ago (2015-04-15 00:09:15 UTC) #34
commit-bot: I haz the power
5 years, 8 months ago (2015-04-15 00:10:06 UTC) #35
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/3628fb3825e9119a4f96b0d425ffdf2c608bd6b7
Cr-Commit-Position: refs/heads/master@{#325154}

Powered by Google App Engine
This is Rietveld 408576698