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

Unified Diff: chrome/browser/ui/views/frame/top_container_view.cc

Issue 160093006: Fix find bar positioning for hosted app windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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
« no previous file with comments | « chrome/browser/ui/views/frame/top_container_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/top_container_view.cc
diff --git a/chrome/browser/ui/views/frame/top_container_view.cc b/chrome/browser/ui/views/frame/top_container_view.cc
index 4c95ebd0b3d823dc4dabb467ae017ea0147fba9b..1fa6e9aeceb34f436b0546b5f114ba341e5dab79 100644
--- a/chrome/browser/ui/views/frame/top_container_view.cc
+++ b/chrome/browser/ui/views/frame/top_container_view.cc
@@ -15,28 +15,6 @@ TopContainerView::TopContainerView(BrowserView* browser_view)
TopContainerView::~TopContainerView() {
}
-gfx::Size TopContainerView::GetPreferredSize() {
- // The view wants to be as wide as its parent and tall enough to fully show
- // all its children. In particular, the bottom of the bookmark bar can be
- // be above the bottom of the toolbar while the bookmark bar is animating.
- int height = 0;
- for (int i = 0; i < child_count(); ++i) {
- views::View* child = child_at(i);
- if (!child->visible())
- continue;
- int child_bottom = child->bounds().bottom();
- if (child_bottom > height)
- height = child_bottom;
- }
- if (browser_view_->immersive_mode_controller()->IsRevealed()) {
- // In immersive fullscreen, the TopContainerView paints the window header
- // (themes, window title, window controls). The TopContainerView must still
- // paint these even if it does not have any visible children.
- height = std::max(height, browser_view_->frame()->GetTopInset());
- }
- return gfx::Size(browser_view_->width(), height);
-}
-
const char* TopContainerView::GetClassName() const {
return "TopContainerView";
}
« no previous file with comments | « chrome/browser/ui/views/frame/top_container_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698