| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "chrome/browser/ui/autofill/chrome_autofill_client.h" | 5 #include "chrome/browser/ui/autofill/chrome_autofill_client.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
| 9 #include "chrome/browser/autofill/autofill_cc_infobar_delegate.h" | 9 #include "chrome/browser/autofill/autofill_cc_infobar_delegate.h" |
| 10 #include "chrome/browser/autofill/personal_data_manager_factory.h" | 10 #include "chrome/browser/autofill/personal_data_manager_factory.h" |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 | 165 |
| 166 void ChromeAutofillClient::HideRequestAutocompleteDialog() { | 166 void ChromeAutofillClient::HideRequestAutocompleteDialog() { |
| 167 if (dialog_controller_.get()) | 167 if (dialog_controller_.get()) |
| 168 dialog_controller_->Hide(); | 168 dialog_controller_->Hide(); |
| 169 } | 169 } |
| 170 | 170 |
| 171 void ChromeAutofillClient::WebContentsDestroyed() { | 171 void ChromeAutofillClient::WebContentsDestroyed() { |
| 172 HideAutofillPopup(); | 172 HideAutofillPopup(); |
| 173 } | 173 } |
| 174 | 174 |
| 175 void ChromeAutofillClient::OnZoomChanged( |
| 176 const ZoomController::ZoomChangedEventData& data) { |
| 177 HideAutofillPopup(); |
| 178 } |
| 179 |
| 175 void ChromeAutofillClient::DetectAccountCreationForms( | 180 void ChromeAutofillClient::DetectAccountCreationForms( |
| 176 const std::vector<autofill::FormStructure*>& forms) { | 181 const std::vector<autofill::FormStructure*>& forms) { |
| 177 password_manager::PasswordGenerationManager* manager = | 182 password_manager::PasswordGenerationManager* manager = |
| 178 ChromePasswordManagerClient::GetGenerationManagerFromWebContents( | 183 ChromePasswordManagerClient::GetGenerationManagerFromWebContents( |
| 179 web_contents_); | 184 web_contents_); |
| 180 if (manager) | 185 if (manager) |
| 181 manager->DetectAccountCreationForms(forms); | 186 manager->DetectAccountCreationForms(forms); |
| 182 } | 187 } |
| 183 | 188 |
| 184 void ChromeAutofillClient::DidFillOrPreviewField( | 189 void ChromeAutofillClient::DidFillOrPreviewField( |
| 185 const base::string16& autofilled_value, | 190 const base::string16& autofilled_value, |
| 186 const base::string16& profile_full_name) { | 191 const base::string16& profile_full_name) { |
| 187 #if defined(OS_ANDROID) | 192 #if defined(OS_ANDROID) |
| 188 AutofillLoggerAndroid::DidFillOrPreviewField(autofilled_value, | 193 AutofillLoggerAndroid::DidFillOrPreviewField(autofilled_value, |
| 189 profile_full_name); | 194 profile_full_name); |
| 190 #endif // defined(OS_ANDROID) | 195 #endif // defined(OS_ANDROID) |
| 191 } | 196 } |
| 192 | 197 |
| 193 } // namespace autofill | 198 } // namespace autofill |
| OLD | NEW |