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 762 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
773 if (password_generation_agent_) | 773 if (password_generation_agent_) |
774 password_generation_agent_->OnDynamicFormsSeen(); | 774 password_generation_agent_->OnDynamicFormsSeen(); |
775 } | 775 } |
776 } | 776 } |
777 | 777 |
778 void AutofillAgent::ajaxSucceeded() { | 778 void AutofillAgent::ajaxSucceeded() { |
779 OnSamePageNavigationCompleted(); | 779 OnSamePageNavigationCompleted(); |
780 password_autofill_agent_->AJAXSucceeded(); | 780 password_autofill_agent_->AJAXSucceeded(); |
781 } | 781 } |
782 | 782 |
| 783 void AutofillAgent::passwordFieldBecameVisible() { |
| 784 password_autofill_agent_->OnPasswordFieldVisible(); |
| 785 } |
| 786 |
783 const mojom::AutofillDriverPtr& AutofillAgent::GetAutofillDriver() { | 787 const mojom::AutofillDriverPtr& AutofillAgent::GetAutofillDriver() { |
784 if (!autofill_driver_) { | 788 if (!autofill_driver_) { |
785 render_frame()->GetRemoteInterfaces()->GetInterface( | 789 render_frame()->GetRemoteInterfaces()->GetInterface( |
786 mojo::GetProxy(&autofill_driver_)); | 790 mojo::GetProxy(&autofill_driver_)); |
787 } | 791 } |
788 | 792 |
789 return autofill_driver_; | 793 return autofill_driver_; |
790 } | 794 } |
791 | 795 |
792 const mojom::PasswordManagerDriverPtr& | 796 const mojom::PasswordManagerDriverPtr& |
(...skipping 20 matching lines...) Expand all Loading... |
813 void AutofillAgent::LegacyAutofillAgent::OnDestruct() { | 817 void AutofillAgent::LegacyAutofillAgent::OnDestruct() { |
814 // No-op. Don't delete |this|. | 818 // No-op. Don't delete |this|. |
815 } | 819 } |
816 | 820 |
817 void AutofillAgent::LegacyAutofillAgent::FocusChangeComplete() { | 821 void AutofillAgent::LegacyAutofillAgent::FocusChangeComplete() { |
818 if (agent_) | 822 if (agent_) |
819 agent_->FocusChangeComplete(); | 823 agent_->FocusChangeComplete(); |
820 } | 824 } |
821 | 825 |
822 } // namespace autofill | 826 } // namespace autofill |
OLD | NEW |