summaryrefslogtreecommitdiffstats
path: root/chrome/browser/debugger/devtools_window.cc
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-07 23:18:31 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-07 23:18:31 +0000
commit862bb92e3ff4ef3661e79536e14771236eda8fe8 (patch)
tree93cae5bb36b2fe3e3b412466400920746df8b6e8 /chrome/browser/debugger/devtools_window.cc
parentdfe376fc61d9dfd739274c6b502581f87e5fa7e3 (diff)
downloadchromium_src-862bb92e3ff4ef3661e79536e14771236eda8fe8.zip
chromium_src-862bb92e3ff4ef3661e79536e14771236eda8fe8.tar.gz
chromium_src-862bb92e3ff4ef3661e79536e14771236eda8fe8.tar.bz2
TabContentsWrapper -> TabContents, part 10.
Debugger. BUG=131026 TEST=no change Review URL: https://chromiumcodereview.appspot.com/10533051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141110 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/debugger/devtools_window.cc')
-rw-r--r--chrome/browser/debugger/devtools_window.cc25
1 files changed, 12 insertions, 13 deletions
diff --git a/chrome/browser/debugger/devtools_window.cc b/chrome/browser/debugger/devtools_window.cc
index 119ce12..1f36652 100644
--- a/chrome/browser/debugger/devtools_window.cc
+++ b/chrome/browser/debugger/devtools_window.cc
@@ -23,7 +23,7 @@
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_list.h"
#include "chrome/browser/ui/browser_window.h"
-#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
+#include "chrome/browser/ui/tab_contents/tab_contents.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/chrome_switches.h"
@@ -81,8 +81,7 @@ void DevToolsWindow::RegisterUserPrefs(PrefService* prefs) {
}
// static
-TabContentsWrapper* DevToolsWindow::GetDevToolsContents(
- WebContents* inspected_tab) {
+TabContents* DevToolsWindow::GetDevToolsContents(WebContents* inspected_tab) {
if (!inspected_tab)
return NULL;
@@ -172,8 +171,8 @@ DevToolsWindow* DevToolsWindow::Create(
RenderViewHost* inspected_rvh,
bool docked,
bool shared_worker_frontend) {
- // Create TabContentsWrapper with devtools.
- TabContentsWrapper* tab_contents =
+ // Create TabContents with devtools.
+ TabContents* tab_contents =
Browser::TabContentsFactory(profile, NULL, MSG_ROUTING_NONE, NULL, NULL);
tab_contents->web_contents()->GetRenderViewHost()->AllowBindings(
content::BINDINGS_POLICY_WEB_UI);
@@ -185,7 +184,7 @@ DevToolsWindow* DevToolsWindow::Create(
return new DevToolsWindow(tab_contents, profile, inspected_rvh, docked);
}
-DevToolsWindow::DevToolsWindow(TabContentsWrapper* tab_contents,
+DevToolsWindow::DevToolsWindow(TabContents* tab_contents,
Profile* profile,
RenderViewHost* inspected_rvh,
bool docked)
@@ -228,7 +227,7 @@ DevToolsWindow::DevToolsWindow(TabContentsWrapper* tab_contents,
if (inspected_rvh) {
WebContents* tab = WebContents::FromRenderViewHost(inspected_rvh);
if (tab)
- inspected_tab_ = TabContentsWrapper::GetCurrentWrapperForContents(tab);
+ inspected_tab_ = TabContents::GetOwningTabContentsForWebContents(tab);
}
}
@@ -263,13 +262,13 @@ void DevToolsWindow::InspectedContentsClosing() {
}
void DevToolsWindow::ContentsReplaced(WebContents* new_contents) {
- TabContentsWrapper* new_tab_wrapper =
- TabContentsWrapper::GetCurrentWrapperForContents(new_contents);
- DCHECK(new_tab_wrapper);
- if (!new_tab_wrapper)
+ TabContents* new_tab_contents =
+ TabContents::GetOwningTabContentsForWebContents(new_contents);
+ DCHECK(new_tab_contents);
+ if (!new_tab_contents)
return;
- DCHECK_EQ(profile_, new_tab_wrapper->profile());
- inspected_tab_ = new_tab_wrapper;
+ DCHECK_EQ(profile_, new_tab_contents->profile());
+ inspected_tab_ = new_tab_contents;
}
void DevToolsWindow::Show(DevToolsToggleAction action) {