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

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

Issue 9517010: Change panels to be able to turn off autoresize. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Redisable test. Created 8 years, 9 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 940 matching lines...) Expand 10 before | Expand all | Expand 10 after
951 if (delegate_) 951 if (delegate_)
952 delegate_->LostMouseLock(); 952 delegate_->LostMouseLock();
953 } 953 }
954 954
955 void TabContents::UpdatePreferredSize(const gfx::Size& pref_size) { 955 void TabContents::UpdatePreferredSize(const gfx::Size& pref_size) {
956 preferred_size_ = pref_size; 956 preferred_size_ = pref_size;
957 if (delegate_) 957 if (delegate_)
958 delegate_->UpdatePreferredSize(this, pref_size); 958 delegate_->UpdatePreferredSize(this, pref_size);
959 } 959 }
960 960
961 void TabContents::ResizeDueToAutoResize(const gfx::Size& new_size) {
962 if (delegate_)
963 delegate_->ResizeDueToAutoResize(this, new_size);
964 }
965
961 void TabContents::WebUISend(RenderViewHost* render_view_host, 966 void TabContents::WebUISend(RenderViewHost* render_view_host,
962 const GURL& source_url, 967 const GURL& source_url,
963 const std::string& name, 968 const std::string& name,
964 const base::ListValue& args) { 969 const base::ListValue& args) {
965 if (delegate_) 970 if (delegate_)
966 delegate_->WebUISend(this, source_url, name, args); 971 delegate_->WebUISend(this, source_url, name, args);
967 } 972 }
968 973
969 WebContents* TabContents::OpenURL(const OpenURLParams& params) { 974 WebContents* TabContents::OpenURL(const OpenURLParams& params) {
970 if (!delegate_) 975 if (!delegate_)
(...skipping 1500 matching lines...) Expand 10 before | Expand all | Expand 10 after
2471 save_info, 2476 save_info,
2472 this); 2477 this);
2473 } 2478 }
2474 2479
2475 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { 2480 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) {
2476 RenderWidgetHostView* rwh_view = GetView()->CreateViewForWidget(rvh); 2481 RenderWidgetHostView* rwh_view = GetView()->CreateViewForWidget(rvh);
2477 // Can be NULL during tests. 2482 // Can be NULL during tests.
2478 if (rwh_view) 2483 if (rwh_view)
2479 rwh_view->SetSize(GetView()->GetContainerSize()); 2484 rwh_view->SetSize(GetView()->GetContainerSize());
2480 } 2485 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698