| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/tab_autofill_manager_delegate.h" | 5 #include "chrome/browser/ui/autofill/tab_autofill_manager_delegate.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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 HideRequestAutocompleteDialog(); | 101 HideRequestAutocompleteDialog(); |
| 102 | 102 |
| 103 dialog_controller_ = AutofillDialogController::Create(web_contents_, | 103 dialog_controller_ = AutofillDialogController::Create(web_contents_, |
| 104 form, | 104 form, |
| 105 source_url, | 105 source_url, |
| 106 callback); | 106 callback); |
| 107 if (dialog_controller_) { | 107 if (dialog_controller_) { |
| 108 dialog_controller_->Show(); | 108 dialog_controller_->Show(); |
| 109 } else { | 109 } else { |
| 110 callback.Run(AutofillManagerDelegate::AutocompleteResultErrorDisabled, | 110 callback.Run(AutofillManagerDelegate::AutocompleteResultErrorDisabled, |
| 111 base::string16(), |
| 111 NULL); | 112 NULL); |
| 112 NOTIMPLEMENTED(); | 113 NOTIMPLEMENTED(); |
| 113 } | 114 } |
| 114 } | 115 } |
| 115 | 116 |
| 116 void TabAutofillManagerDelegate::ShowAutofillPopup( | 117 void TabAutofillManagerDelegate::ShowAutofillPopup( |
| 117 const gfx::RectF& element_bounds, | 118 const gfx::RectF& element_bounds, |
| 118 base::i18n::TextDirection text_direction, | 119 base::i18n::TextDirection text_direction, |
| 119 const std::vector<base::string16>& values, | 120 const std::vector<base::string16>& values, |
| 120 const std::vector<base::string16>& labels, | 121 const std::vector<base::string16>& labels, |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 void TabAutofillManagerDelegate::DidFillOrPreviewField( | 186 void TabAutofillManagerDelegate::DidFillOrPreviewField( |
| 186 const base::string16& autofilled_value, | 187 const base::string16& autofilled_value, |
| 187 const base::string16& profile_full_name) { | 188 const base::string16& profile_full_name) { |
| 188 #if defined(OS_ANDROID) | 189 #if defined(OS_ANDROID) |
| 189 AutofillLoggerAndroid::DidFillOrPreviewField( | 190 AutofillLoggerAndroid::DidFillOrPreviewField( |
| 190 autofilled_value, profile_full_name); | 191 autofilled_value, profile_full_name); |
| 191 #endif // defined(OS_ANDROID) | 192 #endif // defined(OS_ANDROID) |
| 192 } | 193 } |
| 193 | 194 |
| 194 } // namespace autofill | 195 } // namespace autofill |
| OLD | NEW |