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

Unified Diff: chrome/browser/ui/cocoa/infobars/infobar_gradient_view.h

Issue 7461134: [Mac] Unspoofable infobars v3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/infobars/infobar_gradient_view.h
diff --git a/chrome/browser/ui/cocoa/infobars/infobar_gradient_view.h b/chrome/browser/ui/cocoa/infobars/infobar_gradient_view.h
index b0c6b6ecdf78673e6d0685f74770d944fa065f53..1c398a94d5bf850dd6a502beb2d514987d76a6af 100644
--- a/chrome/browser/ui/cocoa/infobars/infobar_gradient_view.h
+++ b/chrome/browser/ui/cocoa/infobars/infobar_gradient_view.h
@@ -12,7 +12,14 @@
#import <Cocoa/Cocoa.h>
// A custom view that draws the background gradient for an infobar.
-@interface InfoBarGradientView : VerticalGradientView
+@interface InfoBarGradientView : VerticalGradientView {
+ @private
+ NSPoint tipApex_;
+}
+
+// The point, in this view's coordinates, at which the infobar tip is the
+// highest and pointing at the omnibox decoration.
+@property(assign, nonatomic) NSPoint tipApex;
// Sets the infobar type. This will change the view's gradient.
- (void)setInfobarType:(InfoBarDelegate::Type)infobarType;

Powered by Google App Engine
This is Rietveld 408576698