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

Unified Diff: chrome/browser/extensions/extension_infobar_delegate.h

Issue 7635019: Set Extension Infobars to have a fixed height determined by the developer (clamped to sane min an... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' 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/extensions/extension_infobar_delegate.h
===================================================================
--- chrome/browser/extensions/extension_infobar_delegate.h (revision 96544)
+++ chrome/browser/extensions/extension_infobar_delegate.h (working copy)
@@ -33,10 +33,12 @@
ExtensionInfoBarDelegate(Browser* browser,
TabContents* contents,
const Extension* extension,
- const GURL& url);
+ const GURL& url,
+ int height);
const Extension* extension() { return extension_; }
ExtensionHost* extension_host() { return extension_host_.get(); }
+ int height() { return height_; }
void set_observer(DelegateObserver* observer) { observer_ = observer; }
@@ -69,6 +71,9 @@
const Extension* extension_;
NotificationRegistrar registrar_;
+ // The requested height of the infobar (in pixels).
+ int height_;
+
// Whether we are currently animating to close. This is used to ignore
// ExtensionView::PreferredSizeChanged notifications.
bool closing_;

Powered by Google App Engine
This is Rietveld 408576698