summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/tabs
diff options
context:
space:
mode:
authorscshunt@google.com <scshunt@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-25 18:26:33 +0000
committerscshunt@google.com <scshunt@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-25 18:26:33 +0000
commit3e324142a9d9a10f3c4b7ceceed97c1b5006f61a (patch)
treecbc81c16de44fa5f9b2ba2ce432f421953b2772d /chrome/browser/ui/tabs
parent1df8df8f6b7c8b28fd564644362b8a45fd625cb0 (diff)
downloadchromium_src-3e324142a9d9a10f3c4b7ceceed97c1b5006f61a.zip
chromium_src-3e324142a9d9a10f3c4b7ceceed97c1b5006f61a.tar.gz
chromium_src-3e324142a9d9a10f3c4b7ceceed97c1b5006f61a.tar.bz2
All visibility change functions (WasRestored/ShowContents/DidBecomeSelected and WasHidden/HideConents) are renamed to WasRestored and WasHidden for consistency. In particular, WebContents had all three of the first variety; this change merges them together.
BUG=133878 TEST=manual Review URL: https://chromiumcodereview.appspot.com/10634011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@143959 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/tabs')
-rw-r--r--chrome/browser/ui/tabs/tab_strip_model.cc2
-rw-r--r--chrome/browser/ui/tabs/tab_strip_model_unittest.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/ui/tabs/tab_strip_model.cc b/chrome/browser/ui/tabs/tab_strip_model.cc
index a4c434a..4db7864 100644
--- a/chrome/browser/ui/tabs/tab_strip_model.cc
+++ b/chrome/browser/ui/tabs/tab_strip_model.cc
@@ -728,7 +728,7 @@ void TabStripModel::AddTabContents(TabContents* contents,
// We need to hide the contents or else we get and execute paints for
// background tabs. With enough background tabs they will steal the
// backing store of the visible tab causing flashing. See bug 20831.
- contents->web_contents()->HideContents();
+ contents->web_contents()->WasHidden();
}
}
}
diff --git a/chrome/browser/ui/tabs/tab_strip_model_unittest.cc b/chrome/browser/ui/tabs/tab_strip_model_unittest.cc
index 4ab5b5e..df9d116 100644
--- a/chrome/browser/ui/tabs/tab_strip_model_unittest.cc
+++ b/chrome/browser/ui/tabs/tab_strip_model_unittest.cc
@@ -152,7 +152,7 @@ class TabStripModelTest : public ChromeRenderViewHostTestHarness {
}
void SwitchTabTo(WebContents* contents) {
- // contents()->DidBecomeSelected();
+ // contents()->WasRestored();
}
// Sets the id of the specified contents.