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

Side by Side Diff: content/browser/tab_contents/tab_contents.cc

Issue 7537030: Make panel adjust bounds per preferred size change notification on Windows. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "content/browser/tab_contents/tab_contents.h" 5 #include "content/browser/tab_contents/tab_contents.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 1882 matching lines...) Expand 10 before | Expand all | Expand 10 after
1893 } 1893 }
1894 1894
1895 void TabContents::SwapInRenderViewHost(RenderViewHost* rvh) { 1895 void TabContents::SwapInRenderViewHost(RenderViewHost* rvh) {
1896 render_manager_.SwapInRenderViewHost(rvh); 1896 render_manager_.SwapInRenderViewHost(rvh);
1897 } 1897 }
1898 1898
1899 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { 1899 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) {
1900 RenderWidgetHostView* rwh_view = view()->CreateViewForWidget(rvh); 1900 RenderWidgetHostView* rwh_view = view()->CreateViewForWidget(rvh);
1901 rwh_view->SetSize(view()->GetContainerSize()); 1901 rwh_view->SetSize(view()->GetContainerSize());
1902 } 1902 }
1903
1904 void TabContents::UpdatePreferredSize(const gfx::Size& pref_size) {
1905 if (delegate_)
1906 delegate_->UpdatePreferredSize(pref_size);
1907 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698