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

Unified Diff: chrome/browser/ui/browser.cc

Issue 10537062: TabContentsWrapper -> TabContents, part 13. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fiz Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/net/gaia/gaia_oauth_fetcher.cc ('k') | chrome/browser/ui/cocoa/tabs/tab_strip_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index d0422d8185a16d2fc779309d74c415c1f8b021ea..548e7ecf9468e5040efc2a9f7a01daecc91c6d85 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -3131,7 +3131,7 @@ WebContents* Browser::OpenURLFromTab(WebContents* source,
const OpenURLParams& params) {
browser::NavigateParams nav_params(this, params.url, params.transition);
nav_params.source_contents = GetTabContentsAt(
- tab_strip_model_->GetWrapperIndex(source));
+ tab_strip_model_->GetIndexOfWebContents(source));
nav_params.referrer = params.referrer;
nav_params.disposition = params.disposition;
nav_params.tabstrip_add_types = TabStripModel::ADD_NONE;
@@ -3212,7 +3212,7 @@ void Browser::AddNewContents(WebContents* source,
browser::NavigateParams params(this, new_tab_contents);
params.source_contents = source ?
- GetTabContentsAt(tab_strip_model_->GetWrapperIndex(source)): NULL;
+ GetTabContentsAt(tab_strip_model_->GetIndexOfWebContents(source)): NULL;
params.disposition = disposition;
params.window_bounds = initial_pos;
params.window_action = browser::NavigateParams::SHOW_WINDOW;
@@ -3221,7 +3221,7 @@ void Browser::AddNewContents(WebContents* source,
}
void Browser::ActivateContents(WebContents* contents) {
- ActivateTabAt(tab_strip_model_->GetWrapperIndex(contents), false);
+ ActivateTabAt(tab_strip_model_->GetIndexOfWebContents(contents), false);
window_->Activate();
}
@@ -3268,7 +3268,7 @@ void Browser::CloseContents(WebContents* source) {
return;
}
- int index = tab_strip_model_->GetWrapperIndex(source);
+ int index = tab_strip_model_->GetIndexOfWebContents(source);
if (index == TabStripModel::kNoTab) {
NOTREACHED() << "CloseContents called for tab not in our strip";
return;
@@ -3286,7 +3286,7 @@ void Browser::MoveContents(WebContents* source, const gfx::Rect& pos) {
}
void Browser::DetachContents(WebContents* source) {
- int index = tab_strip_model_->GetWrapperIndex(source);
+ int index = tab_strip_model_->GetIndexOfWebContents(source);
if (index >= 0)
tab_strip_model_->DetachTabContentsAt(index);
}
@@ -3460,7 +3460,7 @@ void Browser::OnStartDownload(WebContents* source,
void Browser::ViewSourceForTab(WebContents* source, const GURL& page_url) {
DCHECK(source);
TabContents* tab_contents = GetTabContentsAt(
- tab_strip_model_->GetWrapperIndex(source));
+ tab_strip_model_->GetIndexOfWebContents(source));
ViewSource(tab_contents);
}
@@ -3469,7 +3469,7 @@ void Browser::ViewSourceForFrame(WebContents* source,
const std::string& frame_content_state) {
DCHECK(source);
TabContents* tab_contents = GetTabContentsAt(
- tab_strip_model_->GetWrapperIndex(source));
+ tab_strip_model_->GetIndexOfWebContents(source));
ViewSource(tab_contents, frame_url, frame_content_state);
}
@@ -4549,7 +4549,7 @@ void Browser::ProcessPendingUIUpdates() {
if (flags &
(content::INVALIDATE_TYPE_TAB | content::INVALIDATE_TYPE_TITLE)) {
tab_strip_model_->UpdateTabContentsStateAt(
- tab_strip_model_->GetWrapperIndex(contents),
+ tab_strip_model_->GetIndexOfWebContents(contents),
TabStripModelObserver::ALL);
}
« no previous file with comments | « chrome/browser/net/gaia/gaia_oauth_fetcher.cc ('k') | chrome/browser/ui/cocoa/tabs/tab_strip_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698