| OLD | NEW |
| 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 #import "third_party/GTM/AppKit/GTMTheme.h" | 9 #import "third_party/GTM/AppKit/GTMTheme.h" |
| 10 | 10 |
| 11 // A custom view that draws a 'standard' background gradient. | 11 // A custom view that draws a 'standard' background gradient. |
| 12 // Base class for other Chromium views. | 12 // Base class for other Chromium views. |
| 13 | |
| 14 @interface BackgroundGradientView : NSView { | 13 @interface BackgroundGradientView : NSView { |
| 15 @private | 14 @private |
| 16 BOOL showsDivider_; | 15 BOOL showsDivider_; |
| 17 } | 16 } |
| 18 | 17 |
| 19 // The color used for the bottom stroke. Public so subclasses can use. | 18 // The color used for the bottom stroke. Public so subclasses can use. |
| 20 - (NSColor *)strokeColor; | 19 - (NSColor *)strokeColor; |
| 21 | 20 |
| 21 // Draws the background for this view. Make sure that your patternphase |
| 22 // is set up correctly in your graphics context before calling. |
| 23 - (void)drawBackground; |
| 24 |
| 22 // Controls whether the bar draws a dividing line at the bottom. | 25 // Controls whether the bar draws a dividing line at the bottom. |
| 23 @property(assign) BOOL showsDivider; | 26 @property(assign) BOOL showsDivider; |
| 24 @end | 27 @end |
| 25 | 28 |
| 26 #endif // CHROME_BROWSER_COCOA_BACKGROUND_GRADIENT_VIEW_H_ | 29 #endif // CHROME_BROWSER_COCOA_BACKGROUND_GRADIENT_VIEW_H_ |
| OLD | NEW |