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

Issue 294073005: Extend WebSurroundingText to accept a WebRange. (Closed)

Created:
6 years, 7 months ago by mlamouri (slow - plz ping)
Modified:
6 years, 6 months ago
CC:
blink-reviews, jamesr, dglazkov+blink, Donn Denman, jdduke (slow)
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Extend WebSurroundingText to accept a WebRange. This will make it possible to get the text surrounding the current selection by calling WebFrame::selectionRange() and passing that range to WebSurroundingText. BUG=330238 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176168

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : use unsigned #

Patch Set 4 : Don't use VisiblePosition #

Patch Set 5 : rebase and use int #

Total comments: 1

Patch Set 6 : use websurroundingtext #

Total comments: 6

Patch Set 7 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -3 lines) Patch
M Source/web/WebSurroundingText.cpp View 1 2 3 4 5 6 2 chunks +16 lines, -0 lines 0 comments Download
M public/web/WebSurroundingText.h View 1 2 3 4 5 6 2 chunks +23 lines, -3 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
mlamouri (slow - plz ping)
jochen@, let me know if you want someone else to review the core/editing/ changes.
6 years, 7 months ago (2014-05-21 13:37:21 UTC) #1
jochen (gone - plz use gerrit)
On 2014/05/21 13:37:21, Mounir Lamouri wrote: > jochen@, let me know if you want someone ...
6 years, 7 months ago (2014-05-22 08:38:58 UTC) #2
mlamouri (slow - plz ping)
tkent@, could you have a look at this CL please? :)
6 years, 7 months ago (2014-05-22 08:46:34 UTC) #3
tkent
+yosin and yutak because this is editing-related.
6 years, 7 months ago (2014-05-22 08:51:14 UTC) #4
yosin_UTC9
Could you tell us how will you use this new API for better understanding of ...
6 years, 7 months ago (2014-05-22 09:03:34 UTC) #5
mlamouri (slow - plz ping)
On 2014/05/22 09:03:34, yosi wrote: > Could you tell us how will you use this ...
6 years, 7 months ago (2014-05-22 09:34:21 UTC) #6
yosin_UTC9
On 2014/05/22 09:34:21, Mounir Lamouri wrote: > On 2014/05/22 09:03:34, yosi wrote: > > Could ...
6 years, 7 months ago (2014-05-22 09:57:35 UTC) #7
mlamouri (slow - plz ping)
On 2014/05/22 09:57:35, yosi wrote: > On 2014/05/22 09:34:21, Mounir Lamouri wrote: > > On ...
6 years, 7 months ago (2014-05-22 09:59:12 UTC) #8
yosin_UTC9
> SurroundingText is currently using VisiblePosition. I guess we would want it to > use ...
6 years, 7 months ago (2014-05-23 01:04:02 UTC) #9
mlamouri (slow - plz ping)
On 2014/05/23 01:04:02, yosi wrote: > > SurroundingText is currently using VisiblePosition. I guess we ...
6 years, 6 months ago (2014-05-30 14:11:55 UTC) #10
mlamouri (slow - plz ping)
I have rebased this CL on top of https://codereview.chromium.org/307353002/ which makes SurroundingText depending on Position ...
6 years, 6 months ago (2014-06-03 12:39:47 UTC) #11
mlamouri (slow - plz ping)
I have rebased the CL on top of https://codereview.chromium.org/307353002/ and changed the exposed WebFrame API ...
6 years, 6 months ago (2014-06-05 15:40:04 UTC) #12
Yuta Kitamura
https://codereview.chromium.org/294073005/diff/80001/public/web/WebFrame.h File public/web/WebFrame.h (right): https://codereview.chromium.org/294073005/diff/80001/public/web/WebFrame.h#newcode484 public/web/WebFrame.h:484: virtual WebString textSurroundingSelection(int maxLength, int* startOffset, int* endOffset) const ...
6 years, 6 months ago (2014-06-06 02:20:08 UTC) #13
mlamouri (slow - plz ping)
On 2014/06/06 02:20:08, Yuta Kitamura wrote: > https://codereview.chromium.org/294073005/diff/80001/public/web/WebFrame.h > File public/web/WebFrame.h (right): > > https://codereview.chromium.org/294073005/diff/80001/public/web/WebFrame.h#newcode484 ...
6 years, 6 months ago (2014-06-09 10:39:27 UTC) #14
abarth-chromium
On 2014/06/09 10:39:27, Mounir Lamouri wrote: > https://codereview.chromium.org/294073005/diff/80001/public/web/WebFrame.h#newcode484 > > public/web/WebFrame.h:484: virtual WebString textSurroundingSelection(int > ...
6 years, 6 months ago (2014-06-09 17:29:26 UTC) #15
Yuta Kitamura
On 2014/06/09 10:39:27, Mounir Lamouri wrote: > On 2014/06/06 02:20:08, Yuta Kitamura wrote: > > ...
6 years, 6 months ago (2014-06-10 04:43:10 UTC) #16
mlamouri (slow - plz ping)
I have splitted this CL to have the editing/ changes (the core) separated from the ...
6 years, 6 months ago (2014-06-10 13:17:15 UTC) #17
mlamouri (slow - plz ping)
Now that https://codereview.chromium.org/323983006 has landed, this should be ready to land. Tamura-san and Yuta-san, could ...
6 years, 6 months ago (2014-06-12 14:51:28 UTC) #18
tkent
https://codereview.chromium.org/294073005/diff/100001/Source/web/WebSurroundingText.cpp File Source/web/WebSurroundingText.cpp (right): https://codereview.chromium.org/294073005/diff/100001/Source/web/WebSurroundingText.cpp#newcode53 Source/web/WebSurroundingText.cpp:53: const Range* range = webRange.constUnwrap<Range>(); nit: You can simplify ...
6 years, 6 months ago (2014-06-13 01:15:37 UTC) #19
Yuta Kitamura
Since this patch is mostly about web/ interface, I'd like to leave the actual review ...
6 years, 6 months ago (2014-06-13 07:12:30 UTC) #20
mlamouri (slow - plz ping)
Comments applied. PTAL. https://codereview.chromium.org/294073005/diff/100001/Source/web/WebSurroundingText.cpp File Source/web/WebSurroundingText.cpp (right): https://codereview.chromium.org/294073005/diff/100001/Source/web/WebSurroundingText.cpp#newcode53 Source/web/WebSurroundingText.cpp:53: const Range* range = webRange.constUnwrap<Range>(); On ...
6 years, 6 months ago (2014-06-13 10:34:04 UTC) #21
tkent
lgtm
6 years, 6 months ago (2014-06-15 23:42:29 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/294073005/120001
6 years, 6 months ago (2014-06-15 23:42:50 UTC) #23
commit-bot: I haz the power
6 years, 6 months ago (2014-06-16 00:30:21 UTC) #24
Message was sent while issue was closed.
Change committed as 176168

Powered by Google App Engine
This is Rietveld 408576698