| 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..4b2a616119bc9f0f813c6470d373cba7f10cb3f0 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,13 @@ void AutofillAgent::QueryAutofillSuggestions(const WebInputElement& element,
|
| WebFormControlElementToFormField(element, EXTRACT_VALUE, &field);
|
| }
|
|
|
| + // TODO(csharp): Stop using the hardcoded value once the WebKit change to
|
| + // expose the position lands.
|
| + // gfx::Rect bounding_box(autofill_query_element_.boundsInRootViewSpace());
|
| + gfx::Rect bounding_box(26, 51, 155, 22);
|
| +
|
| 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,
|
|
|