OLD | NEW |
---|---|
(Empty) | |
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. | |
4 | |
5 #ifndef CHROME_BROWSER_UI_COCOA_APPS_TITLEBAR_BACKGROUND_VIEW_H_ | |
6 #define CHROME_BROWSER_UI_COCOA_APPS_TITLEBAR_BACKGROUND_VIEW_H_ | |
7 | |
8 #import <Cocoa/Cocoa.h> | |
9 | |
10 #import "base/mac/scoped_nsobject.h" | |
11 #include "third_party/skia/include/core/SkColor.h" | |
12 | |
13 // A view that paints a solid color. Used to change the title bar background. | |
14 @interface TitlebarBackgroundView : NSView { | |
15 @private | |
16 base::scoped_nsobject<NSColor> color_; | |
17 base::scoped_nsobject<NSColor> inactiveColor_; | |
18 } | |
19 // Adds a TitlebarBackgroundView to the [[window contentView] superView]. | |
tapted
2015/05/14 04:23:50
nit: empty line before
jackhou1
2015/05/14 06:20:40
Done.
| |
20 + (void)addToNSWindow:(NSWindow*)window | |
21 activeColor:(SkColor)activeColor | |
22 inactiveColor:(SkColor)inactiveColor; | |
23 @end | |
24 | |
25 #endif // CHROME_BROWSER_UI_COCOA_APPS_TITLEBAR_BACKGROUND_VIEW_H_ | |
OLD | NEW |