1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_COCOA_APPS_TITLEBAR_BACKGROUND_VIEW_H_
6 #define CHROME_BROWSER_UI_COCOA_APPS_TITLEBAR_BACKGROUND_VIEW_H_
8 #import <Cocoa/Cocoa.h>
10 #import "base/mac/scoped_nsobject.h"
11 #include "third_party/skia/include/core/SkColor.h"
13 // A view that paints a solid color. Used to change the title bar background.
14 @interface TitlebarBackgroundView
: NSView
{
16 base::scoped_nsobject
<NSColor
> color_
;
17 base::scoped_nsobject
<NSColor
> inactiveColor_
;
20 // Adds a TitlebarBackgroundView to the [[window contentView] superView].
21 + (void)addToNSWindow
:(NSWindow
*)window
22 activeColor
:(SkColor
)activeColor
23 inactiveColor
:(SkColor
)inactiveColor
;
26 #endif // CHROME_BROWSER_UI_COCOA_APPS_TITLEBAR_BACKGROUND_VIEW_H_