Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(290)

Unified Diff: chrome/browser/ui/cocoa/apps/titlebar_background_view.h

Issue 1053303003: [MacViews] Implement colored window frames. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..141848ab156eefc8adc44e2caf91a7f34e0f7d8a
--- /dev/null
+++ b/chrome/browser/ui/cocoa/apps/titlebar_background_view.h
@@ -0,0 +1,26 @@
+// 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>
+
+#import "base/mac/scoped_nsobject.h"
+#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_

Powered by Google App Engine
This is Rietveld 408576698