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

Side by Side Diff: chrome/browser/ui/cocoa/infobars/infobar_gradient_view.h

Issue 240193003: Move Infobars core files to the Infobars component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nib name on mac Created 6 years, 8 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 | Annotate | Revision Log
OLDNEW
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"
9 #import "chrome/browser/ui/cocoa/vertical_gradient_view.h" 8 #import "chrome/browser/ui/cocoa/vertical_gradient_view.h"
9 #include "components/infobars/core/infobar_delegate.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 CGFloat arrowHeight_; 16 CGFloat arrowHeight_;
17 CGFloat arrowHalfWidth_; 17 CGFloat arrowHalfWidth_;
18 CGFloat arrowX_; 18 CGFloat arrowX_;
19 BOOL hasTip_; 19 BOOL hasTip_;
20 } 20 }
21 21
22 @property(assign, nonatomic) CGFloat arrowHeight; 22 @property(assign, nonatomic) CGFloat arrowHeight;
23 @property(assign, nonatomic) CGFloat arrowHalfWidth; 23 @property(assign, nonatomic) CGFloat arrowHalfWidth;
24 @property(assign, nonatomic) CGFloat arrowX; 24 @property(assign, nonatomic) CGFloat arrowX;
25 @property(assign, nonatomic) BOOL hasTip; 25 @property(assign, nonatomic) BOOL hasTip;
26 26
27 // Sets the infobar type. This will change the view's gradient. 27 // Sets the infobar type. This will change the view's gradient.
28 - (void)setInfobarType:(InfoBarDelegate::Type)infobarType; 28 - (void)setInfobarType:(infobars::InfoBarDelegate::Type)infobarType;
29 29
30 @end 30 @end
31 31
32 #endif // CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_GRADIENT_VIEW_H_ 32 #endif // CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_GRADIENT_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/infobars/infobar_controller.mm ('k') | chrome/browser/ui/cocoa/infobars/infobar_gradient_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698