summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/frame
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-03 03:06:37 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-03 03:06:37 +0000
commit1c41af415bd13bf25db073ee898eb416ead52ef4 (patch)
tree30ae00f0bc481cf88a1d27de5d21dbb493e0bbbc /chrome/browser/views/frame
parentc6fd2097f07574f616de929b75ae3bf31b0ca78b (diff)
downloadchromium_src-1c41af415bd13bf25db073ee898eb416ead52ef4.zip
chromium_src-1c41af415bd13bf25db073ee898eb416ead52ef4.tar.gz
chromium_src-1c41af415bd13bf25db073ee898eb416ead52ef4.tar.bz2
Tear out all the old infobar code.
http://crbug.com/4620 Review URL: http://codereview.chromium.org/13077 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6273 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/frame')
-rw-r--r--chrome/browser/views/frame/browser_view.cc23
1 files changed, 4 insertions, 19 deletions
diff --git a/chrome/browser/views/frame/browser_view.cc b/chrome/browser/views/frame/browser_view.cc
index 019fdc8..ccbb950 100644
--- a/chrome/browser/views/frame/browser_view.cc
+++ b/chrome/browser/views/frame/browser_view.cc
@@ -1091,21 +1091,10 @@ int BrowserView::LayoutBookmarkBar(int top) {
}
int BrowserView::LayoutInfoBar(int top) {
if (SupportsWindowFeature(FEATURE_INFOBAR)) {
- // Layout the new infobar.
+ // Layout the InfoBar container.
gfx::Size ps = infobar_container_->GetPreferredSize();
infobar_container_->SetBounds(0, top, width(), ps.height());
top += ps.height();
-
- if (active_info_bar_) {
- // Layout the old infobar.
- ps = active_info_bar_->GetPreferredSize();
- active_info_bar_->SetBounds(0, top, width(), ps.height());
- top += ps.height();
- if (SupportsWindowFeature(FEATURE_BOOKMARKBAR) && active_bookmark_bar_ &&
- !show_bookmark_bar_pref_.GetValue()) {
- top -= kSeparationLineHeight;
- }
- }
}
return top;
}
@@ -1147,13 +1136,9 @@ bool BrowserView::MaybeShowBookmarkBar(TabContents* contents) {
}
bool BrowserView::MaybeShowInfoBar(TabContents* contents) {
- views::View* new_info_bar = NULL;
- if (contents && contents->AsWebContents() &&
- contents->AsWebContents()->view()->IsInfoBarVisible())
- new_info_bar = contents->AsWebContents()->view()->GetInfoBarView();
- UpdateChildViewAndLayout(new_info_bar, &active_info_bar_);
-
- // TODO(beng): remove this function once the InfoBar rejiggering is complete.
+ // TODO(beng): Remove this function once the interface between
+ // InfoBarContainer, DownloadShelfView and TabContents and this
+ // view is sorted out.
return true;
}