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

Issue 292113008: Plumbing for browser process to access text surrounding selection. (Closed)

Created:
6 years, 7 months ago by mlamouri (slow - plz ping)
Modified:
6 years, 6 months ago
CC:
chromium-reviews, creis+watch_chromium.org, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, nasko+codewatch_chromium.org, jam, penghuang+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, James Su, miu+watch_chromium.org, Donn Denman, jochen (gone - plz use gerrit)
Base URL:
https://chromium.googlesource.com/chromium/src.git@adb_install_humans
Visibility:
Public.

Description

Plumbing for browser process to access text surrounding selection. This is using cl 294073005 in order for Blink to give that information to the embedder. The information is passed asynchronously with an IPC message for the request and another for the response. BUG=330238 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=277474

Patch Set 1 #

Total comments: 10

Patch Set 2 : #

Total comments: 2

Patch Set 3 : handle type conversion #

Patch Set 4 : use chromium style guide #

Patch Set 5 : rebase - use int #

Total comments: 1

Patch Set 6 : update to use websurroundingtext #

Total comments: 1

Patch Set 7 : remove boilerplate in CVC #

Total comments: 1

Patch Set 8 : rebase #

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -2 lines) Patch
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 8 2 chunks +10 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +9 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M content/common/frame_messages.h View 1 2 3 4 5 6 7 8 2 chunks +12 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 3 chunks +24 lines, -2 lines 0 comments Download

Messages

Total messages: 34 (0 generated)
mlamouri (slow - plz ping)
jdduke, could you review the changes in: content/public/android/ content/browser/android/ dcheng, could your review the changes ...
6 years, 7 months ago (2014-05-21 20:45:43 UTC) #1
dcheng
At a high level, it seems weird that RenderFrameHostImpl is just forwarding things to RenderViewHostImpl. ...
6 years, 7 months ago (2014-05-21 21:05:38 UTC) #2
mlamouri (slow - plz ping)
I'm using RenderFrame{Host,} because I'm accessing a WebFrame API on the renderer side. With RenderView{Host,}, ...
6 years, 7 months ago (2014-05-21 21:19:39 UTC) #3
nasko
https://codereview.chromium.org/292113008/diff/1/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/292113008/diff/1/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java#newcode2476 content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java:2476: String content, int startOffset, int endOffset) { On 2014/05/21 ...
6 years, 7 months ago (2014-05-22 18:59:04 UTC) #4
dcheng
https://codereview.chromium.org/292113008/diff/1/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/292113008/diff/1/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java#newcode2476 content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java:2476: String content, int startOffset, int endOffset) { On 2014/05/21 ...
6 years, 7 months ago (2014-05-22 19:02:36 UTC) #5
mlamouri (slow - plz ping)
On 2014/05/22 19:02:36, dcheng wrote: > https://codereview.chromium.org/292113008/diff/1/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java > File > content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java > (right): > > ...
6 years, 6 months ago (2014-05-29 15:23:12 UTC) #6
mlamouri (slow - plz ping)
I've updated the plumbing code to handle the type conversion. I will see with the ...
6 years, 6 months ago (2014-05-29 16:35:03 UTC) #7
mlamouri (slow - plz ping)
review ping
6 years, 6 months ago (2014-06-03 12:40:46 UTC) #8
nasko
You still need to qualify that it is "unsigned int", which is the chromium style.
6 years, 6 months ago (2014-06-03 21:02:23 UTC) #9
dcheng
What have other places that need to bring an unsigned int into Java done? This ...
6 years, 6 months ago (2014-06-03 21:54:55 UTC) #10
mlamouri (slow - plz ping)
nasko@, I've updated the patch to use "unsigned int" instead of "unsigned". dcheng@, I checked ...
6 years, 6 months ago (2014-06-04 14:38:54 UTC) #11
jdduke (slow)
On 2014/06/04 14:38:54, Mounir Lamouri wrote: > nasko@, I've updated the patch to use "unsigned ...
6 years, 6 months ago (2014-06-04 15:12:15 UTC) #12
mlamouri (slow - plz ping)
I've changed the WebFrame API to use int even though the internal Blink API uses ...
6 years, 6 months ago (2014-06-05 16:33:02 UTC) #13
jdduke (slow)
https://codereview.chromium.org/292113008/diff/80001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://codereview.chromium.org/292113008/diff/80001/content/browser/android/content_view_core_impl.cc#newcode1548 content/browser/android/content_view_core_impl.cc:1548: Java_ContentViewCore_onTextSurroundingSelectionResponse( I believe Donn is exploring ways to route ...
6 years, 6 months ago (2014-06-06 01:28:32 UTC) #14
jdduke (slow)
On 2014/06/06 01:28:32, jdduke wrote: > https://codereview.chromium.org/292113008/diff/80001/content/browser/android/content_view_core_impl.cc > File content/browser/android/content_view_core_impl.cc (right): > > https://codereview.chromium.org/292113008/diff/80001/content/browser/android/content_view_core_impl.cc#newcode1548 > ...
6 years, 6 months ago (2014-06-06 01:29:57 UTC) #15
donnd
Jared, thanks for pointing this out, and sorry I didn't realize this either.
6 years, 6 months ago (2014-06-06 02:11:21 UTC) #16
nasko
On 2014/06/06 02:11:21, Donn wrote: > Jared, thanks for pointing this out, and sorry I ...
6 years, 6 months ago (2014-06-06 17:10:22 UTC) #17
jdduke (slow)
On 2014/06/06 17:10:22, nasko wrote: > On 2014/06/06 02:11:21, Donn wrote: > > Jared, thanks ...
6 years, 6 months ago (2014-06-06 17:14:28 UTC) #18
nasko
IPC LGTM
6 years, 6 months ago (2014-06-06 17:25:19 UTC) #19
dcheng
Err, are we still coercing unsigned to signed?
6 years, 6 months ago (2014-06-06 17:34:56 UTC) #20
mlamouri (slow - plz ping)
On 2014/06/06 17:34:56, dcheng wrote: > Err, are we still coercing unsigned to signed? This ...
6 years, 6 months ago (2014-06-07 12:53:20 UTC) #21
mlamouri (slow - plz ping)
I have updated the CL to apply on top of the latest changes from the ...
6 years, 6 months ago (2014-06-10 13:19:05 UTC) #22
jdduke (slow)
https://codereview.chromium.org/292113008/diff/100001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://codereview.chromium.org/292113008/diff/100001/content/browser/android/content_view_core_impl.cc#newcode1538 content/browser/android/content_view_core_impl.cc:1538: void ContentViewCoreImpl::OnTextSurroundingSelectionResponse( As mentioned, let's defer adding the hooks ...
6 years, 6 months ago (2014-06-10 14:53:32 UTC) #23
dcheng
On 2014/06/07 at 12:53:20, mlamouri wrote: > On 2014/06/06 17:34:56, dcheng wrote: > > Err, ...
6 years, 6 months ago (2014-06-10 18:06:51 UTC) #24
jdduke (slow)
On 2014/06/10 18:06:51, dcheng wrote: > On 2014/06/07 at 12:53:20, mlamouri wrote: > > On ...
6 years, 6 months ago (2014-06-12 16:23:15 UTC) #25
mlamouri (slow - plz ping)
I switch the entire CL to use size_t so there is no type conversion. I've ...
6 years, 6 months ago (2014-06-12 17:50:45 UTC) #26
dcheng
On 2014/06/12 at 16:23:15, jdduke wrote: > On 2014/06/10 18:06:51, dcheng wrote: > > On ...
6 years, 6 months ago (2014-06-12 21:13:20 UTC) #27
mlamouri (slow - plz ping)
jam@, could you review the content/ plumbing?
6 years, 6 months ago (2014-06-12 21:16:17 UTC) #28
jdduke (slow)
On 2014/06/12 21:13:20, dcheng wrote: > "time-critical feature" -- this statement makes me sad. Not ...
6 years, 6 months ago (2014-06-12 21:23:00 UTC) #29
jam
redirecting to Avi
6 years, 6 months ago (2014-06-13 17:05:58 UTC) #30
Avi (use Gerrit)
lgtm
6 years, 6 months ago (2014-06-15 01:44:14 UTC) #31
mlamouri (slow - plz ping)
The CQ bit was checked by mlamouri@chromium.org
6 years, 6 months ago (2014-06-16 10:38:43 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/292113008/160001
6 years, 6 months ago (2014-06-16 10:39:17 UTC) #33
commit-bot: I haz the power
6 years, 6 months ago (2014-06-16 17:22:28 UTC) #34
Message was sent while issue was closed.
Change committed as 277474

Powered by Google App Engine
This is Rietveld 408576698