| 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_INFO_BUBBLE_VIEW_H_ |
| 6 #define CHROME_BROWSER_COCOA_INFO_BUBBLE_VIEW_H_ |
| 7 |
| 5 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 6 | 9 |
| 10 extern const CGFloat kBubbleArrowHeight; |
| 11 extern const CGFloat kBubbleArrowWidth; |
| 12 extern const CGFloat kBubbleArrowXOffset; |
| 13 extern const CGFloat kBubbleCornerRadius; |
| 14 |
| 7 enum BubbleArrowLocation { | 15 enum BubbleArrowLocation { |
| 8 kTopLeft, | 16 kTopLeft, |
| 9 kTopRight, | 17 kTopRight, |
| 10 }; | 18 }; |
| 11 | 19 |
| 20 enum InfoBubbleType { |
| 21 kGradientInfoBubble, |
| 22 kWhiteInfoBubble |
| 23 }; |
| 24 |
| 12 // Content view for a bubble with an arrow showing arbitrary content. | 25 // Content view for a bubble with an arrow showing arbitrary content. |
| 13 // This is where nonrectangular drawing happens. | 26 // This is where nonrectangular drawing happens. |
| 14 @interface InfoBubbleView : NSView { | 27 @interface InfoBubbleView : NSView { |
| 15 @private | 28 @private |
| 16 BubbleArrowLocation arrowLocation_; | 29 BubbleArrowLocation arrowLocation_; |
| 30 |
| 31 // The type simply is used to determine what sort of background it should |
| 32 // draw. |
| 33 InfoBubbleType bubbleType_; |
| 17 } | 34 } |
| 18 | 35 |
| 19 @property (assign, nonatomic) BubbleArrowLocation arrowLocation; | 36 @property (assign, nonatomic) BubbleArrowLocation arrowLocation; |
| 37 @property (assign, nonatomic) InfoBubbleType bubbleType; |
| 20 | 38 |
| 21 @end | 39 @end |
| 40 |
| 41 #endif // CHROME_BROWSER_COCOA_INFO_BUBBLE_VIEW_H_ |
| OLD | NEW |