| Index: chrome/browser/autofill/autofill_manager.cc
|
| diff --git a/chrome/browser/autofill/autofill_manager.cc b/chrome/browser/autofill/autofill_manager.cc
|
| index 575407d0fee0a9ecc63fb11c4017d4ca4041cd4b..ef3b9d47c0ca8731f65529c6020afcc6ecd472bf 100644
|
| --- a/chrome/browser/autofill/autofill_manager.cc
|
| +++ b/chrome/browser/autofill/autofill_manager.cc
|
| @@ -311,6 +311,10 @@ bool AutofillManager::OnMessageReceived(const IPC::Message& message) {
|
| OnDidFillAutofillFormData)
|
| IPC_MESSAGE_HANDLER(AutofillHostMsg_DidShowAutofillSuggestions,
|
| OnDidShowAutofillSuggestions)
|
| + IPC_MESSAGE_HANDLER(AutofillHostMsg_AutofillElementBounds,
|
| + OnSetAutofillElementBounds)
|
| + IPC_MESSAGE_HANDLER(AutofillHostMsg_HideAutofillPopup,
|
| + OnHideAutofillPopup)
|
| IPC_MESSAGE_UNHANDLED(handled = false)
|
| IPC_END_MESSAGE_MAP()
|
|
|
| @@ -673,6 +677,32 @@ void AutofillManager::OnDidShowAutofillSuggestions(bool is_new_popup) {
|
| }
|
| }
|
|
|
| +void AutofillManager::OnShowAutofillSuggestions(
|
| + int query_id,
|
| + const std::vector<string16>& autofill_values,
|
| + const std::vector<string16>& autofill_labels,
|
| + const std::vector<string16>& autofill_icons,
|
| + const std::vector<int>& autofill_unique_ids) {
|
| + external_delegate_->OnSuggestionsReturned(query_id,
|
| + autofill_values,
|
| + autofill_labels,
|
| + autofill_icons,
|
| + autofill_unique_ids);
|
| + external_delegate_->ShowAutofillPopup();
|
| +}
|
| +
|
| +void AutofillManager::OnSetAutofillElementBounds(
|
| + int x,
|
| + int y,
|
| + int width,
|
| + int height) {
|
| + external_delegate_->SetAutofillElementBounds(gfx::Rect(x, y, width, height));
|
| +}
|
| +
|
| +void AutofillManager::OnHideAutofillPopup() {
|
| + external_delegate_->HideAutofillPopup();
|
| +}
|
| +
|
| void AutofillManager::OnLoadedServerPredictions(
|
| const std::string& response_xml) {
|
| // Parse and store the server predictions.
|
|
|