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

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

Issue 273223002: views: Make view::Views::GetPreferredSize() const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to ToT Created 6 years, 7 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
diff --git a/chrome/browser/extensions/extension_infobar_delegate.h b/chrome/browser/extensions/extension_infobar_delegate.h
index ec699d9c2a08fb59525984d0657e469890f77ce1..b3e2942f9d981a4ea76c925c748b8b6856554868 100644
--- a/chrome/browser/extensions/extension_infobar_delegate.h
+++ b/chrome/browser/extensions/extension_infobar_delegate.h
@@ -45,6 +45,10 @@ class ExtensionInfoBarDelegate : public infobars::InfoBarDelegate,
extensions::ExtensionViewHost* extension_view_host() {
return extension_view_host_.get();
}
+ const extensions::ExtensionViewHost* extension_view_host() const {
+ return extension_view_host_.get();
+ }
+
int height() { return height_; }
bool closing() const { return closing_; }
@@ -69,6 +73,8 @@ class ExtensionInfoBarDelegate : public infobars::InfoBarDelegate,
virtual void InfoBarDismissed() OVERRIDE;
virtual Type GetInfoBarType() const OVERRIDE;
virtual ExtensionInfoBarDelegate* AsExtensionInfoBarDelegate() OVERRIDE;
+ virtual const ExtensionInfoBarDelegate*
+ AsExtensionInfoBarDelegate() const OVERRIDE;
// content::NotificationObserver.
virtual void Observe(int type,

Powered by Google App Engine
This is Rietveld 408576698