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

Issue 199024: (Mac) Display the bookmark bar off-the-side menu on mouse down. Also align the menu. (Closed)

Created:
11 years, 3 months ago by viettrungluu
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

(Mac) Display the bookmark bar off-the-side menu on mouse down. Also align the menu. (Basically, make it like Safari's button.) We make the button into a |MenuButton|, attach a fixed menu to it in the nib, and make the |BookmarkBarController| the delegate for this menu so that we can update the menu just before it's displayed. As a side effect, also fixes bug 20813. BUG=21093, 20813 TEST=Make sure the bookmark bar off-the-side button works properly under a variety of circumstances, making sure the menu is properly aligned, etc. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=25507

Patch Set 1 #

Total comments: 8

Patch Set 2 : Fixed a comment, deleted some unneeded code, added test, per jrg's review. #

Total comments: 1

Patch Set 3 : Rebased ToT. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+234 lines, -89 lines) Patch
M chrome/app/nibs/BookmarkBar.xib View 23 chunks +152 lines, -72 lines 0 comments Download
M chrome/browser/cocoa/bookmark_bar_controller.h View 1 4 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/cocoa/bookmark_bar_controller.mm View 1 3 chunks +28 lines, -12 lines 0 comments Download
M chrome/browser/cocoa/bookmark_bar_controller_unittest.mm View 1 chunk +43 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/menu_button.h View 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/browser/cocoa/menu_button.mm View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
viettrungluu
11 years, 3 months ago (2009-09-04 16:27:33 UTC) #1
John Grabowski
Overall I like. Minor changes requested. http://codereview.chromium.org/199024/diff/1/4 File chrome/browser/cocoa/bookmark_bar_controller.mm (right): http://codereview.chromium.org/199024/diff/1/4#newcode300 Line 300: // Called ...
11 years, 3 months ago (2009-09-04 16:48:54 UTC) #2
viettrungluu
Thanks, John. Could you please re-review? http://codereview.chromium.org/199024/diff/1/4 File chrome/browser/cocoa/bookmark_bar_controller.mm (right): http://codereview.chromium.org/199024/diff/1/4#newcode300 Line 300: // Called ...
11 years, 3 months ago (2009-09-04 19:12:56 UTC) #3
John Grabowski
11 years, 3 months ago (2009-09-04 19:45:28 UTC) #4
LGTM

http://codereview.chromium.org/199024/diff/5001/2006
File chrome/browser/cocoa/bookmark_bar_controller_unittest.mm (right):

http://codereview.chromium.org/199024/diff/5001/2006#newcode527
Line 527: TEST_F(BookmarkBarControllerTest, TestBuildOffTheSideMenu) {
Excellent.

Powered by Google App Engine
This is Rietveld 408576698