From 3c3ba740c63a178807cc0c1a563080e0adbfe143 Mon Sep 17 00:00:00 2001 From: "jcampan@chromium.org" Date: Sat, 20 Jun 2009 04:22:44 +0000 Subject: Relanding focus manager refactoring with build fix, see:http://codereview.chromium.org/125148BUG=NoneTEST=NoneTBR=ben Review URL: http://codereview.chromium.org/141013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18889 0039d316-1c4b-4281-b951-d872f2087c98 --- views/view_win.cc | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'views/view_win.cc') diff --git a/views/view_win.cc b/views/view_win.cc index c61363d..bf265f9 100644 --- a/views/view_win.cc +++ b/views/view_win.cc @@ -17,18 +17,6 @@ namespace views { -FocusManager* View::GetFocusManager() { - Widget* widget = GetWidget(); - if (!widget) - return NULL; - - HWND hwnd = widget->GetNativeView(); - if (!hwnd) - return NULL; - - return FocusManager::GetFocusManager(hwnd); -} - void View::DoDrag(const MouseEvent& e, int press_x, int press_y) { int drag_operations = GetDragOperations(press_x, press_y); if (drag_operations == DragDropTypes::DRAG_NONE) @@ -55,7 +43,7 @@ void View::Focus() { // messages. FocusManager* focus_manager = GetFocusManager(); if (focus_manager) - focus_manager->FocusHWND(GetRootView()->GetWidget()->GetNativeView()); + focus_manager->FocusNativeView(GetRootView()->GetWidget()->GetNativeView()); } int View::GetHorizontalDragThreshold() { -- cgit v1.1