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

Unified Diff: chrome/browser/ui/cocoa/infobars/infobar_container_controller.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_container_controller.h
diff --git a/chrome/browser/ui/cocoa/infobars/infobar_container_controller.h b/chrome/browser/ui/cocoa/infobars/infobar_container_controller.h
index 9a011fcd88c57e4d33c314924d0616c120508d5f..ed77111d39b68ebfc48c984112d55a77df5a1e92 100644
--- a/chrome/browser/ui/cocoa/infobars/infobar_container_controller.h
+++ b/chrome/browser/ui/cocoa/infobars/infobar_container_controller.h
@@ -13,6 +13,7 @@
#import "chrome/browser/ui/cocoa/view_resizer.h"
#include "content/common/notification_registrar.h"
+@class BrowserWindowController;
@class InfoBarController;
class InfoBar;
class InfoBarDelegate;
@@ -25,14 +26,18 @@ class TabStripModel;
@protocol InfoBarContainer
- (void)willRemoveController:(InfoBarController*)controller;
- (void)removeController:(InfoBarController*)controller;
+- (BrowserWindowController*)browserWindowController;
@end
namespace infobars {
-// How tall the tip is on a normal infobar.
+// The height of an infobar without the tip.
const CGFloat kBaseHeight = 36.0;
+// The height of the infobar tip.
+const CGFloat kTipHeight = 12.0;
+
}; // namespace infobars
@@ -95,7 +100,7 @@ const CGFloat kBaseHeight = 36.0;
// Returns the amount of additional height the container view needs to draw the
// anti-spoofing tip. This will return 0 if |-infobarCount| is 0. This is the
// total amount of overlap for all infobars.
-- (CGFloat)antiSpoofHeight;
+- (CGFloat)overlappingTipHeight;
@end

Powered by Google App Engine
This is Rietveld 408576698