Chromium Code Reviews| Index: chrome/renderer/autofill/autofill_agent.cc |
| diff --git a/chrome/renderer/autofill/autofill_agent.cc b/chrome/renderer/autofill/autofill_agent.cc |
| index f293635e2f12f19b1138d00a1f81ae2c817d37e4..d1bfce5fb3b5f714f24bfc095048f015133f7999 100644 |
| --- a/chrome/renderer/autofill/autofill_agent.cc |
| +++ b/chrome/renderer/autofill/autofill_agent.cc |
| @@ -19,6 +19,7 @@ |
| #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
| #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
| #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" |
| +#include "third_party/WebKit/Source/WebKit/chromium/public/WebRect.h" |
| #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
| #include "ui/base/keycodes/keyboard_codes.h" |
| #include "ui/base/l10n/l10n_util.h" |
| @@ -124,6 +125,8 @@ bool AutofillAgent::InputElementClicked(const WebInputElement& element, |
| } |
| bool AutofillAgent::InputElementLostFocus() { |
| + Send(new AutofillHostMsg_HideAutofillPopup(routing_id())); |
| + |
| return false; |
| } |
| @@ -414,8 +417,10 @@ void AutofillAgent::QueryAutofillSuggestions(const WebInputElement& element, |
| WebFormControlElementToFormField(element, EXTRACT_VALUE, &field); |
| } |
| + gfx::Rect bounding_box(autofill_query_element_.boundsInWindowSpace()); |
|
Ilya Sherman
2011/11/17 02:29:23
So that you're not blocked by the WebKit work... H
|
| + |
| Send(new AutofillHostMsg_QueryFormFieldAutofill( |
| - routing_id(), autofill_query_id_, form, field)); |
| + routing_id(), autofill_query_id_, form, field, bounding_box)); |
| } |
| void AutofillAgent::FillAutofillFormData(const WebNode& node, |