summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/constrained_window_impl.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-12 19:29:06 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-12 19:29:06 +0000
commited8b1b805203b6ccdb5517d0c30cc689dde65e98 (patch)
tree88b8d0c2e552f291fbb01e8aa660806597e9d3fc /chrome/browser/views/constrained_window_impl.cc
parent71994cd0877f3528079b1154d46d90801e515292 (diff)
downloadchromium_src-ed8b1b805203b6ccdb5517d0c30cc689dde65e98.zip
chromium_src-ed8b1b805203b6ccdb5517d0c30cc689dde65e98.tar.gz
chromium_src-ed8b1b805203b6ccdb5517d0c30cc689dde65e98.tar.bz2
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
Diffstat (limited to 'chrome/browser/views/constrained_window_impl.cc')
-rw-r--r--chrome/browser/views/constrained_window_impl.cc6
1 files changed, 3 insertions, 3 deletions
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).