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

Side by Side Diff: chrome/browser/cocoa/vertical_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
OLDNEW
(Empty)
1 // Copyright (c) 2010 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_COCOA_VERTICAL_GRADIENT_VIEW_H_
6 #define CHROME_BROWSER_COCOA_VERTICAL_GRADIENT_VIEW_H_
7
8 #include "base/scoped_nsobject.h"
9
10 #import <Cocoa/Cocoa.h>
11
12 // Draws a vertical background gradient with a bottom stroke. The gradient and
13 // stroke colors can be defined by calling |setGradient| and |setStrokeColor|,
14 // respectively. Alternatively, you may override the |gradient| and
15 // |strokeColor| accessors in order to provide colors dynamically. If the
16 // gradient or color is |nil|, the respective element will not be drawn.
17 @interface VerticalGradientView : NSView {
18 @private
19 // The gradient to draw.
20 scoped_nsobject<NSGradient> gradient_;
21 // Color for bottom stroke.
22 scoped_nsobject<NSColor> strokeColor_;
23 }
24
25 // Gets and sets the gradient to paint as background.
26 - (NSGradient*)gradient;
27 - (void)setGradient:(NSGradient*)gradient;
28
29 // Gets and sets the color of the stroke drawn at the bottom of the view.
30 - (NSColor*)strokeColor;
31 - (void)setStrokeColor:(NSColor*)gradient;
32
33 @end
34
35 #endif // CHROME_BROWSER_COCOA_VERTICAL_GRADIENT_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/preferences_window_controller.mm ('k') | chrome/browser/cocoa/vertical_gradient_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698