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

Issue 159018: [Mac] Strip newlines from paste. (Closed)

Created:
11 years, 5 months ago by Scott Hess - ex-Googler
Modified:
9 years, 6 months ago
Reviewers:
John Grabowski, Nico
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

[Mac] Strip newlines from paste. http://crbug.com/11817 TEST=Copy an URL somewhere and break it apart with newlines at random places. Copy/paste it into omnibox and the newlines should be gone. Try this one: http://dev.chro mium.org/develo pers/how-tos/ge t-the-code

Patch Set 1 #

Total comments: 13

Patch Set 2 : Address Jon's comments #

Total comments: 7

Patch Set 3 : jrg comments ][. #

Patch Set 4 : Test empty clipboard #

Unified diffs Side-by-side diffs Delta from patch set Stats (+345 lines, -16 lines) Patch
M chrome/browser/autocomplete/autocomplete_edit_view_mac.h View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_edit_view_mac.mm View 1 2 4 chunks +78 lines, -0 lines 0 comments Download
A chrome/browser/autocomplete/autocomplete_edit_view_mac_unittest.mm View 2 3 1 chunk +69 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/autocomplete_text_field.h View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/autocomplete_text_field.mm View 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/autocomplete_text_field_editor.h View 1 2 2 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/autocomplete_text_field_editor.mm View 1 1 chunk +15 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/autocomplete_text_field_editor_unittest.mm View 4 chunks +90 lines, -16 lines 0 comments Download
M chrome/browser/cocoa/autocomplete_text_field_unittest.mm View 2 chunks +50 lines, -0 lines 0 comments Download
M chrome/chrome.gyp View 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Scott Hess - ex-Googler
11 years, 5 months ago (2009-07-17 18:39:04 UTC) #1
John Grabowski
http://codereview.chromium.org/159018/diff/1/3 File chrome/browser/autocomplete/autocomplete_edit_view_mac.mm (right): http://codereview.chromium.org/159018/diff/1/3#newcode118 Line 118: // TODO(shess): Copied from autocomplete_edit_view_win.cc. Could this Probably ...
11 years, 5 months ago (2009-07-17 19:36:05 UTC) #2
Scott Hess - ex-Googler
http://codereview.chromium.org/159018/diff/1/3 File chrome/browser/autocomplete/autocomplete_edit_view_mac.mm (right): http://codereview.chromium.org/159018/diff/1/3#newcode118 Line 118: // TODO(shess): Copied from autocomplete_edit_view_win.cc. Could this On ...
11 years, 5 months ago (2009-07-17 22:02:03 UTC) #3
John Grabowski
LGTM once category becomes a protocol. Great work here Scott. http://codereview.chromium.org/159018/diff/1/4 File chrome/browser/cocoa/autocomplete_text_field.h (right): http://codereview.chromium.org/159018/diff/1/4#newcode15 ...
11 years, 5 months ago (2009-07-18 01:25:38 UTC) #4
TVL
On Fri, Jul 17, 2009 at 2:39 PM, <shess@chromium.org> wrote: > > Reviewers: John Grabowski, ...
11 years, 5 months ago (2009-07-19 05:01:27 UTC) #5
Scott Hess - ex-Googler
http://codereview.chromium.org/159018/diff/1/4 File chrome/browser/cocoa/autocomplete_text_field.h (right): http://codereview.chromium.org/159018/diff/1/4#newcode15 Line 15: @interface NSObject (AutocompleteTextFieldDelegateMethods) On 2009/07/18 01:25:38, John Grabowski ...
11 years, 5 months ago (2009-07-20 21:27:03 UTC) #6
Nico
11 years, 5 months ago (2009-07-21 17:17:31 UTC) #7
> Drive by comment:  While eating the spaces in an url in nice, if I'm trying
> to do a search, mapping the newlines to spaces would be better.  Very often
> I end up using a address and pasting it in for pulling up a map/directions.
>  Safari and Camino actually get this right because paste in url bar eats the
> returns and paste in search bar turns them into spaces.  But since we have
> one bar, I'm not sure how we get this "right".  :(

Remove newlines if the thing that's being pasted looks like an URL, replace with
spaces else?

Powered by Google App Engine
This is Rietveld 408576698