Chromium Code Reviews

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.
Jump to:
View side-by-side diff with in-line comments
« 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