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

Unified Diff: chrome/browser/ui/views/tab_contents/tab_contents_container.cc

Issue 9265018: Change grow box computation back to a method on BrowserWindow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 8 years, 11 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/ui/views/tab_contents/tab_contents_container.cc
diff --git a/chrome/browser/ui/views/tab_contents/tab_contents_container.cc b/chrome/browser/ui/views/tab_contents/tab_contents_container.cc
index 2e700524d2e342c9425ca0629926160c4c981888..b1d30cb3bdfdc6980aabd9a7e286c28b9b242a2d 100644
--- a/chrome/browser/ui/views/tab_contents/tab_contents_container.cc
+++ b/chrome/browser/ui/views/tab_contents/tab_contents_container.cc
@@ -44,7 +44,6 @@ void TabContentsContainer::ChangeWebContents(WebContents* contents) {
// When detaching the last tab of the browser ChangeWebContents is invoked
// with NULL. Don't attempt to do anything in that case.
if (web_contents_) {
- RenderWidgetHostViewChanged(web_contents_->GetRenderWidgetHostView());
native_container_->AttachContents(web_contents_);
AddObservers();
}
@@ -62,15 +61,6 @@ void TabContentsContainer::SetFastResize(bool fast_resize) {
native_container_->SetFastResize(fast_resize);
}
-void TabContentsContainer::SetReservedContentsRect(
- const gfx::Rect& reserved_rect) {
- cached_reserved_rect_ = reserved_rect;
- if (web_contents_ && web_contents_->GetRenderWidgetHostView()) {
- web_contents_->GetRenderWidgetHostView()->set_reserved_contents_rect(
- reserved_rect);
- }
-}
-
////////////////////////////////////////////////////////////////////////////////
// TabContentsContainer, content::NotificationObserver implementation:
@@ -187,8 +177,6 @@ void TabContentsContainer::RemoveObservers() {
void TabContentsContainer::RenderViewHostChanged(RenderViewHost* old_host,
RenderViewHost* new_host) {
- if (new_host)
- RenderWidgetHostViewChanged(new_host->view());
native_container_->RenderViewHostChanged(old_host, new_host);
}
@@ -198,9 +186,3 @@ void TabContentsContainer::TabContentsDestroyed(WebContents* contents) {
DCHECK(contents == web_contents_);
ChangeWebContents(NULL);
}
-
-void TabContentsContainer::RenderWidgetHostViewChanged(
- RenderWidgetHostView* new_view) {
- if (new_view)
- new_view->set_reserved_contents_rect(cached_reserved_rect_);
-}
« no previous file with comments | « chrome/browser/ui/views/tab_contents/tab_contents_container.h ('k') | chrome/test/base/test_browser_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698