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

Issue 336001: [Mac] Make bookmark bar a primitive drag destination. (Closed)

Created:
11 years, 2 months ago by Nico
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, dmac
Visibility:
Public.

Description

[Mac] Make bookmark bar primitive drag destination. Credits for the bookmark bar fix to dmac; stolen from http://codereview.chromium.org/267082 . BUG=18289 TEST=Drag a link or bookmarklet from the web to the bookmark bar. It should be added at the end of the bar. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=29906 Reverted: http://src.chromium.org/viewvc/chrome?view=rev&revision=29908 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=29990

Patch Set 1 #

Patch Set 2 : make bookmarklets work #

Patch Set 3 : add jrg-appeasing test #

Total comments: 12

Patch Set 4 : address comments #

Patch Set 5 : Now hopefully passes try bots #

Patch Set 6 : cleanup #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -6 lines) Patch
M chrome/app/nibs/BookmarkBar.xib View 4 chunks +21 lines, -4 lines 0 comments Download
M chrome/browser/cocoa/bookmark_bar_controller.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/bookmark_bar_controller.mm View 1 2 3 4 2 chunks +19 lines, -0 lines 2 comments Download
M chrome/browser/cocoa/bookmark_bar_controller_unittest.mm View 3 4 2 chunks +32 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/bookmark_bar_view.h View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/cocoa/bookmark_bar_view.mm View 1 2 3 4 5 4 chunks +48 lines, -0 lines 4 comments Download
M chrome/browser/cocoa/browser_window_controller.mm View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
Nico
I started working on this, and then Ben deprioritized the bug. I think this is ...
11 years, 2 months ago (2009-10-23 04:22:01 UTC) #1
John Grabowski
Like it. LGTM with "do it in IB" change. http://codereview.chromium.org/336001/diff/4001/4003 File chrome/browser/cocoa/bookmark_bar_controller.mm (right): http://codereview.chromium.org/336001/diff/4001/4003#newcode114 Line ...
11 years, 2 months ago (2009-10-23 17:04:52 UTC) #2
Nico
Thanks. Will submit once the try results are in for the revised patch. http://codereview.chromium.org/336001/diff/4001/4003 File ...
11 years, 2 months ago (2009-10-23 17:31:48 UTC) #3
Nico
I changed some minor things; I don't think a rereview is necessary. The try bots ...
11 years, 2 months ago (2009-10-24 02:00:20 UTC) #4
pink (ping after 24hrs)
drive-by nits. http://codereview.chromium.org/336001/diff/7001/8003 File chrome/browser/cocoa/bookmark_bar_controller.mm (right): http://codereview.chromium.org/336001/diff/7001/8003#newcode83 Line 83: // Remove our view from its ...
11 years, 1 month ago (2009-10-27 15:00:43 UTC) #5
Nico
11 years, 1 month ago (2009-10-27 15:52:42 UTC) #6
http://codereview.chromium.org/336001/diff/7001/8003
File chrome/browser/cocoa/bookmark_bar_controller.mm (right):

http://codereview.chromium.org/336001/diff/7001/8003#newcode83
Line 83: // Remove our view from its superview so it doesn't attempt to
reference
On 2009/10/27 15:00:43, pink wrote:
> is this necessary with dmac's changes, or just a hack until then?

See http://codereview.chromium.org/334029 .

http://codereview.chromium.org/336001/diff/7001/8006
File chrome/browser/cocoa/bookmark_bar_view.mm (right):

http://codereview.chromium.org/336001/diff/7001/8006#newcode73
Line 73: // TODO(port): This should probably return |YES| and the controller
should
On 2009/10/27 15:00:43, pink wrote:
> we've stopped using "port" for TODOs.

Will convert it when I touch this file the next time.

http://codereview.chromium.org/336001/diff/7001/8006#newcode80
Line 80: if ([[info draggingPasteboard] containsURLData])
On 2009/10/27 15:00:43, pink wrote:
> todo for DragOperationMove when dragging a bookmark from the bar?

Given that http://crbug.com/17609 is set to "started", I didn't want to add too
much stuff. Also, the bookmark dragging might happen in NSBookmarkButton instead
of here (?), so that feels like premature TODOization.

Powered by Google App Engine
This is Rietveld 408576698