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

Unified Diff: chrome/browser/cocoa/bookmark_bar_view.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
« no previous file with comments | « no previous file | chrome/browser/cocoa/chrome_browser_window.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/bookmark_bar_view.mm
diff --git a/chrome/browser/cocoa/bookmark_bar_view.mm b/chrome/browser/cocoa/bookmark_bar_view.mm
index d62b7555ed53735e2194c001723d0933df79df3a..61cfa679076d02396a7e8df908506bf1038dd760 100644
--- a/chrome/browser/cocoa/bookmark_bar_view.mm
+++ b/chrome/browser/cocoa/bookmark_bar_view.mm
@@ -40,11 +40,14 @@
[self updateTheme:[self gtm_theme]];
}
+// 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 {
NSColor* color = [theme textColorForStyle:GTMThemeStyleBookmarksBarButton
state:GTMThemeStateActiveWindow];
« no previous file with comments | « no previous file | chrome/browser/cocoa/chrome_browser_window.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698