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 |
| 20 // Adds a TitlebarBackgroundView to the [[window contentView] superView]. |
| 21 + (void)addToNSWindow:(NSWindow*)window |
| 22 activeColor:(SkColor)activeColor |
| 23 inactiveColor:(SkColor)inactiveColor; |
| 24 @end |
| 25 |
| 26 #endif // CHROME_BROWSER_UI_COCOA_APPS_TITLEBAR_BACKGROUND_VIEW_H_ |
OLD | NEW |