| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "config.h" | |
| 6 | |
| 7 #include "webkit/glue/form_autocomplete_listener.h" | |
| 8 | |
| 9 MSVC_PUSH_WARNING_LEVEL(0); | |
| 10 #include "HTMLInputElement.h" | |
| 11 MSVC_POP_WARNING(); | |
| 12 | |
| 13 #undef LOG | |
| 14 | |
| 15 #include "webkit/glue/autocomplete_input_listener.h" | |
| 16 #include "webkit/glue/glue_util.h" | |
| 17 #include "webkit/glue/webview_delegate.h" | |
| 18 | |
| 19 namespace webkit_glue { | |
| 20 | |
| 21 FormAutocompleteListener::FormAutocompleteListener( | |
| 22 WebViewDelegate* webview_delegate) | |
| 23 : webview_delegate_(webview_delegate) { | |
| 24 } | |
| 25 | |
| 26 void FormAutocompleteListener::OnInlineAutocompleteNeeded( | |
| 27 WebCore::HTMLInputElement* input_element, | |
| 28 const std::wstring& user_input) { | |
| 29 std::wstring name = webkit_glue::StringToStdWString(input_element-> | |
| 30 name().string()); | |
| 31 webview_delegate_->QueryFormFieldAutofill(name, user_input, | |
| 32 reinterpret_cast<int64>(input_element)); | |
| 33 } | |
| 34 | |
| 35 } // namespace | |
| OLD | NEW |