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

Issue 216052: Mac: Empty bookmark bar should show IDS_BOOKMARKS_NO_ITEMS. (Closed)

Created:
11 years, 3 months ago by Elliot Glaysher
Modified:
9 years, 7 months ago
Reviewers:
John Grabowski, TVL
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Mac: Empty bookmark bar should show IDS_BOOKMARKS_NO_ITEMS. TEST=BookmarkBarControllerTest.DisplaysHelpMessageOnEmpty TEST=BookmarkBarControllerTest.HidesHelpMessageWithBookmark BUG=17360 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=26853

Patch Set 1 #

Total comments: 4

Patch Set 2 : Committed ver. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -15 lines) Patch
M chrome/app/nibs/BookmarkBar.xib View 1 15 chunks +96 lines, -9 lines 0 comments Download
M chrome/browser/cocoa/bookmark_bar_controller.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/cocoa/bookmark_bar_controller.mm View 1 3 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/cocoa/bookmark_bar_controller_unittest.mm View 2 chunks +18 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/bookmark_bar_view.h View 1 1 chunk +7 lines, -3 lines 0 comments Download
M chrome/browser/cocoa/bookmark_bar_view.mm View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Elliot Glaysher
11 years, 3 months ago (2009-09-22 20:15:44 UTC) #1
John Grabowski
LGTM with one style nit. +cc tvl as fyi on l10n stuff in nib http://codereview.chromium.org/216052/diff/1/4 ...
11 years, 3 months ago (2009-09-22 20:26:35 UTC) #2
TVL
11 years, 3 months ago (2009-09-22 20:38:43 UTC) #3
http://codereview.chromium.org/216052/diff/1/4
File chrome/browser/cocoa/bookmark_bar_controller.mm (right):

http://codereview.chromium.org/216052/diff/1/4#newcode587
Line 587: BOOL hidden = (node->GetChildCount() == 0) ? NO : YES;
On 2009/09/22 20:26:36, John Grabowski wrote:
> Not clear if it matters, but perhaps we want to hide this view before adding
> items to the bar?  Seems a little cleaner to put this conditional at the top.
> 

You could also just check x_offset at then end to see if there were any buttons
added.

http://codereview.chromium.org/216052/diff/1/6
File chrome/browser/cocoa/bookmark_bar_view.h (right):

http://codereview.chromium.org/216052/diff/1/6#newcode20
Line 20: 
whitespace

Powered by Google App Engine
This is Rietveld 408576698