| 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 b4c34d38779241b8e75aed5800d58ae42566784c..96a5fff75812c0a480214509a2e6d37b89c3a39b 100644
|
| --- a/chrome/browser/ui/cocoa/floating_bar_backing_view.mm
|
| +++ b/chrome/browser/ui/cocoa/floating_bar_backing_view.mm
|
| @@ -4,9 +4,27 @@
|
|
|
| #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 {}
|
| @@ -27,4 +45,14 @@
|
| ui::WindowTitlebarReceivedDoubleClick([self window], self);
|
| }
|
|
|
| +// ThemedWindowDrawing implementation.
|
| +
|
| +- (void)windowDidChangeTheme {
|
| + [self setNeedsDisplay:YES];
|
| +}
|
| +
|
| +- (void)windowDidChangeActive {
|
| + [self setNeedsDisplay:YES];
|
| +}
|
| +
|
| @end // @implementation FloatingBarBackingView
|
|
|