summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/hung_renderer_view.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-14 07:22:13 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-14 07:22:13 +0000
commitaf38e14a94b83471f75717b85bfabe56864159d3 (patch)
treea1673088ce567ba72e0a0932ffad3889f41c4548 /chrome/browser/views/hung_renderer_view.cc
parent5cbd55c5e7a859e05d1c7f17d9fdc229a12a3244 (diff)
downloadchromium_src-af38e14a94b83471f75717b85bfabe56864159d3.zip
chromium_src-af38e14a94b83471f75717b85bfabe56864159d3.tar.gz
chromium_src-af38e14a94b83471f75717b85bfabe56864159d3.tar.bz2
Rename Window->WindowWin
Pull basic Window interface out of WindowWin into new interface, Window. Convert code to use it. Review URL: http://codereview.chromium.org/46079 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11699 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/hung_renderer_view.cc')
-rw-r--r--chrome/browser/views/hung_renderer_view.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/chrome/browser/views/hung_renderer_view.cc b/chrome/browser/views/hung_renderer_view.cc
index 4dc72f6..ef78677 100644
--- a/chrome/browser/views/hung_renderer_view.cc
+++ b/chrome/browser/views/hung_renderer_view.cc
@@ -225,7 +225,7 @@ void HungRendererWarningView::ShowForWebContents(WebContents* contents) {
HWND frame_hwnd = GetAncestor(contents->GetNativeView(), GA_ROOT);
HWND foreground_window = GetForegroundWindow();
if (foreground_window != frame_hwnd &&
- foreground_window != window()->GetNativeView()) {
+ foreground_window != window()->GetNativeWindow()) {
return;
}
@@ -403,8 +403,7 @@ gfx::Rect HungRendererWarningView::GetDisplayBounds(
CRect contents_bounds;
GetWindowRect(contents_hwnd, &contents_bounds);
- gfx::Rect window_bounds;
- window()->GetBounds(&window_bounds, true);
+ gfx::Rect window_bounds = window()->GetBounds();
int window_x = contents_bounds.left +
(contents_bounds.Width() - window_bounds.width()) / 2;