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

Issue 353024: Mac: Enable OK Button when editing a bookmark text to be blank... (Closed)

Created:
11 years, 1 month ago by feldstein
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, John Grabowski, pam+watch_chromium.org, ben+cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Enable the OK button when editing a bookmark even when there is no text, and keep alignment correct in both cases. Also strip out newlines from bookmark titles. [Patch by feldstein.] BUG=26353 TEST=Add and remove titles from bookmarks in the bookmark bar and verify that they look correct, and icons are centered when there is no text. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=31047

Patch Set 1 #

Total comments: 12

Patch Set 2 : Mac: Enable OK Button when editing a bookmark text to be blank... #

Total comments: 4

Patch Set 3 : A couple of style changes and update a unit test that falsely... #

Total comments: 6

Patch Set 4 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -12 lines) Patch
M chrome/browser/cocoa/bookmark_bar_controller.mm View 1 2 3 2 chunks +7 lines, -8 lines 0 comments Download
MM chrome/browser/cocoa/bookmark_button_cell.h View 1 2 3 1 chunk +5 lines, -0 lines 1 comment Download
M chrome/browser/cocoa/bookmark_button_cell.mm View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/bookmark_editor_controller.mm View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/cocoa/bookmark_editor_controller_unittest.mm View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
feldstein
11 years, 1 month ago (2009-11-03 19:24:07 UTC) #1
viettrungluu
I'll wait for you to sync and merge, but here are a few quick style ...
11 years, 1 month ago (2009-11-03 20:07:36 UTC) #2
mrossetti
Your copy of bookmark_editor_controller is seriously out of date. Please resolve and resubmit. http://codereview.chromium.org/353024/diff/1/5 File ...
11 years, 1 month ago (2009-11-03 20:08:04 UTC) #3
John Grabowski
http://codereview.chromium.org/353024/diff/1/4 File chrome/browser/cocoa/bookmark_button_cell.h (right): http://codereview.chromium.org/353024/diff/1/4#newcode16 Line 16: - (void) setBookmarkCellText:(NSString*)title andImage:(NSImage*)image; Also doc above the ...
11 years, 1 month ago (2009-11-03 21:35:29 UTC) #4
feldstein
Replies to a couple of comments, new version is coming in a few minutes. http://codereview.chromium.org/353024/diff/1/3 ...
11 years, 1 month ago (2009-11-04 02:44:48 UTC) #5
pink (ping after 24hrs)
drive-by comments. http://codereview.chromium.org/353024/diff/6001/12 File chrome/browser/cocoa/bookmark_bar_controller.mm (right): http://codereview.chromium.org/353024/diff/6001/12#newcode602 Line 602: [[[BookmarkButtonCell alloc] initTextCell:nil] autorelease]; continuation lines ...
11 years, 1 month ago (2009-11-04 14:07:51 UTC) #6
feldstein
Added a new patch for review to incorporate your comments and fix a unit test. ...
11 years, 1 month ago (2009-11-04 23:24:58 UTC) #7
John Grabowski
LGTM
11 years, 1 month ago (2009-11-04 23:44:57 UTC) #8
viettrungluu
Mostly nits, one substantial comment (at the bottom). http://codereview.chromium.org/353024/diff/9001/9002 File chrome/browser/cocoa/bookmark_bar_controller.mm (right): http://codereview.chromium.org/353024/diff/9001/9002#newcode597 Line 597: ...
11 years, 1 month ago (2009-11-05 00:02:39 UTC) #9
feldstein
Fixed the nitpicks, should be good to go now http://codereview.chromium.org/353024/diff/9001/9003 File chrome/browser/cocoa/bookmark_button_cell.mm (right): http://codereview.chromium.org/353024/diff/9001/9003#newcode40 Line ...
11 years, 1 month ago (2009-11-05 00:34:07 UTC) #10
viettrungluu
OK, lgtm. On 2009/11/05 00:34:07, feldstein wrote: > Fixed the nitpicks, should be good to ...
11 years, 1 month ago (2009-11-05 00:36:24 UTC) #11
mrossetti
11 years, 1 month ago (2009-11-05 03:26:13 UTC) #12
One small nit remains.

LGTM

http://codereview.chromium.org/353024/diff/10009/10013
File chrome/browser/cocoa/bookmark_button_cell.h (right):

http://codereview.chromium.org/353024/diff/10009/10013#newcode18
Line 18: // if there is text in the title, and centered (NSImageCenter) if there
is
What does that last part of the comment, "...if there is..." mean?  Terminate
comments with period.

Powered by Google App Engine
This is Rietveld 408576698