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

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

Issue 9289045: Add option --dump-render-tree to content_shell to dump the render tree as text. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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 1344 matching lines...) Expand 10 before | Expand all | Expand 10 after
1355 FOR_EACH_OBSERVER(WebContentsObserver, observers_, 1355 FOR_EACH_OBSERVER(WebContentsObserver, observers_,
1356 DocumentLoadedInFrame(frame_id)); 1356 DocumentLoadedInFrame(frame_id));
1357 } 1357 }
1358 1358
1359 void TabContents::OnDidFinishLoad( 1359 void TabContents::OnDidFinishLoad(
1360 int64 frame_id, 1360 int64 frame_id,
1361 const GURL& validated_url, 1361 const GURL& validated_url,
1362 bool is_main_frame) { 1362 bool is_main_frame) {
1363 FOR_EACH_OBSERVER(WebContentsObserver, observers_, 1363 FOR_EACH_OBSERVER(WebContentsObserver, observers_,
1364 DidFinishLoad(frame_id, validated_url, is_main_frame)); 1364 DidFinishLoad(frame_id, validated_url, is_main_frame));
1365 if (is_main_frame)
1366 delegate_->DidFinishLoad(this);
1365 } 1367 }
1366 1368
1367 void TabContents::OnDidFailLoadWithError(int64 frame_id, 1369 void TabContents::OnDidFailLoadWithError(int64 frame_id,
1368 const GURL& validated_url, 1370 const GURL& validated_url,
1369 bool is_main_frame, 1371 bool is_main_frame,
1370 int error_code, 1372 int error_code,
1371 const string16& error_description) { 1373 const string16& error_description) {
1372 FOR_EACH_OBSERVER(WebContentsObserver, observers_, 1374 FOR_EACH_OBSERVER(WebContentsObserver, observers_,
1373 DidFailLoad(frame_id, validated_url, is_main_frame, 1375 DidFailLoad(frame_id, validated_url, is_main_frame,
1374 error_code, error_description)); 1376 error_code, error_description));
(...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after
2278 encoding_ = content::GetContentClient()->browser()-> 2280 encoding_ = content::GetContentClient()->browser()->
2279 GetCanonicalEncodingNameByAliasName(encoding); 2281 GetCanonicalEncodingNameByAliasName(encoding);
2280 } 2282 }
2281 2283
2282 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { 2284 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) {
2283 RenderWidgetHostView* rwh_view = GetView()->CreateViewForWidget(rvh); 2285 RenderWidgetHostView* rwh_view = GetView()->CreateViewForWidget(rvh);
2284 // Can be NULL during tests. 2286 // Can be NULL during tests.
2285 if (rwh_view) 2287 if (rwh_view)
2286 rwh_view->SetSize(GetView()->GetContainerSize()); 2288 rwh_view->SetSize(GetView()->GetContainerSize());
2287 } 2289 }
OLDNEW
« no previous file with comments | « no previous file | content/content_shell.gypi » ('j') | content/public/browser/web_contents_delegate.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698