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

Side by Side 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: Missed a few things. 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 unified diff | Download patch
OLDNEW
(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 #include "base/mac/scoped_nsobject.h"
tapted 2015/05/12 06:15:43 nit:import
jackhou1 2015/05/14 02:59:13 Done.
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].
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698