From d615ad7ae65beddc26c9833b7bfd1d7bdb6f3d7b Mon Sep 17 00:00:00 2001 From: "brettw@chromium.org" Date: Thu, 29 Jan 2009 00:30:32 +0000 Subject: Rename RenderWidgetHostView::GetPluginHWND to GetPluginNativeView Review URL: http://codereview.chromium.org/19438 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8846 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/views/tab_contents_container_view.cc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'chrome/browser/views') diff --git a/chrome/browser/views/tab_contents_container_view.cc b/chrome/browser/views/tab_contents_container_view.cc index cfcb301..2fb25a1 100644 --- a/chrome/browser/views/tab_contents_container_view.cc +++ b/chrome/browser/views/tab_contents_container_view.cc @@ -227,11 +227,15 @@ void TabContentsContainerView::RemoveObservers() { void TabContentsContainerView::RenderViewHostChanged(RenderViewHost* old_host, RenderViewHost* new_host) { - if (old_host && old_host->view()) - FocusManager::UninstallFocusSubclass(old_host->view()->GetPluginHWND()); + if (old_host && old_host->view()) { + FocusManager::UninstallFocusSubclass( + old_host->view()->GetPluginNativeView()); + } - if (new_host && new_host->view()) - FocusManager::InstallFocusSubclass(new_host->view()->GetPluginHWND(), this); + if (new_host && new_host->view()) { + FocusManager::InstallFocusSubclass( + new_host->view()->GetPluginNativeView(), this); + } // If we are focused, we need to pass the focus to the new RenderViewHost. FocusManager* focus_manager = -- cgit v1.1