summaryrefslogtreecommitdiffstats
path: root/chrome/browser/external_tab
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-08 00:17:03 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-08 00:17:03 +0000
commit2b910313ba4e43e3da5b3598efec90fa4b004dfa (patch)
tree5e3d7c6d86066eb541cd0b96d6edf857fcf24d70 /chrome/browser/external_tab
parent72384daa1b268e8132e323a1cf01c05b5e57c96b (diff)
downloadchromium_src-2b910313ba4e43e3da5b3598efec90fa4b004dfa.zip
chromium_src-2b910313ba4e43e3da5b3598efec90fa4b004dfa.tar.gz
chromium_src-2b910313ba4e43e3da5b3598efec90fa4b004dfa.tar.bz2
TabContentsWrapper -> TabContents, part 6.
Automation. BUG=131026 TEST=no change Review URL: https://chromiumcodereview.appspot.com/10536058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141127 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/external_tab')
-rw-r--r--chrome/browser/external_tab/external_tab_container_win.cc22
-rw-r--r--chrome/browser/external_tab/external_tab_container_win.h11
2 files changed, 16 insertions, 17 deletions
diff --git a/chrome/browser/external_tab/external_tab_container_win.cc b/chrome/browser/external_tab/external_tab_container_win.cc
index 227c656..3802025 100644
--- a/chrome/browser/external_tab/external_tab_container_win.cc
+++ b/chrome/browser/external_tab/external_tab_container_win.cc
@@ -33,7 +33,7 @@
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_dialogs.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/views/infobars/infobar_container_view.h"
#include "chrome/common/automation_messages.h"
#include "chrome/common/chrome_constants.h"
@@ -150,7 +150,7 @@ bool ExternalTabContainer::Init(Profile* profile,
DWORD style,
bool load_requests_via_automation,
bool handle_top_level_requests,
- TabContentsWrapper* existing_contents,
+ TabContents* existing_contents,
const GURL& initial_url,
const GURL& referrer,
bool infobars_enabled,
@@ -185,7 +185,7 @@ bool ExternalTabContainer::Init(Profile* profile,
} else {
WebContents* new_contents = WebContents::Create(
profile, NULL, MSG_ROUTING_NONE, NULL, NULL);
- tab_contents_.reset(new TabContentsWrapper(new_contents));
+ tab_contents_.reset(new TabContents(new_contents));
}
if (!infobars_enabled)
@@ -450,23 +450,23 @@ void ExternalTabContainer::AddNewContents(WebContents* source,
// Make sure that ExternalTabContainer instance is initialized with
// an unwrapped Profile.
- scoped_ptr<TabContentsWrapper> wrapper(new TabContentsWrapper(new_contents));
+ scoped_ptr<TabContents> tab_contents(new TabContents(new_contents));
bool result = new_container->Init(
- wrapper->profile()->GetOriginalProfile(),
+ tab_contents->profile()->GetOriginalProfile(),
NULL,
initial_pos,
WS_CHILD,
load_requests_via_automation_,
handle_top_level_requests_,
- wrapper.get(),
+ tab_contents.get(),
GURL(),
GURL(),
true,
route_all_top_level_navigations_);
if (result) {
- Profile* profile = wrapper->profile();
- wrapper.release(); // Ownership has been transferred.
+ Profile* profile = tab_contents->profile();
+ tab_contents.release(); // Ownership has been transferred.
if (route_all_top_level_navigations_) {
return;
}
@@ -521,8 +521,8 @@ void ExternalTabContainer::MoveContents(WebContents* source,
automation_->Send(new AutomationMsg_MoveWindow(tab_handle_, pos));
}
-TabContentsWrapper* ExternalTabContainer::GetConstrainingContentsWrapper(
- TabContentsWrapper* source) {
+TabContents* ExternalTabContainer::GetConstrainingContentsWrapper(
+ TabContents* source) {
return source;
}
@@ -717,7 +717,7 @@ void ExternalTabContainer::ShowRepostFormWarningDialog(
WebContents* source) {
browser::ShowTabModalConfirmDialog(
new RepostFormWarningController(source),
- TabContentsWrapper::GetCurrentWrapperForContents(source));
+ TabContents::GetOwningTabContentsForWebContents(source));
}
void ExternalTabContainer::RunFileChooser(
diff --git a/chrome/browser/external_tab/external_tab_container_win.h b/chrome/browser/external_tab/external_tab_container_win.h
index e9a26d2..7610503 100644
--- a/chrome/browser/external_tab/external_tab_container_win.h
+++ b/chrome/browser/external_tab/external_tab_container_win.h
@@ -32,7 +32,6 @@ class Browser;
class Profile;
class TabContentsContainer;
class TabContents;
-typedef TabContents TabContentsWrapper;
class RenderViewContextMenuViews;
struct NavigationInfo;
@@ -67,7 +66,7 @@ class ExternalTabContainer : public content::WebContentsDelegate,
AutomationResourceMessageFilter* filter);
content::WebContents* web_contents() const;
- TabContentsWrapper* tab_contents_wrapper() { return tab_contents_.get(); }
+ TabContents* tab_contents() { return tab_contents_.get(); }
// Temporary hack so we can send notifications back
void SetTabHandle(int handle);
@@ -82,7 +81,7 @@ class ExternalTabContainer : public content::WebContentsDelegate,
DWORD style,
bool load_requests_via_automation,
bool handle_top_level_requests,
- TabContentsWrapper* existing_tab_contents,
+ TabContents* existing_tab_contents,
const GURL& initial_url,
const GURL& referrer,
bool infobars_enabled,
@@ -245,8 +244,8 @@ class ExternalTabContainer : public content::WebContentsDelegate,
void RunUnloadHandlers(IPC::Message* reply_message);
// Overridden from BlockedContentTabHelperDelegate:
- virtual TabContentsWrapper* GetConstrainingContentsWrapper(
- TabContentsWrapper* source) OVERRIDE;
+ virtual TabContents* GetConstrainingContentsWrapper(
+ TabContents* source) OVERRIDE;
protected:
~ExternalTabContainer();
@@ -284,7 +283,7 @@ class ExternalTabContainer : public content::WebContentsDelegate,
// Creates and initializes the view hierarchy for this ExternalTabContainer.
void SetupExternalTabView();
- scoped_ptr<TabContentsWrapper> tab_contents_;
+ scoped_ptr<TabContents> tab_contents_;
scoped_refptr<AutomationProvider> automation_;
content::NotificationRegistrar registrar_;