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

Issue 8792001: A BookmarkBarFolderButtonCell should have the favicon aligned left when no title is provided (Closed)

Created:
9 years ago by KushalP
Modified:
9 years ago
CC:
chromium-reviews
Visibility:
Public.

Description

A BookmarkBarFolderButtonCell should have the favicon aligned left when no title is provided This change has been made at the parent class level, where the rendering of the BookmarkButtonCell is implemented. It aligns the favicon with NSImageLeft if there is no title. A test has also been added to check for the differences in image positioning between these two classes. BUG=105276 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=114588

Patch Set 1 #

Total comments: 4

Patch Set 2 : handle nits; add unit test #

Total comments: 3

Patch Set 3 : update comment; keep stuff for future CL #

Patch Set 4 : add imageRectForBounds tests #

Total comments: 4

Patch Set 5 : add width and X tests #

Patch Set 6 : widths are equal #

Total comments: 4

Patch Set 7 : use cellSize instead of imageRect for width #

Total comments: 2

Patch Set 8 : ASSERTS on pointers #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -2 lines) Patch
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell_unittest.mm View 1 2 3 4 5 6 7 2 chunks +56 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm View 1 2 1 chunk +9 lines, -2 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
KushalP
This is a nicer fix than adding a space to the title text! :D Please ...
9 years ago (2011-12-04 00:23:59 UTC) #1
KushalP
If there's a smart way to unit test this, please let me know.
9 years ago (2011-12-04 00:26:09 UTC) #2
Ilya Sherman
On 2011/12/04 00:23:59, KushalP wrote: > This is a nicer fix than adding a space ...
9 years ago (2011-12-05 23:53:57 UTC) #3
KushalP
http://codereview.chromium.org/8792001/diff/1/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm File chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm (right): http://codereview.chromium.org/8792001/diff/1/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm#newcode120 chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm:120: withString:@" "]; On 2011/12/05 23:53:58, Ilya Sherman wrote: > ...
9 years ago (2011-12-13 17:39:06 UTC) #4
KushalP
Updated with new patch set fixing nits and adding a unit test.
9 years ago (2011-12-13 20:27:08 UTC) #5
Ilya Sherman
LG with nits :) > On 2011/12/04 00:26:09, KushalP wrote: > > If there's a ...
9 years ago (2011-12-13 22:35:24 UTC) #6
KushalP
On 2011/12/13 22:35:24, Ilya Sherman wrote: > Hmm, I wonder if you could use NSCell's ...
9 years ago (2011-12-13 22:51:01 UTC) #7
KushalP
http://codereview.chromium.org/8792001/diff/6001/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm File chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm (left): http://codereview.chromium.org/8792001/diff/6001/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm#oldcode120 chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm:120: withString:@" "]; On 2011/12/13 22:35:24, Ilya Sherman wrote: > ...
9 years ago (2011-12-13 22:51:31 UTC) #8
Ilya Sherman
On 2011/12/13 22:51:31, KushalP wrote: > http://codereview.chromium.org/8792001/diff/6001/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm > File chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm (left): > > http://codereview.chromium.org/8792001/diff/6001/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm#oldcode120 > ...
9 years ago (2011-12-13 22:55:39 UTC) #9
Ilya Sherman
On 2011/12/13 22:51:01, KushalP wrote: > On 2011/12/13 22:35:24, Ilya Sherman wrote: > > Hmm, ...
9 years ago (2011-12-13 22:57:16 UTC) #10
Ilya Sherman
http://codereview.chromium.org/8792001/diff/14001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell_unittest.mm File chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell_unittest.mm (right): http://codereview.chromium.org/8792001/diff/14001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell_unittest.mm#newcode59 chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell_unittest.mm:59: EXPECT_EQ(67, ([cell imageRectForBounds:rect]).origin.y); nit: No need to test the ...
9 years ago (2011-12-14 00:27:39 UTC) #11
KushalP
http://codereview.chromium.org/8792001/diff/14001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell_unittest.mm File chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell_unittest.mm (right): http://codereview.chromium.org/8792001/diff/14001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell_unittest.mm#newcode60 chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell_unittest.mm:60: EXPECT_EQ(67, ([cell imageRectForBounds:rect]).origin.x); On 2011/12/14 00:27:39, Ilya Sherman wrote: ...
9 years ago (2011-12-14 00:31:04 UTC) #12
Ilya Sherman
http://codereview.chromium.org/8792001/diff/14001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell_unittest.mm File chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell_unittest.mm (right): http://codereview.chromium.org/8792001/diff/14001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell_unittest.mm#newcode60 chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell_unittest.mm:60: EXPECT_EQ(67, ([cell imageRectForBounds:rect]).origin.x); On 2011/12/14 00:31:04, KushalP wrote: > ...
9 years ago (2011-12-14 00:33:05 UTC) #13
Ilya Sherman
On 2011/12/14 00:33:05, Ilya Sherman wrote: > http://codereview.chromium.org/8792001/diff/14001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell_unittest.mm > File > chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell_unittest.mm > (right): > ...
9 years ago (2011-12-14 00:36:42 UTC) #14
KushalP
Updated with with and x-coord tests.
9 years ago (2011-12-14 01:01:13 UTC) #15
KushalP
On 2011/12/14 01:01:13, KushalP wrote: > Updated with with and x-coord tests. *width
9 years ago (2011-12-14 01:31:51 UTC) #16
Ilya Sherman
http://codereview.chromium.org/8792001/diff/9005/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell_unittest.mm File chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell_unittest.mm (right): http://codereview.chromium.org/8792001/diff/9005/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell_unittest.mm#newcode61 chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell_unittest.mm:61: EXPECT_EQ(NSImageOnly, [cell imagePosition]); nit: Please remove these statements, as ...
9 years ago (2011-12-14 21:38:07 UTC) #17
KushalP
http://codereview.chromium.org/8792001/diff/9005/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell_unittest.mm File chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell_unittest.mm (right): http://codereview.chromium.org/8792001/diff/9005/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell_unittest.mm#newcode69 chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell_unittest.mm:69: EXPECT_EQ(cell_width_without_title, cell_width_with_title); On 2011/12/14 21:38:07, Ilya Sherman wrote: > ...
9 years ago (2011-12-14 22:10:05 UTC) #18
Ilya Sherman
On 2011/12/14 22:10:05, KushalP wrote: > http://codereview.chromium.org/8792001/diff/9005/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell_unittest.mm > File > chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell_unittest.mm > (right): > > ...
9 years ago (2011-12-14 22:48:58 UTC) #19
Ryan Sleevi
http://codereview.chromium.org/8792001/diff/21002/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell_unittest.mm File chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell_unittest.mm (right): http://codereview.chromium.org/8792001/diff/21002/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell_unittest.mm#newcode31 chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell_unittest.mm:31: EXPECT_TRUE(view.get()); Drive by: Should these be ASSERT_TRUEs instead? The ...
9 years ago (2011-12-15 00:45:54 UTC) #20
KushalP
http://codereview.chromium.org/8792001/diff/21002/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell_unittest.mm File chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell_unittest.mm (right): http://codereview.chromium.org/8792001/diff/21002/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell_unittest.mm#newcode31 chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell_unittest.mm:31: EXPECT_TRUE(view.get()); On 2011/12/15 00:45:54, Ryan Sleevi wrote: > Drive ...
9 years ago (2011-12-15 01:29:26 UTC) #21
Ilya Sherman
LGTM, thanks :)
9 years ago (2011-12-15 01:49:29 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kushi.p@gmail.com/8792001/26001
9 years ago (2011-12-15 01:49:50 UTC) #23
commit-bot: I haz the power
9 years ago (2011-12-15 03:08:33 UTC) #24
Change committed as 114588

Powered by Google App Engine
This is Rietveld 408576698