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

Side by Side Diff: content/browser/web_contents/web_contents_impl.cc

Issue 10091006: TabContents -> WebContentsImpl, part 15. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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/web_contents/web_contents_impl.h" 5 #include "content/browser/web_contents/web_contents_impl.h"
6 6
7 #include <utility> 7 #include <utility>
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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 #endif 268 #endif
269 is_showing_before_unload_dialog_(false), 269 is_showing_before_unload_dialog_(false),
270 opener_web_ui_type_(WebUI::kNoWebUI), 270 opener_web_ui_type_(WebUI::kNoWebUI),
271 closed_by_user_gesture_(false), 271 closed_by_user_gesture_(false),
272 minimum_zoom_percent_( 272 minimum_zoom_percent_(
273 static_cast<int>(content::kMinimumZoomFactor * 100)), 273 static_cast<int>(content::kMinimumZoomFactor * 100)),
274 maximum_zoom_percent_( 274 maximum_zoom_percent_(
275 static_cast<int>(content::kMaximumZoomFactor * 100)), 275 static_cast<int>(content::kMaximumZoomFactor * 100)),
276 temporary_zoom_settings_(false), 276 temporary_zoom_settings_(false),
277 content_restrictions_(0), 277 content_restrictions_(0),
278 view_type_(content::VIEW_TYPE_TAB_CONTENTS), 278 view_type_(content::VIEW_TYPE_WEB_CONTENTS),
279 has_opener_(false), 279 has_opener_(false),
280 color_chooser_(NULL) { 280 color_chooser_(NULL) {
281 render_manager_.Init(browser_context, site_instance, routing_id); 281 render_manager_.Init(browser_context, site_instance, routing_id);
282 282
283 view_.reset(content::GetContentClient()->browser()-> 283 view_.reset(content::GetContentClient()->browser()->
284 OverrideCreateWebContentsView(this)); 284 OverrideCreateWebContentsView(this));
285 if (!view_.get()) { 285 if (!view_.get()) {
286 content::WebContentsViewDelegate* delegate = 286 content::WebContentsViewDelegate* delegate =
287 content::GetContentClient()->browser()->GetWebContentsViewDelegate( 287 content::GetContentClient()->browser()->GetWebContentsViewDelegate(
288 this); 288 this);
(...skipping 2334 matching lines...) Expand 10 before | Expand all | Expand 10 after
2623 void WebContentsImpl::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { 2623 void WebContentsImpl::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) {
2624 RenderWidgetHostView* rwh_view = GetView()->CreateViewForWidget(rvh); 2624 RenderWidgetHostView* rwh_view = GetView()->CreateViewForWidget(rvh);
2625 // Can be NULL during tests. 2625 // Can be NULL during tests.
2626 if (rwh_view) 2626 if (rwh_view)
2627 rwh_view->SetSize(GetView()->GetContainerSize()); 2627 rwh_view->SetSize(GetView()->GetContainerSize());
2628 } 2628 }
2629 2629
2630 RenderViewHostImpl* WebContentsImpl::GetRenderViewHostImpl() { 2630 RenderViewHostImpl* WebContentsImpl::GetRenderViewHostImpl() {
2631 return static_cast<RenderViewHostImpl*>(GetRenderViewHost()); 2631 return static_cast<RenderViewHostImpl*>(GetRenderViewHost());
2632 } 2632 }
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/public/browser/interstitial_page.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698