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

Issue 180036: Make download items drag sources on OS X. (Closed)

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

Description

Make download items drag sources on OS X. Extract button dragging out of BookmarkButton into DraggableButton. Make BookmarkButton a subclass of DraggableButton. Create new class DownloadItemButton and make it a subclass of DraggableButton. xib change: Make download item a DownloadItemButton instead of an NSButton. BUG=15776 TEST=Download something, wait for it to complete, then drag it from the download shelf to somewhere. It should now work. Bookmarks should still be draggable in the bookmarks bar. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=37621

Patch Set 1 #

Patch Set 2 : forgot to add new files #

Patch Set 3 : update comment #

Patch Set 4 : 5 months of rebase, refactor dragging stuff #

Patch Set 5 : works #

Patch Set 6 : only drag if download done #

Patch Set 7 : '' #

Total comments: 35

Patch Set 8 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+270 lines, -128 lines) Patch
M chrome/app/nibs/DownloadItem.xib View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/bookmark_button.h View 4 5 6 7 1 chunk +4 lines, -11 lines 0 comments Download
M chrome/browser/cocoa/bookmark_button.mm View 4 5 6 7 6 chunks +5 lines, -81 lines 0 comments Download
M chrome/browser/cocoa/bookmark_button_unittest.mm View 1 chunk +2 lines, -32 lines 0 comments Download
A chrome/browser/cocoa/download_item_button.h View 2 3 4 5 6 7 1 chunk +21 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/download_item_button.mm View 2 3 4 5 6 7 1 chunk +21 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/download_item_button_unittest.mm View 4 5 6 7 1 chunk +21 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/download_item_controller.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/cocoa/download_item_controller.mm View 1 2 3 4 5 6 7 2 chunks +6 lines, -3 lines 0 comments Download
A chrome/browser/cocoa/draggable_button.h View 4 5 6 7 1 chunk +30 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/draggable_button.mm View 4 5 6 7 1 chunk +105 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/draggable_button_unittest.mm View 4 5 6 7 1 chunk +45 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Nico
This looks larger than it is. It's really just splitting BookmarkButton into two classes. The ...
10 years, 10 months ago (2010-01-30 03:41:11 UTC) #1
Nico
On 2010/01/30 03:41:11, Nico wrote: > This looks larger than it is. It's really just ...
10 years, 10 months ago (2010-01-30 03:48:28 UTC) #2
viettrungluu
LGTM with a few changes. Could you also file a bug for the cleanup, in ...
10 years, 10 months ago (2010-01-30 04:40:53 UTC) #3
viettrungluu
Also, I lied about when I'd get the review done. But now I'm hungry.
10 years, 10 months ago (2010-01-30 04:41:22 UTC) #4
Nico
Thanks. I hope you had a tasty meal. I helped myself to some junk food ...
10 years, 10 months ago (2010-01-30 05:52:22 UTC) #5
viettrungluu
Ship it! I mean, LGTM.
10 years, 10 months ago (2010-01-30 06:29:36 UTC) #6
Nico
jrg: fyi
10 years, 10 months ago (2010-01-30 06:34:41 UTC) #7
John Grabowski
10 years, 10 months ago (2010-01-30 06:37:25 UTC) #8
thakis: argh


On Fri, Jan 29, 2010 at 10:34 PM, <thakis@chromium.org> wrote:

> jrg: fyi
>
>
> http://codereview.chromium.org/180036
>

Powered by Google App Engine
This is Rietveld 408576698