| 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 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ |
| 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 // Does the popup include any Autofill profile or credit card suggestions? | 135 // Does the popup include any Autofill profile or credit card suggestions? |
| 136 bool has_suggestion_; | 136 bool has_suggestion_; |
| 137 | 137 |
| 138 // Have we already shown Autofill suggestions for the field the user is | 138 // Have we already shown Autofill suggestions for the field the user is |
| 139 // currently editing? Used to keep track of state for metrics logging. | 139 // currently editing? Used to keep track of state for metrics logging. |
| 140 bool has_shown_popup_for_current_edit_; | 140 bool has_shown_popup_for_current_edit_; |
| 141 | 141 |
| 142 // FIXME | 142 // FIXME |
| 143 bool should_show_scan_credit_card_; | 143 bool should_show_scan_credit_card_; |
| 144 | 144 |
| 145 // Whether the credit card sign-in promo should be shown to the user. |
| 146 bool should_show_cc_signin_promo_; |
| 147 |
| 145 // Whether the access Address Book prompt has ever been shown for the current | 148 // Whether the access Address Book prompt has ever been shown for the current |
| 146 // |query_form_|. This variable is only used on OSX. | 149 // |query_form_|. This variable is only used on OSX. |
| 147 bool has_shown_address_book_prompt; | 150 bool has_shown_address_book_prompt; |
| 148 | 151 |
| 149 // The current data list values. | 152 // The current data list values. |
| 150 std::vector<base::string16> data_list_values_; | 153 std::vector<base::string16> data_list_values_; |
| 151 std::vector<base::string16> data_list_labels_; | 154 std::vector<base::string16> data_list_labels_; |
| 152 | 155 |
| 153 base::WeakPtrFactory<AutofillExternalDelegate> weak_ptr_factory_; | 156 base::WeakPtrFactory<AutofillExternalDelegate> weak_ptr_factory_; |
| 154 | 157 |
| 155 DISALLOW_COPY_AND_ASSIGN(AutofillExternalDelegate); | 158 DISALLOW_COPY_AND_ASSIGN(AutofillExternalDelegate); |
| 156 }; | 159 }; |
| 157 | 160 |
| 158 } // namespace autofill | 161 } // namespace autofill |
| 159 | 162 |
| 160 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ | 163 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ |
| OLD | NEW |