| 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/core/browser/autofill_external_delegate.h" | 5 #include "components/autofill/core/browser/autofill_external_delegate.h" |
| 6 | 6 |
| 7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
| 8 #include "components/autofill/core/browser/autocomplete_history_manager.h" | 8 #include "components/autofill/core/browser/autocomplete_history_manager.h" |
| 9 #include "components/autofill/core/browser/autofill_driver.h" | 9 #include "components/autofill/core/browser/autofill_driver.h" |
| 10 #include "components/autofill/core/browser/autofill_manager.h" | 10 #include "components/autofill/core/browser/autofill_manager.h" |
| 11 #include "content/public/browser/web_contents.h" | |
| 12 #include "grit/component_strings.h" | 11 #include "grit/component_strings.h" |
| 13 #include "third_party/WebKit/public/web/WebAutofillClient.h" | 12 #include "third_party/WebKit/public/web/WebAutofillClient.h" |
| 14 #include "ui/base/l10n/l10n_util.h" | 13 #include "ui/base/l10n/l10n_util.h" |
| 15 | 14 |
| 16 using blink::WebAutofillClient; | 15 using blink::WebAutofillClient; |
| 17 | 16 |
| 18 namespace autofill { | 17 namespace autofill { |
| 19 | 18 |
| 20 AutofillExternalDelegate::AutofillExternalDelegate( | 19 AutofillExternalDelegate::AutofillExternalDelegate( |
| 21 content::WebContents* web_contents, | |
| 22 AutofillManager* autofill_manager, | 20 AutofillManager* autofill_manager, |
| 23 AutofillDriver* autofill_driver) | 21 AutofillDriver* autofill_driver) |
| 24 : autofill_manager_(autofill_manager), | 22 : autofill_manager_(autofill_manager), |
| 25 autofill_driver_(autofill_driver), | 23 autofill_driver_(autofill_driver), |
| 26 password_autofill_manager_(web_contents), | 24 password_autofill_manager_(autofill_driver), |
| 27 autofill_query_id_(0), | 25 autofill_query_id_(0), |
| 28 display_warning_if_disabled_(false), | 26 display_warning_if_disabled_(false), |
| 29 has_autofill_suggestion_(false), | 27 has_autofill_suggestion_(false), |
| 30 has_shown_autofill_popup_for_current_edit_(false), | 28 has_shown_autofill_popup_for_current_edit_(false), |
| 31 weak_ptr_factory_(this) { | 29 weak_ptr_factory_(this) { |
| 32 DCHECK(autofill_manager); | 30 DCHECK(autofill_manager); |
| 33 } | 31 } |
| 34 | 32 |
| 35 AutofillExternalDelegate::~AutofillExternalDelegate() {} | 33 AutofillExternalDelegate::~AutofillExternalDelegate() {} |
| 36 | 34 |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 // Set the values that all datalist elements share. | 349 // Set the values that all datalist elements share. |
| 352 autofill_icons->insert(autofill_icons->begin(), | 350 autofill_icons->insert(autofill_icons->begin(), |
| 353 data_list_values_.size(), | 351 data_list_values_.size(), |
| 354 base::string16()); | 352 base::string16()); |
| 355 autofill_unique_ids->insert(autofill_unique_ids->begin(), | 353 autofill_unique_ids->insert(autofill_unique_ids->begin(), |
| 356 data_list_values_.size(), | 354 data_list_values_.size(), |
| 357 WebAutofillClient::MenuItemIDDataListEntry); | 355 WebAutofillClient::MenuItemIDDataListEntry); |
| 358 } | 356 } |
| 359 | 357 |
| 360 } // namespace autofill | 358 } // namespace autofill |
| OLD | NEW |