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

Issue 374253002: Strip carriage return from find text; show newline symbols. (Closed)

Created:
6 years, 5 months ago by msw
Modified:
6 years, 5 months ago
CC:
chromium-reviews, ckocagil, Fady Samuel, jam, nasko, oshima
Visibility:
Public.

Description

Strip carriage return from find text; show newline symbols. Blink won't find carriage returns from Windows clipboards. Strip those characters before calling WebContents::Find. The newline character is displayed wrong in textfields. Swap it out for the Unicode newline symbol: ␤ (0x2424). (the glyph isn't available on Win Views for me now...) See before/after pics at http://crbug.com/371450#c7 BUG=371450 TEST=Find-in-page works well for string containing line breaks. R=pkasting@chromium.org TBR=asvitkine@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282102

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address comments. #

Patch Set 3 : Restore char16 arrays for cross platform support. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -0 lines) Patch
M chrome/browser/ui/find_bar/find_tab_helper.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M ui/gfx/render_text.cc View 2 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
msw
Hey Peter and Oshima, please take a look; thanks!
6 years, 5 months ago (2014-07-09 00:20:11 UTC) #1
Peter Kasting
LGTM https://codereview.chromium.org/374253002/diff/1/chrome/browser/ui/find_bar/find_tab_helper.cc File chrome/browser/ui/find_bar/find_tab_helper.cc (right): https://codereview.chromium.org/374253002/diff/1/chrome/browser/ui/find_bar/find_tab_helper.cc#newcode44 chrome/browser/ui/find_bar/find_tab_helper.cc:44: base::RemoveChars(search_string, kInvalidChars, &search_string); You can just pass L"\r" ...
6 years, 5 months ago (2014-07-09 00:27:05 UTC) #2
msw
Oshima, please take a look; thanks! https://codereview.chromium.org/374253002/diff/1/chrome/browser/ui/find_bar/find_tab_helper.cc File chrome/browser/ui/find_bar/find_tab_helper.cc (right): https://codereview.chromium.org/374253002/diff/1/chrome/browser/ui/find_bar/find_tab_helper.cc#newcode44 chrome/browser/ui/find_bar/find_tab_helper.cc:44: base::RemoveChars(search_string, kInvalidChars, &search_string); ...
6 years, 5 months ago (2014-07-09 00:40:12 UTC) #3
Peter Kasting
https://codereview.chromium.org/374253002/diff/1/chrome/browser/ui/find_bar/find_tab_helper.cc File chrome/browser/ui/find_bar/find_tab_helper.cc (right): https://codereview.chromium.org/374253002/diff/1/chrome/browser/ui/find_bar/find_tab_helper.cc#newcode44 chrome/browser/ui/find_bar/find_tab_helper.cc:44: base::RemoveChars(search_string, kInvalidChars, &search_string); On 2014/07/09 00:40:12, msw wrote: > ...
6 years, 5 months ago (2014-07-09 00:43:26 UTC) #4
msw
I had to revert L"\r", etc. back to char16 arrays for posix support. (lmk if ...
6 years, 5 months ago (2014-07-09 15:39:34 UTC) #5
oshima
I don't think you need my review for this CL. I defer it to peter.
6 years, 5 months ago (2014-07-09 18:05:37 UTC) #6
msw
TBR'ing Alexei instead for ui/gfx/OWNERS; landing.
6 years, 5 months ago (2014-07-09 19:18:35 UTC) #7
msw
The CQ bit was checked by msw@chromium.org
6 years, 5 months ago (2014-07-09 19:18:42 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/374253002/40001
6 years, 5 months ago (2014-07-09 19:21:03 UTC) #9
commit-bot: I haz the power
6 years, 5 months ago (2014-07-09 19:53:57 UTC) #10
Message was sent while issue was closed.
Change committed as 282102

Powered by Google App Engine
This is Rietveld 408576698