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

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

Issue 2148483002: [Mac] Fix download shelf items (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 4 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 | « chrome/browser/ui/cocoa/download/download_item_controller.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/download/download_shelf_controller.mm
diff --git a/chrome/browser/ui/cocoa/download/download_shelf_controller.mm b/chrome/browser/ui/cocoa/download/download_shelf_controller.mm
index 3467b0668d97982e829d918af8831b0bf5a4a9ae..aef82b00cdae25ddcc2ddeb2eb8080f21ee981c8 100644
--- a/chrome/browser/ui/cocoa/download/download_shelf_controller.mm
+++ b/chrome/browser/ui/cocoa/download/download_shelf_controller.mm
@@ -82,7 +82,8 @@ const NSSize kHoverCloseButtonDefaultSize = { 18, 18 };
- (void)installTrackingArea;
- (void)removeTrackingArea;
- (void)willEnterFullscreen;
-- (void)willLeaveFullscreen;
+- (void)didExitFullscreen;
+- (void)updateDownloadItemView;
- (void)updateCloseButton;
@end
@@ -134,8 +135,8 @@ const NSSize kHoverCloseButtonDefaultSize = { 18, 18 };
name:NSWindowWillEnterFullScreenNotification
object:nil];
[defaultCenter addObserver:self
- selector:@selector(willLeaveFullscreen)
- name:NSWindowWillExitFullScreenNotification
+ selector:@selector(didExitFullscreen)
+ name:NSWindowDidExitFullScreenNotification
object:nil];
[self installTrackingArea];
}
@@ -478,9 +479,15 @@ const NSSize kHoverCloseButtonDefaultSize = { 18, 18 };
[self updateCloseButton];
}
-- (void)willLeaveFullscreen {
+- (void)didExitFullscreen {
isFullscreen_ = NO;
[self updateCloseButton];
+ [self updateDownloadItemView];
+}
+
+- (void)updateDownloadItemView {
+ for (DownloadItemController* controller in downloadItemControllers_.get())
+ [controller updateDownloadItemView];
}
- (void)updateCloseButton {
« no previous file with comments | « chrome/browser/ui/cocoa/download/download_item_controller.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698