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

Unified Diff: chrome/browser/ui/cocoa/new_tab_button.mm

Issue 904503003: Mac: Make more views adopts ThemedWindowDrawing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@FramedBrowserWindow
Patch Set: Created 5 years, 10 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/new_tab_button.h ('k') | chrome/browser/ui/cocoa/tabs/tab_strip_background_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/new_tab_button.mm
diff --git a/chrome/browser/ui/cocoa/new_tab_button.mm b/chrome/browser/ui/cocoa/new_tab_button.mm
index 7c4d70de198d53a263f24fdf1ba61693d0cfe7db..e3e88f07d7231a3523cbc512493e5cee9dfcba23 100644
--- a/chrome/browser/ui/cocoa/new_tab_button.mm
+++ b/chrome/browser/ui/cocoa/new_tab_button.mm
@@ -55,4 +55,14 @@
return nil;
}
+// ThemedWindowDrawing implementation.
+
+- (void)windowDidChangeTheme {
+ [self setNeedsDisplay:YES];
+}
+
+- (void)windowDidChangeActive {
+ [self setNeedsDisplay:YES];
+}
+
@end
« no previous file with comments | « chrome/browser/ui/cocoa/new_tab_button.h ('k') | chrome/browser/ui/cocoa/tabs/tab_strip_background_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698