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

Issue 322203002: Add an interface to gather text surrounding the selection. (Closed)

Created:
6 years, 6 months ago by Donn Denman
Modified:
6 years, 6 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@surroundings-patch-5
Visibility:
Public.

Description

Add an interface to gather text surrounding the selection. This CL is dependent on 292113008 and its dependencies. BUG=371596, 355154 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278693

Patch Set 1 #

Total comments: 10

Patch Set 2 : Moved surrounding text method definitions to content_view_core.h #

Patch Set 3 : Rebase #

Patch Set 4 : Reenabled messaging to content_view_core. #

Patch Set 5 : Comments. #

Total comments: 16

Patch Set 6 : Pass the delegate into the method that needs it. #

Patch Set 7 : Changed to use a callback (but probably not quite right). #

Patch Set 8 : Pass the context as a bound parameter in the text surroundings callback. #

Patch Set 9 : Add a boolean to track if the text surroundings callback has been set. #

Patch Set 10 : Using is_null to check if the callback is null. #

Total comments: 6

Patch Set 11 : Comments, and handle any case where the renderer crashes differently. #

Total comments: 6

Patch Set 12 : Comments, and a DCHECK that a callback was passed in. #

Patch Set 13 : Minor format changes done by "git cl format". #

Total comments: 5

Patch Set 14 : Moved the callback to RenderWidgetHostViewAndroid. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -2 lines) Patch
M content/browser/android/content_view_core_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +5 lines, -1 line 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +18 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 9 10 11 12 13 3 chunks +8 lines, -1 line 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 12 13 1 chunk +11 lines, -0 lines 0 comments Download
M content/public/browser/android/content_view_core.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
Donn Denman
Jared, Please take a quick look at my approach for exposing surrounding text, built on ...
6 years, 6 months ago (2014-06-10 21:14:42 UTC) #1
jdduke (slow)
On 2014/06/10 21:14:42, Donn Denman wrote: > Jared, Please take a quick look at my ...
6 years, 6 months ago (2014-06-10 21:27:27 UTC) #2
donnd
On 2014/06/10 21:27:27, jdduke wrote: > On 2014/06/10 21:14:42, Donn Denman wrote: > > Jared, ...
6 years, 6 months ago (2014-06-10 21:35:43 UTC) #3
jdduke (slow)
https://chromiumcodereview.appspot.com/322203002/diff/1/content/browser/android/content_view_core_impl.h File content/browser/android/content_view_core_impl.h (right): https://chromiumcodereview.appspot.com/322203002/diff/1/content/browser/android/content_view_core_impl.h#newcode228 content/browser/android/content_view_core_impl.h:228: void SetTextSurroundingsDelegate(TextSurroundingsDelegate* delegate) { Ah, so looks like we'll ...
6 years, 6 months ago (2014-06-10 22:08:09 UTC) #4
jdduke (slow)
It seems to me either WebContents or ContentViewCore would work here. However, I don't work ...
6 years, 6 months ago (2014-06-10 23:13:27 UTC) #5
David Trainor- moved to gerrit
lgtm with jared/my nits This should be okay but you'll have to keep swapping in/out ...
6 years, 6 months ago (2014-06-11 17:38:28 UTC) #6
donnd
Jared, PTAL. Thanks! https://chromiumcodereview.appspot.com/322203002/diff/1/content/browser/android/content_view_core_impl.h File content/browser/android/content_view_core_impl.h (right): https://chromiumcodereview.appspot.com/322203002/diff/1/content/browser/android/content_view_core_impl.h#newcode228 content/browser/android/content_view_core_impl.h:228: void SetTextSurroundingsDelegate(TextSurroundingsDelegate* delegate) { On 2014/06/10 ...
6 years, 6 months ago (2014-06-17 22:23:25 UTC) #7
jdduke (slow)
Nice, I think we're almost there, just a few nits and a question. So when ...
6 years, 6 months ago (2014-06-17 22:43:26 UTC) #8
donnd
I'm still unsure what's best for your concern about connections between the delegate and contentviewcore(s). ...
6 years, 6 months ago (2014-06-18 00:09:59 UTC) #9
jdduke (slow)
On 2014/06/18 00:09:59, Donn wrote: > I'm still unsure what's best for your concern about ...
6 years, 6 months ago (2014-06-18 00:34:00 UTC) #10
Donn Denman
> I think what we'll want do do here is use a callback function object ...
6 years, 6 months ago (2014-06-18 01:20:34 UTC) #11
donnd
On 2014/06/18 01:20:34, Donn Denman wrote: > > I think what we'll want do do ...
6 years, 6 months ago (2014-06-18 20:05:00 UTC) #12
jdduke (slow)
https://chromiumcodereview.appspot.com/322203002/diff/170001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://chromiumcodereview.appspot.com/322203002/diff/170001/content/browser/android/content_view_core_impl.cc#newcode1549 content/browser/android/content_view_core_impl.cc:1549: // Re-initialize to the is_null value. In the comments ...
6 years, 6 months ago (2014-06-18 20:32:53 UTC) #13
donnd
Jared, PTAL, and then I'll send to Ted. Thanks for all the help on this! ...
6 years, 6 months ago (2014-06-18 21:55:27 UTC) #14
jdduke (slow)
This is probably ready for further OWNER review (and whoever is reviewing your upstream CL ...
6 years, 6 months ago (2014-06-18 23:22:35 UTC) #15
jdduke (slow)
lgtm
6 years, 6 months ago (2014-06-18 23:24:06 UTC) #16
donnd
Thanks Jared! https://chromiumcodereview.appspot.com/322203002/diff/190001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://chromiumcodereview.appspot.com/322203002/diff/190001/content/browser/android/content_view_core_impl.cc#newcode1622 content/browser/android/content_view_core_impl.cc:1622: RenderFrameHost* focused_frame = web_contents_->GetFocusedFrame(); On 2014/06/18 23:22:35, ...
6 years, 6 months ago (2014-06-19 01:52:49 UTC) #17
donnd
Ted, would you mind reviewing this? If it's OK, I'll also send the downstream CL ...
6 years, 6 months ago (2014-06-19 02:00:29 UTC) #18
Donn Denman
Ted, wanted to point out an area that could use extra attention (below). https://chromiumcodereview.appspot.com/322203002/diff/230001/content/browser/android/content_view_core_impl.cc File ...
6 years, 6 months ago (2014-06-19 14:24:29 UTC) #19
Ted C
https://codereview.chromium.org/322203002/diff/230001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://codereview.chromium.org/322203002/diff/230001/content/browser/android/content_view_core_impl.cc#newcode1551 content/browser/android/content_view_core_impl.cc:1551: text_surroundings_callback_ = TextSurroundingSelectionCallback(); could this also be .Reset() instead ...
6 years, 6 months ago (2014-06-19 21:05:12 UTC) #20
donnd
Ted, PTAL, and thanks for the review and help! https://chromiumcodereview.appspot.com/322203002/diff/230001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://chromiumcodereview.appspot.com/322203002/diff/230001/content/browser/android/content_view_core_impl.cc#newcode1551 content/browser/android/content_view_core_impl.cc:1551: ...
6 years, 6 months ago (2014-06-19 21:27:24 UTC) #21
Ted C
lgtm
6 years, 6 months ago (2014-06-19 23:10:06 UTC) #22
no sievers
lgtm
6 years, 6 months ago (2014-06-19 23:14:01 UTC) #23
donnd
The CQ bit was checked by donnd@google.com
6 years, 6 months ago (2014-06-19 23:15:53 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/donnd@chromium.org/322203002/250001
6 years, 6 months ago (2014-06-19 23:17:21 UTC) #25
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_clang_dbg on tryserver.chromium ...
6 years, 6 months ago (2014-06-20 07:34:52 UTC) #26
commit-bot: I haz the power
6 years, 6 months ago (2014-06-20 13:09:13 UTC) #27
Message was sent while issue was closed.
Change committed as 278693

Powered by Google App Engine
This is Rietveld 408576698