diff options
Diffstat (limited to 'chrome/browser/autocomplete/autocomplete_edit_view_win.cc')
-rw-r--r-- | chrome/browser/autocomplete/autocomplete_edit_view_win.cc | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_edit_view_win.cc b/chrome/browser/autocomplete/autocomplete_edit_view_win.cc index 1ada16a..e6643f3 100644 --- a/chrome/browser/autocomplete/autocomplete_edit_view_win.cc +++ b/chrome/browser/autocomplete/autocomplete_edit_view_win.cc @@ -869,10 +869,6 @@ gfx::NativeView AutocompleteEditViewWin::GetNativeView() const { return m_hWnd; } -gfx::NativeView AutocompleteEditViewWin::GetFocusNativeView() const { - return m_hWnd; -} - void AutocompleteEditViewWin::PasteAndGo(const std::wstring& text) { if (CanPasteAndGo(text)) model_->PasteAndGo(); @@ -1640,6 +1636,15 @@ void AutocompleteEditViewWin::OnPaste() { } void AutocompleteEditViewWin::OnSetFocus(HWND focus_wnd) { + views::FocusManager* focus_manager = parent_view_->GetFocusManager(); + if (focus_manager) { + // Notify the FocusManager that the focused view is now the location bar + // (our parent view). + focus_manager->SetFocusedView(parent_view_); + } else { + NOTREACHED(); + } + model_->OnSetFocus(GetKeyState(VK_CONTROL) < 0); // Notify controller if it needs to show hint UI of some kind. |