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

Unified Diff: chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm

Issue 338773002: [Mac] Make app window backgrounds white. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm
diff --git a/chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm b/chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm
index a4ad4eabc04d88a0f14caf214ffa876118597cd7..e7e25049551dfa144a5896025a19319bcbe2c4ad 100644
--- a/chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm
+++ b/chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm
@@ -217,6 +217,18 @@ std::vector<gfx::Rect> CalculateNonDraggableRegions(
return YES;
}
+- (void)drawCustomFrameRect:(NSRect)rect forView:(NSView*)view {
+ [super drawCustomFrameRect:rect
+ forView:view];
+
+ // Make the background color of the content area white.
+ NSRect contentRect = [NSWindow contentRectForFrameRect:rect
+ styleMask:[self styleMask]];
+ [[NSBezierPath bezierPathWithRect:contentRect] addClip];
+ [[NSColor whiteColor] set];
+ NSRectFill(rect);
+}
+
@end
@interface ShellCustomFrameNSWindow : ShellNSWindow {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698