| 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 #ifndef COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ | 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ |
| 6 #define COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ | 6 #define COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 // to be displayed. Called when an Autofill query result is available. | 75 // to be displayed. Called when an Autofill query result is available. |
| 76 virtual void OnSuggestionsReturned( | 76 virtual void OnSuggestionsReturned( |
| 77 int query_id, | 77 int query_id, |
| 78 const std::vector<base::string16>& autofill_values, | 78 const std::vector<base::string16>& autofill_values, |
| 79 const std::vector<base::string16>& autofill_labels, | 79 const std::vector<base::string16>& autofill_labels, |
| 80 const std::vector<base::string16>& autofill_icons, | 80 const std::vector<base::string16>& autofill_icons, |
| 81 const std::vector<int>& autofill_unique_ids); | 81 const std::vector<int>& autofill_unique_ids); |
| 82 | 82 |
| 83 // Show password suggestions in the popup. | 83 // Show password suggestions in the popup. |
| 84 void OnShowPasswordSuggestions(const std::vector<base::string16>& suggestions, | 84 void OnShowPasswordSuggestions(const std::vector<base::string16>& suggestions, |
| 85 const std::vector<base::string16>& realms, |
| 85 const FormFieldData& field, | 86 const FormFieldData& field, |
| 86 const gfx::RectF& bounds); | 87 const gfx::RectF& bounds); |
| 87 | 88 |
| 88 // Set the data list value associated with the current field. | 89 // Set the data list value associated with the current field. |
| 89 void SetCurrentDataListValues( | 90 void SetCurrentDataListValues( |
| 90 const std::vector<base::string16>& autofill_values, | 91 const std::vector<base::string16>& autofill_values, |
| 91 const std::vector<base::string16>& autofill_labels, | 92 const std::vector<base::string16>& autofill_labels, |
| 92 const std::vector<base::string16>& autofill_icons, | 93 const std::vector<base::string16>& autofill_icons, |
| 93 const std::vector<int>& autofill_unique_ids); | 94 const std::vector<int>& autofill_unique_ids); |
| 94 | 95 |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 std::vector<int> data_list_unique_ids_; | 191 std::vector<int> data_list_unique_ids_; |
| 191 | 192 |
| 192 base::WeakPtrFactory<AutofillExternalDelegate> weak_ptr_factory_; | 193 base::WeakPtrFactory<AutofillExternalDelegate> weak_ptr_factory_; |
| 193 | 194 |
| 194 DISALLOW_COPY_AND_ASSIGN(AutofillExternalDelegate); | 195 DISALLOW_COPY_AND_ASSIGN(AutofillExternalDelegate); |
| 195 }; | 196 }; |
| 196 | 197 |
| 197 } // namespace autofill | 198 } // namespace autofill |
| 198 | 199 |
| 199 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ | 200 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ |
| OLD | NEW |