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

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

Issue 6284003: Modify a method that was added mid-refactoring so that it follows the new structure. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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_native.cc
diff --git a/chrome/browser/ui/views/tab_contents/tab_contents_container_native.cc b/chrome/browser/ui/views/tab_contents/tab_contents_container_native.cc
index fa75886c78851c0d12562d49e513c1942ce286cf..5c62682f3d5d670d5d0dd0314c2631aea18cc95c 100644
--- a/chrome/browser/ui/views/tab_contents/tab_contents_container_native.cc
+++ b/chrome/browser/ui/views/tab_contents/tab_contents_container_native.cc
@@ -26,6 +26,15 @@ TabContentsContainer::TabContentsContainer()
SetID(VIEW_ID_TAB_CONTAINER);
}
+void TabContentsContainer::SetReservedContentsRect(
+ const gfx::Rect& reserved_rect) {
+ cached_reserved_rect_ = reserved_rect;
+ if (tab_contents_ && tab_contents_->GetRenderWidgetHostView()) {
+ tab_contents_->GetRenderWidgetHostView()->set_reserved_contents_rect(
+ reserved_rect);
+ }
+}
+
void TabContentsContainer::ChangeTabContents(TabContents* contents) {
if (tab_contents_) {
native_container_->DetachContents(tab_contents_);

Powered by Google App Engine
This is Rietveld 408576698