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

Unified Diff: chrome/browser/cocoa/download_item_button.h

Issue 380002: Mac: Show download item menu on mouse down instead of mouse up. (Closed)
Patch Set: comments Created 10 years, 11 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 | chrome/browser/cocoa/download_item_button.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/download_item_button.h
diff --git a/chrome/browser/cocoa/download_item_button.h b/chrome/browser/cocoa/download_item_button.h
index 5ce1a014e09ecb18aa406693e1307f8cf7567c60..b421e3bf4a41b5baebd286ca84f07b5773248fcb 100644
--- a/chrome/browser/cocoa/download_item_button.h
+++ b/chrome/browser/cocoa/download_item_button.h
@@ -7,13 +7,18 @@
#include "base/file_path.h"
#import "chrome/browser/cocoa/draggable_button.h"
-// A button that is a drag source for a file.
+@class DownloadItemController;
+
+// A button that is a drag source for a file and that displays a context menu
+// instead of firing an action when clicked in a certain area.
@interface DownloadItemButton : DraggableButton {
@private
FilePath downloadPath_;
+ DownloadItemController* controller_; // weak
}
@property(assign, nonatomic) FilePath download;
+@property(assign, nonatomic) DownloadItemController* controller;
// Overridden from DraggableButton.
- (void)beginDrag:(NSEvent*)event;
« no previous file with comments | « no previous file | chrome/browser/cocoa/download_item_button.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698