| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/autofill/content/renderer/autofill_agent.h" | 5 #include "components/autofill/content/renderer/autofill_agent.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <tuple> | 9 #include <tuple> |
| 10 | 10 |
| (...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 461 } | 461 } |
| 462 DoFillFieldWithValue(new_value, input_element); | 462 DoFillFieldWithValue(new_value, input_element); |
| 463 } | 463 } |
| 464 | 464 |
| 465 // mojom::AutofillAgent: | 465 // mojom::AutofillAgent: |
| 466 void AutofillAgent::FirstUserGestureObservedInTab() { | 466 void AutofillAgent::FirstUserGestureObservedInTab() { |
| 467 password_autofill_agent_->FirstUserGestureObserved(); | 467 password_autofill_agent_->FirstUserGestureObserved(); |
| 468 } | 468 } |
| 469 | 469 |
| 470 void AutofillAgent::FillForm(int32_t id, const FormData& form) { | 470 void AutofillAgent::FillForm(int32_t id, const FormData& form) { |
| 471 if (id != autofill_query_id_) | 471 if (id != autofill_query_id_ && id != kNoQueryId) |
| 472 return; | 472 return; |
| 473 | 473 |
| 474 was_query_node_autofilled_ = element_.isAutofilled(); | 474 was_query_node_autofilled_ = element_.isAutofilled(); |
| 475 form_util::FillForm(form, element_); | 475 form_util::FillForm(form, element_); |
| 476 if (!element_.form().isNull()) | 476 if (!element_.form().isNull()) |
| 477 last_interacted_form_ = element_.form(); | 477 last_interacted_form_ = element_.form(); |
| 478 | 478 |
| 479 GetAutofillDriver()->DidFillAutofillFormData(form, base::TimeTicks::Now()); | 479 GetAutofillDriver()->DidFillAutofillFormData(form, base::TimeTicks::Now()); |
| 480 } | 480 } |
| 481 | 481 |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 808 void AutofillAgent::LegacyAutofillAgent::OnDestruct() { | 808 void AutofillAgent::LegacyAutofillAgent::OnDestruct() { |
| 809 // No-op. Don't delete |this|. | 809 // No-op. Don't delete |this|. |
| 810 } | 810 } |
| 811 | 811 |
| 812 void AutofillAgent::LegacyAutofillAgent::FocusChangeComplete() { | 812 void AutofillAgent::LegacyAutofillAgent::FocusChangeComplete() { |
| 813 if (agent_) | 813 if (agent_) |
| 814 agent_->FocusChangeComplete(); | 814 agent_->FocusChangeComplete(); |
| 815 } | 815 } |
| 816 | 816 |
| 817 } // namespace autofill | 817 } // namespace autofill |
| OLD | NEW |