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

Side by Side Diff: chrome/browser/views/frame/browser_view.cc

Issue 164375: Merge 22610 - Ensure that status bubble does not obscure download shelf.... (Closed) Base URL: svn://chrome-svn/chrome/branches/195/src/
Patch Set: Created 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/views/status_bubble_views.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Modified: svn:mergeinfo
Merged /trunk/src/chrome/browser/views/frame/browser_view.cc:r22610
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/views/frame/browser_view.h" 5 #include "chrome/browser/views/frame/browser_view.h"
6 6
7 #if defined(OS_LINUX) 7 #if defined(OS_LINUX)
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 #endif 9 #endif
10 10
(...skipping 854 matching lines...) Expand 10 before | Expand all | Expand 10 after
865 void BrowserView::ShowBookmarkBubble(const GURL& url, bool already_bookmarked) { 865 void BrowserView::ShowBookmarkBubble(const GURL& url, bool already_bookmarked) {
866 toolbar_->star_button()->ShowStarBubble(url, !already_bookmarked); 866 toolbar_->star_button()->ShowStarBubble(url, !already_bookmarked);
867 } 867 }
868 868
869 void BrowserView::SetDownloadShelfVisible(bool visible) { 869 void BrowserView::SetDownloadShelfVisible(bool visible) {
870 // This can be called from the superclass destructor, when it destroys our 870 // This can be called from the superclass destructor, when it destroys our
871 // child views. At that point, browser_ is already gone. 871 // child views. At that point, browser_ is already gone.
872 if (browser_ == NULL) 872 if (browser_ == NULL)
873 return; 873 return;
874 874
875 if (IsDownloadShelfVisible() != visible) { 875 if (visible && IsDownloadShelfVisible() != visible)
876 if (visible) { 876 // Invoke GetDownloadShelf to force the shelf to be created.
877 // Invoke GetDownloadShelf to force the shelf to be created. 877 GetDownloadShelf();
878 GetDownloadShelf();
879 }
880 878
881 if (browser_ != NULL) 879 if (browser_ != NULL)
882 browser_->UpdateDownloadShelfVisibility(visible); 880 browser_->UpdateDownloadShelfVisibility(visible);
883 }
884 881
885 // SetDownloadShelfVisible can force-close the shelf, so make sure we lay out 882 // SetDownloadShelfVisible can force-close the shelf, so make sure we lay out
886 // everything correctly, as if the animation had finished. This doesn't 883 // everything correctly, as if the animation had finished. This doesn't
887 // matter for showing the shelf, as the show animation will do it. 884 // matter for showing the shelf, as the show animation will do it.
888 SelectedTabToolbarSizeChanged(false); 885 SelectedTabToolbarSizeChanged(false);
889 } 886 }
890 887
891 bool BrowserView::IsDownloadShelfVisible() const { 888 bool BrowserView::IsDownloadShelfVisible() const {
892 return download_shelf_.get() && download_shelf_->IsShowing(); 889 return download_shelf_.get() && download_shelf_->IsShowing();
893 } 890 }
(...skipping 1014 matching lines...) Expand 10 before | Expand all | Expand 10 after
1908 1905
1909 // static 1906 // static
1910 FindBar* BrowserWindow::CreateFindBar(Browser* browser) { 1907 FindBar* BrowserWindow::CreateFindBar(Browser* browser) {
1911 return browser::CreateFindBar(static_cast<BrowserView*>(browser->window())); 1908 return browser::CreateFindBar(static_cast<BrowserView*>(browser->window()));
1912 } 1909 }
1913 1910
1914 // static 1911 // static
1915 void BrowserList::AllBrowsersClosed() { 1912 void BrowserList::AllBrowsersClosed() {
1916 views::Window::CloseAllSecondaryWindows(); 1913 views::Window::CloseAllSecondaryWindows();
1917 } 1914 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/views/status_bubble_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698