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

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

Issue 2430493002: [Mac] Fix rough-looking profile picker text, especially with a dark theme. (Closed)
Patch Set: Scopify! Created 3 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/floating_bar_backing_view.mm
diff --git a/chrome/browser/ui/cocoa/floating_bar_backing_view.mm b/chrome/browser/ui/cocoa/floating_bar_backing_view.mm
index 96a5fff75812c0a480214509a2e6d37b89c3a39b..b4c34d38779241b8e75aed5800d58ae42566784c 100644
--- a/chrome/browser/ui/cocoa/floating_bar_backing_view.mm
+++ b/chrome/browser/ui/cocoa/floating_bar_backing_view.mm
@@ -4,28 +4,10 @@
#include "chrome/browser/ui/cocoa/floating_bar_backing_view.h"
-#import "chrome/browser/ui/cocoa/framed_browser_window.h"
#import "ui/base/cocoa/appkit_utils.h"
@implementation FloatingBarBackingView
-- (void)drawRect:(NSRect)rect {
- NSWindow* window = [self window];
- BOOL isMainWindow = [window isMainWindow];
-
- if (isMainWindow)
- [[NSColor windowFrameColor] set];
- else
- [[NSColor windowBackgroundColor] set];
- NSRectFill(rect);
-
- [FramedBrowserWindow drawWindowThemeInDirtyRect:rect
- forView:self
- bounds:[self bounds]
- forceBlackBackground:YES];
-
-}
-
// Eat all mouse events (and do *not* pass them on to the next responder!).
- (void)mouseDown:(NSEvent*)event {}
- (void)rightMouseDown:(NSEvent*)event {}
@@ -45,14 +27,4 @@
ui::WindowTitlebarReceivedDoubleClick([self window], self);
}
-// ThemedWindowDrawing implementation.
-
-- (void)windowDidChangeTheme {
- [self setNeedsDisplay:YES];
-}
-
-- (void)windowDidChangeActive {
- [self setNeedsDisplay:YES];
-}
-
@end // @implementation FloatingBarBackingView
« no previous file with comments | « chrome/browser/ui/cocoa/floating_bar_backing_view.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