OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ | 5 #ifndef CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ |
6 #define CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ | 6 #define CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 | 156 |
157 // Was the query node autofilled prior to previewing the form? | 157 // Was the query node autofilled prior to previewing the form? |
158 bool was_query_node_autofilled_; | 158 bool was_query_node_autofilled_; |
159 | 159 |
160 // The menu index of the "Clear" menu item. | 160 // The menu index of the "Clear" menu item. |
161 int suggestions_clear_index_; | 161 int suggestions_clear_index_; |
162 | 162 |
163 // The menu index of the "Autofill options..." menu item. | 163 // The menu index of the "Autofill options..." menu item. |
164 int suggestions_options_index_; | 164 int suggestions_options_index_; |
165 | 165 |
| 166 // Have we already shown Autofill suggestions for the field the user is |
| 167 // currently editing? Used to keep track of state for metrics logging. |
| 168 bool has_shown_autofill_popup_for_current_edit_; |
| 169 |
166 ScopedRunnableMethodFactory<AutofillAgent> method_factory_; | 170 ScopedRunnableMethodFactory<AutofillAgent> method_factory_; |
167 | 171 |
168 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); | 172 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); |
169 }; | 173 }; |
170 | 174 |
171 } // namespace autofill | 175 } // namespace autofill |
172 | 176 |
173 #endif // CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ | 177 #endif // CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ |
OLD | NEW |