summaryrefslogtreecommitdiffstats
path: root/chrome/browser/external_tab_container.cc
diff options
context:
space:
mode:
authorstoyan@chromium.org <stoyan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-08 16:26:11 +0000
committerstoyan@chromium.org <stoyan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-08 16:26:11 +0000
commitb1c5563861d33febd3ba84dfac70c7b6921bda26 (patch)
tree8f7f9747e59f42cf0878edb8e599a3151e944045 /chrome/browser/external_tab_container.cc
parent57fc471c6864dea93852742643e32d35a30c8559 (diff)
downloadchromium_src-b1c5563861d33febd3ba84dfac70c7b6921bda26.zip
chromium_src-b1c5563861d33febd3ba84dfac70c7b6921bda26.tar.gz
chromium_src-b1c5563861d33febd3ba84dfac70c7b6921bda26.tar.bz2
ChromeFrame now uses host provided popup blocker.
It does not work in all scenarions since from Chrome side an empty string is passed as target url. Note in IE6 "Tools/Popup Blocker" menu is not visible if ChromeFrame is the activedocument. Have to support some IOleCommandTarget command.. BUG=34823 Review URL: http://codereview.chromium.org/668168 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40897 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/external_tab_container.cc')
-rw-r--r--chrome/browser/external_tab_container.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/chrome/browser/external_tab_container.cc b/chrome/browser/external_tab_container.cc
index 842341b..08c9fe7 100644
--- a/chrome/browser/external_tab_container.cc
+++ b/chrome/browser/external_tab_container.cc
@@ -355,16 +355,16 @@ void ExternalTabContainer::AddNewContents(TabContents* source,
GURL());
if (result) {
- pending_tabs_[reinterpret_cast<intptr_t>(new_container.get())] =
- new_container;
-
+ uintptr_t cookie = reinterpret_cast<uintptr_t>(new_container.get());
+ pending_tabs_[cookie] = new_container;
new_container->set_pending(true);
-
- automation_->Send(new AutomationMsg_AttachExternalTab(
- 0,
- tab_handle_,
- reinterpret_cast<intptr_t>(new_container.get()),
- disposition));
+ IPC::AttachExternalTabParams attach_params_;
+ attach_params_.cookie = static_cast<uint64>(cookie);
+ attach_params_.dimensions = initial_pos;
+ attach_params_.user_gesture = user_gesture;
+ attach_params_.disposition = disposition;
+ automation_->Send(new AutomationMsg_AttachExternalTab(0,
+ tab_handle_, attach_params_));
} else {
NOTREACHED();
}
@@ -739,7 +739,7 @@ bool ExternalTabContainer::InitNavigationInfo(IPC::NavigationInfo* nav_info,
}
scoped_refptr<ExternalTabContainer> ExternalTabContainer::RemovePendingTab(
- intptr_t cookie) {
+ uintptr_t cookie) {
PendingTabs::iterator index = pending_tabs_.find(cookie);
if (index != pending_tabs_.end()) {
scoped_refptr<ExternalTabContainer> container = (*index).second;