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

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

Issue 2209443005: [Mac] Refactor for updating the download item (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 aef82b00cdae25ddcc2ddeb2eb8080f21ee981c8..cc0cc76fd28091fcce7f9f5dbb5f085c77741c3f 100644
--- a/chrome/browser/ui/cocoa/download/download_shelf_controller.mm
+++ b/chrome/browser/ui/cocoa/download/download_shelf_controller.mm
@@ -24,6 +24,7 @@
#include "content/public/browser/download_manager.h"
#import "third_party/google_toolbox_for_mac/src/AppKit/GTMNSAnimation+Duration.h"
#import "ui/base/cocoa/hover_button.h"
+#import "ui/base/cocoa/nsview_additions.h"
using content::DownloadItem;
@@ -83,7 +84,6 @@ const NSSize kHoverCloseButtonDefaultSize = { 18, 18 };
- (void)removeTrackingArea;
- (void)willEnterFullscreen;
- (void)didExitFullscreen;
-- (void)updateDownloadItemView;
- (void)updateCloseButton;
@end
@@ -482,12 +482,8 @@ const NSSize kHoverCloseButtonDefaultSize = { 18, 18 };
- (void)didExitFullscreen {
isFullscreen_ = NO;
[self updateCloseButton];
- [self updateDownloadItemView];
-}
-
-- (void)updateDownloadItemView {
for (DownloadItemController* controller in downloadItemControllers_.get())
- [controller updateDownloadItemView];
+ [[controller view] cr_recursivelySetNeedsDisplay:YES];
}
- (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