diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-21 23:36:03 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-21 23:36:03 +0000 |
commit | bb435b3b576004b83dd8ccd064052ba88cbac271 (patch) | |
tree | bdb870eedf18d2ed9cb2456e2c30e4d4716218b8 /chrome/browser/cocoa/download_item_cell.mm | |
parent | 8533b4b0db6cdbedb2feb40d2ea3a54fb03db963 (diff) | |
download | chromium_src-bb435b3b576004b83dd8ccd064052ba88cbac271.zip chromium_src-bb435b3b576004b83dd8ccd064052ba88cbac271.tar.gz chromium_src-bb435b3b576004b83dd8ccd064052ba88cbac271.tar.bz2 |
Fix context menu on download item.
BUG=none
TEST=Click arrow part of download item. A context menu should appear.
Review URL: http://codereview.chromium.org/159174
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21231 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/download_item_cell.mm')
-rw-r--r-- | chrome/browser/cocoa/download_item_cell.mm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/cocoa/download_item_cell.mm b/chrome/browser/cocoa/download_item_cell.mm index 62f0ec4..1d1793e 100644 --- a/chrome/browser/cocoa/download_item_cell.mm +++ b/chrome/browser/cocoa/download_item_cell.mm @@ -182,7 +182,7 @@ NSTimeInterval kHideStatusDuration = 0.3; if ([theEvent trackingArea] == trackingAreaButton_.get()) mousePosition_ = kDownloadItemMouseOverButtonPart; else if ([theEvent trackingArea] == trackingAreaDropdown_.get()) - mousePosition_ = kDownloadItemMouseOverButtonPart; + mousePosition_ = kDownloadItemMouseOverDropdownPart; [[self controlView] setNeedsDisplay:YES]; } @@ -207,12 +207,12 @@ NSTimeInterval kHideStatusDuration = 0.3; } - (BOOL)isMouseOverDropdownPart { - return mousePosition_ == kDownloadItemMouseOverButtonPart; + return mousePosition_ == kDownloadItemMouseOverDropdownPart; } - (BOOL)isDropdownPartPressed { return [self isHighlighted] - && mousePosition_ == kDownloadItemMouseOverButtonPart; + && mousePosition_ == kDownloadItemMouseOverDropdownPart; } - (NSBezierPath*)leftRoundedPath:(CGFloat)radius inRect:(NSRect)rect { |