| 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 int query_id_; | 125 int query_id_; |
| 126 | 126 |
| 127 // The current form and field selected by Autofill. | 127 // The current form and field selected by Autofill. |
| 128 FormData query_form_; | 128 FormData query_form_; |
| 129 FormFieldData query_field_; | 129 FormFieldData query_field_; |
| 130 | 130 |
| 131 // The bounds of the form field that user is interacting with. | 131 // The bounds of the form field that user is interacting with. |
| 132 gfx::RectF element_bounds_; | 132 gfx::RectF element_bounds_; |
| 133 | 133 |
| 134 // Does the popup include any Autofill profile or credit card suggestions? | 134 // Does the popup include any Autofill profile or credit card suggestions? |
| 135 bool has_suggestion_; | 135 bool has_autofill_suggestions_; |
| 136 | 136 |
| 137 // Have we already shown Autofill suggestions for the field the user is | 137 // Have we already shown Autofill suggestions for the field the user is |
| 138 // currently editing? Used to keep track of state for metrics logging. | 138 // currently editing? Used to keep track of state for metrics logging. |
| 139 bool has_shown_popup_for_current_edit_; | 139 bool has_shown_popup_for_current_edit_; |
| 140 | 140 |
| 141 // FIXME | 141 // FIXME |
| 142 bool should_show_scan_credit_card_; | 142 bool should_show_scan_credit_card_; |
| 143 | 143 |
| 144 // Whether the credit card signin promo should be shown to the user. | 144 // Whether the credit card signin promo should be shown to the user. |
| 145 bool should_show_cc_signin_promo_; | 145 bool should_show_cc_signin_promo_; |
| 146 | 146 |
| 147 // Whether the access Address Book prompt has ever been shown for the current | 147 // Whether the access Address Book prompt has ever been shown for the current |
| 148 // |query_form_|. This variable is only used on OSX. | 148 // |query_form_|. This variable is only used on OSX. |
| 149 bool has_shown_address_book_prompt; | 149 bool has_shown_address_book_prompt; |
| 150 | 150 |
| 151 // The current data list values. | 151 // The current data list values. |
| 152 std::vector<base::string16> data_list_values_; | 152 std::vector<base::string16> data_list_values_; |
| 153 std::vector<base::string16> data_list_labels_; | 153 std::vector<base::string16> data_list_labels_; |
| 154 | 154 |
| 155 base::WeakPtrFactory<AutofillExternalDelegate> weak_ptr_factory_; | 155 base::WeakPtrFactory<AutofillExternalDelegate> weak_ptr_factory_; |
| 156 | 156 |
| 157 DISALLOW_COPY_AND_ASSIGN(AutofillExternalDelegate); | 157 DISALLOW_COPY_AND_ASSIGN(AutofillExternalDelegate); |
| 158 }; | 158 }; |
| 159 | 159 |
| 160 } // namespace autofill | 160 } // namespace autofill |
| 161 | 161 |
| 162 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ | 162 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ |
| OLD | NEW |