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

Issue 11068010: Show selection handles around selected text. (Closed)

Created:
8 years, 2 months ago by Iain Merrick
Modified:
8 years, 1 month ago
Reviewers:
olilan, bulach, nilesh, sky
CC:
chromium-reviews, James Su, yusukes+watch_chromium.org, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, erikwright+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Show selection handles around selected text. This patch upstreams code to display text selection handles in the Android content shell. While in selection mode, we also display an action bar with editing commands; I have stubbed this out because we don't yet have the necessary resources (added a TODO for that). BUG=138468 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=161353

Patch Set 1 : removed debugging code #

Patch Set 2 : tweaked comments #

Total comments: 16

Patch Set 3 : Addressed bulach's comments, lots of public -> package-private #

Patch Set 4 : Rebased, un-deleted some code #

Total comments: 4

Patch Set 5 : Addressed sky's comments #

Total comments: 2

Patch Set 6 : Removed unnecessary 'virtual' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1085 lines, -20 lines) Patch
M content/browser/android/content_view_core_impl.h View 1 2 3 4 5 1 chunk +3 lines, -6 lines 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 3 4 3 chunks +39 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.h View 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 2 chunks +30 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 1 2 3 4 8 chunks +152 lines, -7 lines 0 comments Download
A + content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java.orig View 1 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download
A content/public/android/java/src/org/chromium/content/browser/CursorController.java View 1 2 1 chunk +41 lines, -0 lines 0 comments Download
A content/public/android/java/src/org/chromium/content/browser/HandleView.java View 1 2 1 chunk +370 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/InsertionHandleController.java View 1 2 2 chunks +267 lines, -3 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/SelectionHandleController.java View 1 2 1 chunk +179 lines, -3 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Iain Merrick
+oli who's familiar with this Java code +bulach for android/OWNERS +sky for content/browser/OWNERS
8 years, 2 months ago (2012-10-05 00:53:49 UTC) #1
bulach
thanks iain! lgtm with some nits below, feel free to land once oli / sky ...
8 years, 2 months ago (2012-10-05 12:50:59 UTC) #2
olilan
https://codereview.chromium.org/11068010/diff/2001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java File content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java (left): https://codereview.chromium.org/11068010/diff/2001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java#oldcode1289 content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java:1289: // Start a new action mode with a SelectActionModeCallback. ...
8 years, 2 months ago (2012-10-05 13:43:59 UTC) #3
Iain Merrick
https://codereview.chromium.org/11068010/diff/2001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://codereview.chromium.org/11068010/diff/2001/content/browser/android/content_view_core_impl.cc#newcode168 content/browser/android/content_view_core_impl.cc:168: GetMethodID(env, java_object_->rect_clazz, "<init>", "(IIII)V"); On 2012/10/05 12:50:59, bulach wrote: ...
8 years, 2 months ago (2012-10-05 19:01:52 UTC) #4
Iain Merrick
https://codereview.chromium.org/11068010/diff/2001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java File content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java (left): https://codereview.chromium.org/11068010/diff/2001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java#oldcode1289 content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java:1289: // Start a new action mode with a SelectActionModeCallback. ...
8 years, 2 months ago (2012-10-08 17:18:00 UTC) #5
Iain Merrick
sky, do you have time to review this? Or should I find another reviewer for ...
8 years, 2 months ago (2012-10-08 22:54:37 UTC) #6
sky
https://codereview.chromium.org/11068010/diff/14001/content/browser/renderer_host/render_widget_host_view_android.cc File content/browser/renderer_host/render_widget_host_view_android.cc (right): https://codereview.chromium.org/11068010/diff/14001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode33 content/browser/renderer_host/render_widget_host_view_android.cc:33: default: NOTREACHED() << "Unsupported text direction " << dir; ...
8 years, 2 months ago (2012-10-09 00:09:30 UTC) #7
Iain Merrick
http://codereview.chromium.org/11068010/diff/14001/content/browser/renderer_host/render_widget_host_view_android.cc File content/browser/renderer_host/render_widget_host_view_android.cc (right): http://codereview.chromium.org/11068010/diff/14001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode33 content/browser/renderer_host/render_widget_host_view_android.cc:33: default: NOTREACHED() << "Unsupported text direction " << dir; ...
8 years, 2 months ago (2012-10-10 15:01:39 UTC) #8
sky
LGTM - yes on the cleanup.
8 years, 2 months ago (2012-10-10 16:39:31 UTC) #9
Iain Merrick
On 2012/10/10 16:39:31, sky wrote: > LGTM - yes on the cleanup. Great, thanks. I'll ...
8 years, 2 months ago (2012-10-10 17:01:48 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/husky@chromium.org/11068010/20001
8 years, 2 months ago (2012-10-10 17:02:13 UTC) #11
Iain Merrick
On 2012/10/10 17:01:48, Iain Merrick wrote: > On 2012/10/10 16:39:31, sky wrote: > > LGTM ...
8 years, 2 months ago (2012-10-10 17:42:58 UTC) #12
nilesh
http://codereview.chromium.org/11068010/diff/20001/content/browser/android/content_view_core_impl.h File content/browser/android/content_view_core_impl.h (right): http://codereview.chromium.org/11068010/diff/20001/content/browser/android/content_view_core_impl.h#newcode201 content/browser/android/content_view_core_impl.h:201: const gfx::Rect& end_rect, base::i18n::TextDirection end_dir) OVERRIDE; Unless I am ...
8 years, 2 months ago (2012-10-10 20:35:42 UTC) #13
commit-bot: I haz the power
List of reviewers changed. nileshagrawal@chromium.org did a drive-by without LGTM'ing!
8 years, 2 months ago (2012-10-11 05:03:15 UTC) #14
Iain Merrick
http://codereview.chromium.org/11068010/diff/20001/content/browser/android/content_view_core_impl.h File content/browser/android/content_view_core_impl.h (right): http://codereview.chromium.org/11068010/diff/20001/content/browser/android/content_view_core_impl.h#newcode201 content/browser/android/content_view_core_impl.h:201: const gfx::Rect& end_rect, base::i18n::TextDirection end_dir) OVERRIDE; On 2012/10/10 20:35:42, ...
8 years, 2 months ago (2012-10-11 09:51:22 UTC) #15
Iain Merrick
On 2012/10/11 09:51:22, Iain Merrick wrote: > http://codereview.chromium.org/11068010/diff/20001/content/browser/android/content_view_core_impl.h > File content/browser/android/content_view_core_impl.h (right): > > http://codereview.chromium.org/11068010/diff/20001/content/browser/android/content_view_core_impl.h#newcode201 ...
8 years, 2 months ago (2012-10-11 10:44:41 UTC) #16
nilesh
LGTM, thanks
8 years, 2 months ago (2012-10-11 14:12:12 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/husky@chromium.org/11068010/23002
8 years, 2 months ago (2012-10-11 14:12:57 UTC) #18
commit-bot: I haz the power
8 years, 2 months ago (2012-10-11 16:19:09 UTC) #19
Change committed as 161353

Powered by Google App Engine
This is Rietveld 408576698