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

Unified Diff: chrome/browser/ui/cocoa/download/download_shelf_controller.h

Issue 3400027: [Mac] Makes the download shelf auto-close after the user opens all downloads... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years 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
Index: chrome/browser/ui/cocoa/download/download_shelf_controller.h
===================================================================
--- chrome/browser/ui/cocoa/download/download_shelf_controller.h (revision 69709)
+++ chrome/browser/ui/cocoa/download/download_shelf_controller.h (working copy)
@@ -52,6 +52,11 @@
// out.
CGFloat currentShelfHeight_;
+ // Used to autoclose the shelf when the mouse is moved off it. Is non-nil
+ // only when a subsequent mouseExited event can trigger autoclose or when a
+ // subsequent mouseEntered event will cancel autoclose. Is nil otherwise.
+ scoped_nsobject<NSTrackingArea> trackingArea_;
+
// The download items we have added to our shelf.
scoped_nsobject<NSMutableArray> downloadItemControllers_;
@@ -83,6 +88,9 @@
// Remove a download, possibly via clearing browser data.
- (void)remove:(DownloadItemController*)download;
+// Called by individual item controllers when their downloads are opened.
+- (void)downloadWasOpened:(DownloadItemController*)download;
+
// Notification that we are closing and should release our downloads.
- (void)exiting;
« no previous file with comments | « chrome/browser/ui/cocoa/download/download_item_mac.mm ('k') | chrome/browser/ui/cocoa/download/download_shelf_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698