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

Unified Diff: chrome/browser/ui/cocoa/download/download_shelf_mac.mm

Issue 12995025: [Mac] DownloadShelf should be notified when autoclosing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: + NSTrackingInVisibleRect Created 7 years, 9 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
Index: chrome/browser/ui/cocoa/download/download_shelf_mac.mm
diff --git a/chrome/browser/ui/cocoa/download/download_shelf_mac.mm b/chrome/browser/ui/cocoa/download/download_shelf_mac.mm
index c644b51927b12346f08f61722b477d7ac36773ab..cd21a384dd8125f8b7cacc68cef6b3b5913b89d6 100644
--- a/chrome/browser/ui/cocoa/download/download_shelf_mac.mm
+++ b/chrome/browser/ui/cocoa/download/download_shelf_mac.mm
@@ -29,12 +29,14 @@ bool DownloadShelfMac::IsClosing() const {
}
void DownloadShelfMac::DoShow() {
- [shelf_controller_ show:nil];
+ [shelf_controller_ showDownloadShelf:YES
+ isUserAction:NO];
browser_->UpdateDownloadShelfVisibility(true);
}
-void DownloadShelfMac::DoClose() {
- [shelf_controller_ hide:nil];
+void DownloadShelfMac::DoClose(CloseReason reason) {
+ [shelf_controller_ showDownloadShelf:NO
+ isUserAction:reason == USER_ACTION];
browser_->UpdateDownloadShelfVisibility(false);
}
« no previous file with comments | « chrome/browser/ui/cocoa/download/download_shelf_mac.h ('k') | chrome/browser/ui/cocoa/download/download_shelf_mac_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698