OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UI_COCOA_INFOBARS_INFOBAR_GRADIENT_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_GRADIENT_VIEW_H_ |
6 #define CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_GRADIENT_VIEW_H_ | 6 #define CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_GRADIENT_VIEW_H_ |
7 | 7 |
8 #include "chrome/browser/infobars/infobar_delegate.h" | 8 #include "chrome/browser/api/infobars/infobar_delegate.h" |
9 #import "chrome/browser/ui/cocoa/vertical_gradient_view.h" | 9 #import "chrome/browser/ui/cocoa/vertical_gradient_view.h" |
10 | 10 |
11 #import <Cocoa/Cocoa.h> | 11 #import <Cocoa/Cocoa.h> |
12 | 12 |
13 // A custom view that draws the background gradient for an infobar. | 13 // A custom view that draws the background gradient for an infobar. |
14 @interface InfoBarGradientView : VerticalGradientView { | 14 @interface InfoBarGradientView : VerticalGradientView { |
15 @private | 15 @private |
16 NSPoint tipApex_; | 16 NSPoint tipApex_; |
17 } | 17 } |
18 | 18 |
19 // The point, in window coordinates, at which the infobar tip is the highest and | 19 // The point, in window coordinates, at which the infobar tip is the highest and |
20 // pointing at the omnibox decoration. | 20 // pointing at the omnibox decoration. |
21 @property(assign, nonatomic) NSPoint tipApex; | 21 @property(assign, nonatomic) NSPoint tipApex; |
22 | 22 |
23 // Sets the infobar type. This will change the view's gradient. | 23 // Sets the infobar type. This will change the view's gradient. |
24 - (void)setInfobarType:(InfoBarDelegate::Type)infobarType; | 24 - (void)setInfobarType:(InfoBarDelegate::Type)infobarType; |
25 | 25 |
26 @end | 26 @end |
27 | 27 |
28 #endif // CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_GRADIENT_VIEW_H_ | 28 #endif // CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_GRADIENT_VIEW_H_ |
OLD | NEW |