BookmarkManager: Fix 'new folder text field size changes on clicking it' issue.
[chromium-blink-merge.git] / chrome / browser / ui / cocoa / infobars / infobar_gradient_view.h
blob4621f4f18dcde44de6c4511751e89c321c751d8b
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_GRADIENT_VIEW_H_
6 #define CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_GRADIENT_VIEW_H_
8 #import "chrome/browser/ui/cocoa/vertical_gradient_view.h"
9 #include "components/infobars/core/infobar_delegate.h"
11 #import <Cocoa/Cocoa.h>
13 // A custom view that draws the background gradient for an infobar.
14 @interface InfoBarGradientView : VerticalGradientView {
15 @private
16 CGFloat arrowHeight_;
17 CGFloat arrowHalfWidth_;
18 CGFloat arrowX_;
19 BOOL hasTip_;
22 @property(assign, nonatomic) CGFloat arrowHeight;
23 @property(assign, nonatomic) CGFloat arrowHalfWidth;
24 @property(assign, nonatomic) CGFloat arrowX;
25 @property(assign, nonatomic) BOOL hasTip;
27 // Sets the infobar type. This will change the view's gradient.
28 - (void)setInfobarType:(infobars::InfoBarDelegate::Type)infobarType;
30 @end
32 #endif // CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_GRADIENT_VIEW_H_