| 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_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_ | 
| OLD | NEW |