Index: chrome/browser/ui/cocoa/apps/titlebar_background_view.h |
diff --git a/chrome/browser/ui/cocoa/apps/titlebar_background_view.h b/chrome/browser/ui/cocoa/apps/titlebar_background_view.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..98148c5b37f5ef85c0314dce38aa4ae86c901c21 |
--- /dev/null |
+++ b/chrome/browser/ui/cocoa/apps/titlebar_background_view.h |
@@ -0,0 +1,25 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_UI_COCOA_APPS_TITLEBAR_BACKGROUND_VIEW_H_ |
+#define CHROME_BROWSER_UI_COCOA_APPS_TITLEBAR_BACKGROUND_VIEW_H_ |
+ |
+#import <Cocoa/Cocoa.h> |
+ |
+#include "base/mac/scoped_nsobject.h" |
tapted
2015/05/12 06:15:43
nit:import
jackhou1
2015/05/14 02:59:13
Done.
|
+#include "third_party/skia/include/core/SkColor.h" |
+ |
+// A view that paints a solid color. Used to change the title bar background. |
+@interface TitlebarBackgroundView : NSView { |
+ @private |
+ base::scoped_nsobject<NSColor> color_; |
+ base::scoped_nsobject<NSColor> inactiveColor_; |
+} |
+// Adds a TitlebarBackgroundView to the [[window contentView] superView]. |
++ (void)addToNSWindow:(NSWindow*)window |
+ activeColor:(SkColor)activeColor |
+ inactiveColor:(SkColor)inactiveColor; |
+@end |
+ |
+#endif // CHROME_BROWSER_UI_COCOA_APPS_TITLEBAR_BACKGROUND_VIEW_H_ |