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

Unified Diff: chrome/browser/cocoa/download_item_cell.mm

Issue 159174: Fix context menu on download item.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/download_item_cell.mm
===================================================================
--- chrome/browser/cocoa/download_item_cell.mm (revision 21201)
+++ chrome/browser/cocoa/download_item_cell.mm (working copy)
@@ -182,7 +182,7 @@
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 @@
}
- (BOOL)isMouseOverDropdownPart {
- return mousePosition_ == kDownloadItemMouseOverButtonPart;
+ return mousePosition_ == kDownloadItemMouseOverDropdownPart;
}
- (BOOL)isDropdownPartPressed {
return [self isHighlighted]
- && mousePosition_ == kDownloadItemMouseOverButtonPart;
+ && mousePosition_ == kDownloadItemMouseOverDropdownPart;
}
- (NSBezierPath*)leftRoundedPath:(CGFloat)radius inRect:(NSRect)rect {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698