summaryrefslogtreecommitdiffstats
path: root/chrome/browser/external_tab_container.cc
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-10 20:32:06 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-10 20:32:06 +0000
commit92edc4764d2f311440929ad4dca91f87be3b2f11 (patch)
treef4ba410c3fe7612ee830b326739fba05273a59e2 /chrome/browser/external_tab_container.cc
parentea16554e83cab7fe751cac7a0af8eaea3948c512 (diff)
downloadchromium_src-92edc4764d2f311440929ad4dca91f87be3b2f11.zip
chromium_src-92edc4764d2f311440929ad4dca91f87be3b2f11.tar.gz
chromium_src-92edc4764d2f311440929ad4dca91f87be3b2f11.tar.bz2
Switch from HWNDs to NativeViews, take 2. (First attempt was r9409, in which I missed a file.)
Review URL: http://codereview.chromium.org/20226 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9507 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/external_tab_container.cc')
-rw-r--r--chrome/browser/external_tab_container.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/external_tab_container.cc b/chrome/browser/external_tab_container.cc
index 6e1d58e..7b03d4b 100644
--- a/chrome/browser/external_tab_container.cc
+++ b/chrome/browser/external_tab_container.cc
@@ -109,7 +109,7 @@ bool ExternalTabContainer::Init(Profile* profile, HWND parent,
// may or may not include the popup bit.
ModifyStyle(WS_POPUP, style, 0);
- ::ShowWindow(tab_contents_->GetContainerHWND(), SW_SHOW);
+ ::ShowWindow(tab_contents_->GetNativeView(), SW_SHOW);
return true;
}
@@ -143,7 +143,7 @@ LRESULT ExternalTabContainer::OnSize(UINT, WPARAM, LPARAM, BOOL& handled) {
if (tab_contents_) {
RECT client_rect = {0};
GetClientRect(&client_rect);
- ::SetWindowPos(tab_contents_->GetContainerHWND(), NULL, client_rect.left,
+ ::SetWindowPos(tab_contents_->GetNativeView(), NULL, client_rect.left,
client_rect.top, client_rect.right - client_rect.left,
client_rect.bottom - client_rect.top, SWP_NOZORDER);
}