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

Issue 380002: Mac: Show download item menu on mouse down instead of mouse up. (Closed)

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

Description

Show download item menu on mouse down instead of mouse up. BUG=20812 TEST= * Click right part of download item. Menu should appear on mouse down. * After menu is closed, mousing over the menu should not show the depressed state. * Click left part of download item. File should be opened on mouse up. * http://crbug.com/28215 should not have regressed. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=37701

Patch Set 1 #

Patch Set 2 : fix highlight #

Total comments: 10

Patch Set 3 : address some comments #

Patch Set 4 : rebase #

Patch Set 5 : more rebase #

Patch Set 6 : '' #

Total comments: 2

Patch Set 7 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -23 lines) Patch
M chrome/browser/cocoa/download_item_button.h View 1 2 3 4 5 1 chunk +6 lines, -1 line 0 comments Download
M chrome/browser/cocoa/download_item_button.mm View 1 2 3 4 5 2 chunks +29 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/download_item_cell.h View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/cocoa/download_item_controller.h View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/cocoa/download_item_controller.mm View 1 2 3 4 5 6 3 chunks +10 lines, -17 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Nico
This change is simpler than it looks, but since I only get a "fire action" ...
11 years, 1 month ago (2009-11-08 23:27:51 UTC) #1
Nico
This change is simpler than it looks, but since I only get a "fire action" ...
11 years, 1 month ago (2009-11-08 23:27:54 UTC) #2
pink (ping after 24hrs)
Needs a unit test on new class. http://codereview.chromium.org/380002/diff/2001/3002 File chrome/browser/cocoa/download_item_button.h (right): http://codereview.chromium.org/380002/diff/2001/3002#newcode9 Line 9: @interface ...
11 years, 1 month ago (2009-11-09 15:37:40 UTC) #3
Nico
I Addressed the easy comments. I will probably not get around to the other comments ...
11 years, 1 month ago (2009-11-09 16:41:50 UTC) #4
pink (ping after 24hrs)
On Mon, Nov 9, 2009 at 11:41 AM, <thakis@chromium.org> wrote: > I Addressed the easy ...
11 years, 1 month ago (2009-11-09 16:54:46 UTC) #5
Nico
I dusted this off. I had to add a DownloadButton for other reasons, so I ...
10 years, 10 months ago (2010-01-31 03:11:45 UTC) #6
pink (ping after 24hrs)
lgtm with one comment. http://codereview.chromium.org/380002/diff/6014/7011 File chrome/browser/cocoa/download_item_controller.mm (right): http://codereview.chromium.org/380002/diff/6014/7011#newcode101 chrome/browser/cocoa/download_item_controller.mm:101: - (void)dealloc { just to ...
10 years, 10 months ago (2010-02-01 14:37:57 UTC) #7
Nico
10 years, 10 months ago (2010-02-01 15:07:21 UTC) #8
Thanks.

http://codereview.chromium.org/380002/diff/6014/7011
File chrome/browser/cocoa/download_item_controller.mm (right):

http://codereview.chromium.org/380002/diff/6014/7011#newcode101
chrome/browser/cocoa/download_item_controller.mm:101: - (void)dealloc {
On 2010/02/01 14:37:57, pink wrote:
> just to be safe do you want to set the progressView_'s controller to nil,
since
> it's a weak reference and there's no guarantee when it will go away?

Done.

Powered by Google App Engine
This is Rietveld 408576698