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_CONTENT_RENDERER_AUTOFILL_AGENT_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ |
6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ | 6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 | 262 |
263 // The form element currently requesting an interactive autocomplete. | 263 // The form element currently requesting an interactive autocomplete. |
264 blink::WebFormElement in_flight_request_form_; | 264 blink::WebFormElement in_flight_request_form_; |
265 | 265 |
266 // Last form which was interacted with by the user. | 266 // Last form which was interacted with by the user. |
267 blink::WebFormElement last_interacted_form_; | 267 blink::WebFormElement last_interacted_form_; |
268 | 268 |
269 // Was the query node autofilled prior to previewing the form? | 269 // Was the query node autofilled prior to previewing the form? |
270 bool was_query_node_autofilled_; | 270 bool was_query_node_autofilled_; |
271 | 271 |
272 // Have we already shown Autofill suggestions for the field the user is | |
273 // currently editing? Used to keep track of state for metrics logging. | |
274 bool has_shown_autofill_popup_for_current_edit_; | |
275 | |
276 // Whether or not to ignore text changes. Useful for when we're committing | 272 // Whether or not to ignore text changes. Useful for when we're committing |
277 // a composition when we are defocusing the WebView and we don't want to | 273 // a composition when we are defocusing the WebView and we don't want to |
278 // trigger an autofill popup to show. | 274 // trigger an autofill popup to show. |
279 bool ignore_text_changes_; | 275 bool ignore_text_changes_; |
280 | 276 |
281 // Whether the Autofill popup is possibly visible. This is tracked as a | 277 // Whether the Autofill popup is possibly visible. This is tracked as a |
282 // performance improvement, so that the IPC channel isn't flooded with | 278 // performance improvement, so that the IPC channel isn't flooded with |
283 // messages to close the Autofill popup when it can't possibly be showing. | 279 // messages to close the Autofill popup when it can't possibly be showing. |
284 bool is_popup_possibly_visible_; | 280 bool is_popup_possibly_visible_; |
285 | 281 |
286 // If the generation popup is possibly visible. This is tracked to prevent | 282 // If the generation popup is possibly visible. This is tracked to prevent |
287 // generation UI from displaying at the same time as password manager UI. | 283 // generation UI from displaying at the same time as password manager UI. |
288 // This is needed because generation is shown on field focus vs. field click | 284 // This is needed because generation is shown on field focus vs. field click |
289 // for the password manager. TODO(gcasto): Have both UIs show on focus. | 285 // for the password manager. TODO(gcasto): Have both UIs show on focus. |
290 bool is_generation_popup_possibly_visible_; | 286 bool is_generation_popup_possibly_visible_; |
291 | 287 |
292 mojo::BindingSet<mojom::AutofillAgent> bindings_; | 288 mojo::BindingSet<mojom::AutofillAgent> bindings_; |
293 | 289 |
294 mojom::AutofillDriverPtr mojo_autofill_driver_; | 290 mojom::AutofillDriverPtr mojo_autofill_driver_; |
295 | 291 |
296 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_; | 292 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_; |
297 | 293 |
298 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); | 294 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); |
299 }; | 295 }; |
300 | 296 |
301 } // namespace autofill | 297 } // namespace autofill |
302 | 298 |
303 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ | 299 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ |
OLD | NEW |