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

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

Issue 2769014: Mac/clang: Possibly contentious changes. (Closed)
Patch Set: comments2 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
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_BACKGROUND_GRADIENT_VIEW_H_ 5 #ifndef CHROME_BROWSER_COCOA_BACKGROUND_GRADIENT_VIEW_H_
6 #define CHROME_BROWSER_COCOA_BACKGROUND_GRADIENT_VIEW_H_ 6 #define CHROME_BROWSER_COCOA_BACKGROUND_GRADIENT_VIEW_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 // A custom view that draws a 'standard' background gradient. 10 // A custom view that draws a 'standard' background gradient.
11 // Base class for other Chromium views. 11 // Base class for other Chromium views.
12 @interface BackgroundGradientView : NSView { 12 @interface BackgroundGradientView : NSView {
13 @private 13 @private
14 BOOL showsDivider_; 14 BOOL showsDivider_;
15 } 15 }
16 16
17 // The color used for the bottom stroke. Public so subclasses can use. 17 // The color used for the bottom stroke. Public so subclasses can use.
18 - (NSColor *)strokeColor; 18 - (NSColor *)strokeColor;
19 19
20 // Draws the background for this view. Make sure that your patternphase 20 // Draws the background for this view. Make sure that your patternphase
21 // is set up correctly in your graphics context before calling. 21 // is set up correctly in your graphics context before calling.
22 - (void)drawBackground; 22 - (void)drawBackground;
23 23
24 // Controls whether the bar draws a dividing line at the bottom. 24 // Controls whether the bar draws a dividing line at the bottom.
25 @property(assign) BOOL showsDivider; 25 @property(nonatomic, assign) BOOL showsDivider;
26 @end 26 @end
27 27
28 #endif // CHROME_BROWSER_COCOA_BACKGROUND_GRADIENT_VIEW_H_ 28 #endif // CHROME_BROWSER_COCOA_BACKGROUND_GRADIENT_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698