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

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

Issue 9015022: Replace most of Browser::GetSelectedTabContents calls into Browser::GetSelectedWebContents. I've ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 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 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 1542 matching lines...) Expand 10 before | Expand all | Expand 10 after
1553 1553
1554 return true; 1554 return true;
1555 } 1555 }
1556 1556
1557 void TabContents::NotifySwapped() { 1557 void TabContents::NotifySwapped() {
1558 // After sending out a swap notification, we need to send a disconnect 1558 // After sending out a swap notification, we need to send a disconnect
1559 // notification so that clients that pick up a pointer to |this| can NULL the 1559 // notification so that clients that pick up a pointer to |this| can NULL the
1560 // pointer. See Bug 1230284. 1560 // pointer. See Bug 1230284.
1561 notify_disconnection_ = true; 1561 notify_disconnection_ = true;
1562 content::NotificationService::current()->Notify( 1562 content::NotificationService::current()->Notify(
1563 content::NOTIFICATION_TAB_CONTENTS_SWAPPED, 1563 content::NOTIFICATION_WEB_CONTENTS_SWAPPED,
1564 content::Source<TabContents>(this), 1564 content::Source<WebContents>(this),
1565 content::NotificationService::NoDetails()); 1565 content::NotificationService::NoDetails());
1566 } 1566 }
1567 1567
1568 void TabContents::NotifyConnected() { 1568 void TabContents::NotifyConnected() {
1569 notify_disconnection_ = true; 1569 notify_disconnection_ = true;
1570 content::NotificationService::current()->Notify( 1570 content::NotificationService::current()->Notify(
1571 content::NOTIFICATION_TAB_CONTENTS_CONNECTED, 1571 content::NOTIFICATION_TAB_CONTENTS_CONNECTED,
1572 content::Source<TabContents>(this), 1572 content::Source<TabContents>(this),
1573 content::NotificationService::NoDetails()); 1573 content::NotificationService::NoDetails());
1574 } 1574 }
(...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after
2225 encoding_ = content::GetContentClient()->browser()-> 2225 encoding_ = content::GetContentClient()->browser()->
2226 GetCanonicalEncodingNameByAliasName(encoding); 2226 GetCanonicalEncodingNameByAliasName(encoding);
2227 } 2227 }
2228 2228
2229 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { 2229 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) {
2230 RenderWidgetHostView* rwh_view = GetView()->CreateViewForWidget(rvh); 2230 RenderWidgetHostView* rwh_view = GetView()->CreateViewForWidget(rvh);
2231 // Can be NULL during tests. 2231 // Can be NULL during tests.
2232 if (rwh_view) 2232 if (rwh_view)
2233 rwh_view->SetSize(GetView()->GetContainerSize()); 2233 rwh_view->SetSize(GetView()->GetContainerSize());
2234 } 2234 }
OLDNEW
« no previous file with comments | « content/browser/speech/speech_input_browsertest.cc ('k') | content/browser/webkit_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698