summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/hung_renderer_view.cc
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-09 20:20:47 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-09 20:20:47 +0000
commitd50cca412ec42dd9ccbc33cc38d1f7021a54b4fb (patch)
tree6cd4024bd99e5508b5e8226758924c1973210664 /chrome/browser/views/hung_renderer_view.cc
parentc3826037cbcb22fe784a10589061eaf084818727 (diff)
downloadchromium_src-d50cca412ec42dd9ccbc33cc38d1f7021a54b4fb.zip
chromium_src-d50cca412ec42dd9ccbc33cc38d1f7021a54b4fb.tar.gz
chromium_src-d50cca412ec42dd9ccbc33cc38d1f7021a54b4fb.tar.bz2
Switch from HWNDs to NativeViews.
Review URL: http://codereview.chromium.org/21143 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9409 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/hung_renderer_view.cc')
-rw-r--r--chrome/browser/views/hung_renderer_view.cc4
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);