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

Side by Side Diff: chrome/browser/cocoa/infobar_gradient_view.h

Issue 2831004: Managed preferences warning banner for Mac preferences dialog (Closed)
Patch Set: rebase, take care of comments. Created 10 years, 6 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
« no previous file with comments | « chrome/app/nibs/Preferences.xib ('k') | chrome/browser/cocoa/infobar_gradient_view.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_COCOA_INFOBAR_GRADIENT_VIEW_H_ 5 #ifndef CHROME_BROWSER_COCOA_INFOBAR_GRADIENT_VIEW_H_
6 #define CHROME_BROWSER_COCOA_INFOBAR_GRADIENT_VIEW_H_ 6 #define CHROME_BROWSER_COCOA_INFOBAR_GRADIENT_VIEW_H_
7 7
8 #import "chrome/browser/cocoa/vertical_gradient_view.h"
9
8 #import <Cocoa/Cocoa.h> 10 #import <Cocoa/Cocoa.h>
9 11
10 // A custom view that draws the background gradient for an infobar. 12 // A custom view that draws the background gradient for an infobar.
11 // The default is a yellow gradient, but a custom gradient can also be set. 13 @interface InfoBarGradientView : VerticalGradientView {
12 @interface InfoBarGradientView : NSView {
13 @private
14 // The gradient to draw.
15 NSGradient* gradient_;
16 } 14 }
17 15
18 // Set a custom gradient for the view.
19 - (void)setGradient:(NSGradient*)gradient;
20
21 @end 16 @end
22 17
23 #endif // CHROME_BROWSER_COCOA_INFOBAR_GRADIENT_VIEW_H_ 18 #endif // CHROME_BROWSER_COCOA_INFOBAR_GRADIENT_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/app/nibs/Preferences.xib ('k') | chrome/browser/cocoa/infobar_gradient_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698