From ed8b1b805203b6ccdb5517d0c30cc689dde65e98 Mon Sep 17 00:00:00 2001 From: "ben@chromium.org" Date: Thu, 12 Mar 2009 19:29:06 +0000 Subject: Make Widget return a gfx::NativeView instead of a HWND. Review URL: http://codereview.chromium.org/43124 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11562 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/views/constrained_window_impl.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'chrome/browser/views/constrained_window_impl.cc') diff --git a/chrome/browser/views/constrained_window_impl.cc b/chrome/browser/views/constrained_window_impl.cc index 8005457..3d0869a 100644 --- a/chrome/browser/views/constrained_window_impl.cc +++ b/chrome/browser/views/constrained_window_impl.cc @@ -617,7 +617,7 @@ void ConstrainedWindowImpl::ActivateConstrainedWindow() { // Store the focus of our parent focus manager so we can restore it when we // close. views::FocusManager* focus_manager = - views::FocusManager::GetFocusManager(GetHWND()); + views::FocusManager::GetFocusManager(GetNativeView()); DCHECK(focus_manager); focus_manager = focus_manager->GetParentFocusManager(); if (focus_manager) { @@ -628,7 +628,7 @@ void ConstrainedWindowImpl::ActivateConstrainedWindow() { focus_manager->StoreFocusedView(); // Give our window the focus so we get keyboard messages. - ::SetFocus(GetHWND()); + ::SetFocus(GetNativeView()); } } @@ -707,7 +707,7 @@ void ConstrainedWindowImpl::OnDestroy() { // WM_DESTROY in FocusManager). So the FocusManager we retrieve here is the // parent one (the one from the top window). views::FocusManager* focus_manager = - views::FocusManager::GetFocusManager(GetHWND()); + views::FocusManager::GetFocusManager(GetNativeView()); if (focus_manager) { // We may not have a focus manager if: // - we are hidden when closed (the TabContent would be detached). -- cgit v1.1