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

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

Issue 389016: Address post-commit comments from codereview.chromium.org/371059 and codereview.chromium.org/293019 (Closed)
Patch Set: Created 11 years, 1 month 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/cocoa/download_shelf_controller.mm
diff --git a/chrome/browser/cocoa/download_shelf_controller.mm b/chrome/browser/cocoa/download_shelf_controller.mm
index e1faf3e70d3967ee8a996c06a100160fb906189f..6c2e4e97e356786925e8e5708f632481d50ae99a 100644
--- a/chrome/browser/cocoa/download_shelf_controller.mm
+++ b/chrome/browser/cocoa/download_shelf_controller.mm
@@ -98,11 +98,14 @@ const NSTimeInterval kDownloadShelfCloseDuration = 0.12;
[super dealloc];
}
+// Called after the current theme has changed.
- (void)themeDidChangeNotification:(NSNotification*)aNotification {
GTMTheme* theme = [aNotification object];
[self updateTheme:theme];
}
+// Adapt appearance to the current theme. Called after theme changes and before
+// this is shown for the first time.
- (void)updateTheme:(GTMTheme*)theme {
// For the default theme, use a blue color for the link. Ideally, we'd want to
// compare the current theme id with kDefaultThemeID, but the classic theme
« no previous file with comments | « chrome/browser/cocoa/download_item_controller.mm ('k') | chrome/browser/renderer_host/render_widget_host_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698