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

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

Issue 900613003: Mac: Make it easier for views to correctly draw with a theme. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gyp
Patch Set: Created 5 years, 11 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
Index: chrome/browser/ui/cocoa/download/download_item_button.mm
diff --git a/chrome/browser/ui/cocoa/download/download_item_button.mm b/chrome/browser/ui/cocoa/download/download_item_button.mm
index 7c88b1d186ad2e5255c076db68f59d60d61a771e..141976df7e2fe28b127630acc84160c28e60b21d 100644
--- a/chrome/browser/ui/cocoa/download/download_item_button.mm
+++ b/chrome/browser/ui/cocoa/download/download_item_button.mm
@@ -74,4 +74,14 @@
[super drawRect:rect];
}
+// ThemedWindowDrawing implementation.
+
+- (void)windowDidChangeTheme {
+ [self setNeedsDisplay:YES];
+}
+
+- (void)windowDidChangeActive {
+ [self setNeedsDisplay:YES];
+}
+
@end

Powered by Google App Engine
This is Rietveld 408576698