diff options
author | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-10 20:32:06 +0000 |
---|---|---|
committer | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-10 20:32:06 +0000 |
commit | 92edc4764d2f311440929ad4dca91f87be3b2f11 (patch) | |
tree | f4ba410c3fe7612ee830b326739fba05273a59e2 /chrome/browser/views/hung_renderer_view.cc | |
parent | ea16554e83cab7fe751cac7a0af8eaea3948c512 (diff) | |
download | chromium_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/views/hung_renderer_view.cc')
-rw-r--r-- | chrome/browser/views/hung_renderer_view.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/views/hung_renderer_view.cc b/chrome/browser/views/hung_renderer_view.cc index 8c7ca7a..7e0b3df 100644 --- a/chrome/browser/views/hung_renderer_view.cc +++ b/chrome/browser/views/hung_renderer_view.cc @@ -223,7 +223,7 @@ void HungRendererWarningView::ShowForWebContents(WebContents* contents) { // Don't show the warning unless the foreground window is the frame, or this // window (but still invisible). If the user has another window or // application selected, activating ourselves is rude. - HWND frame_hwnd = GetAncestor(contents->GetContainerHWND(), GA_ROOT); + HWND frame_hwnd = GetAncestor(contents->GetNativeView(), GA_ROOT); HWND foreground_window = GetForegroundWindow(); if (foreground_window != frame_hwnd && foreground_window != window()->GetHWND()) { @@ -400,7 +400,7 @@ void HungRendererWarningView::CreateKillButtonView() { gfx::Rect HungRendererWarningView::GetDisplayBounds( WebContents* contents) { - HWND contents_hwnd = contents->GetContainerHWND(); + HWND contents_hwnd = contents->GetNativeView(); CRect contents_bounds; GetWindowRect(contents_hwnd, &contents_bounds); |