Chromium Code Reviews| Index: ui/views/win/hwnd_message_handler.cc |
| =================================================================== |
| --- ui/views/win/hwnd_message_handler.cc (revision 157553) |
| +++ ui/views/win/hwnd_message_handler.cc (working copy) |
| @@ -712,12 +712,6 @@ |
| ::SetFocus(hwnd()); |
| } |
| -void HWNDMessageHandler::FocusHWND(HWND hwnd) { |
| - // Only reset focus if hwnd is not already focused. |
| - if (hwnd && ::GetFocus() != hwnd) |
| - ::SetFocus(hwnd); |
| -} |
| - |
| void HWNDMessageHandler::SetCapture() { |
| DCHECK(!HasCapture()); |
| ::SetCapture(hwnd()); |