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

Unified Diff: chrome/browser/ui/cocoa/toolbar/toolbar_view_cocoa.mm

Issue 2339143003: Revert of BackgroundGradientView: -drawBackground: → -drawRect: (Closed)
Patch Set: Created 4 years, 3 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/tabs/tab_strip_view.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/toolbar/toolbar_view_cocoa.mm
diff --git a/chrome/browser/ui/cocoa/toolbar/toolbar_view_cocoa.mm b/chrome/browser/ui/cocoa/toolbar/toolbar_view_cocoa.mm
index be0d09928e66bf13a9ff8c84841e5e93f7be269f..82283f02d9843fbb61f895f78bd0ff85d6c96d98 100644
--- a/chrome/browser/ui/cocoa/toolbar/toolbar_view_cocoa.mm
+++ b/chrome/browser/ui/cocoa/toolbar/toolbar_view_cocoa.mm
@@ -15,6 +15,10 @@
// Prevent mouse down events from moving the parent window around.
- (BOOL)mouseDownCanMoveWindow {
return NO;
+}
+
+- (void)drawRect:(NSRect)dirtyRect {
+ [self drawBackground:dirtyRect];
}
// Override of |-[BackgroundGradientView strokeColor]|; make it respect opacity.
« no previous file with comments | « chrome/browser/ui/cocoa/tabs/tab_strip_view.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698