Chromium Code Reviews| 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_RENDERER_AUTOFILL_AGENT_H_ | 5 #ifndef COMPONENTS_AUTOFILL_RENDERER_AUTOFILL_AGENT_H_ |
| 6 #define COMPONENTS_AUTOFILL_RENDERER_AUTOFILL_AGENT_H_ | 6 #define COMPONENTS_AUTOFILL_RENDERER_AUTOFILL_AGENT_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 249 // Watchdog timer for clicking in Autocheckout flows. | 249 // Watchdog timer for clicking in Autocheckout flows. |
| 250 base::OneShotTimer<AutofillAgent> click_timer_; | 250 base::OneShotTimer<AutofillAgent> click_timer_; |
| 251 | 251 |
| 252 // Used to signal that we need to watch for loading failures in an | 252 // Used to signal that we need to watch for loading failures in an |
| 253 // Autocheckout flow. | 253 // Autocheckout flow. |
| 254 bool autocheckout_click_in_progress_; | 254 bool autocheckout_click_in_progress_; |
| 255 | 255 |
| 256 // Whether or not |topmost_frame_| is whitelisted for Autocheckout. | 256 // Whether or not |topmost_frame_| is whitelisted for Autocheckout. |
| 257 bool is_whitelisted_for_autocheckout_; | 257 bool is_whitelisted_for_autocheckout_; |
| 258 | 258 |
| 259 // Whether or not new forms/fields have been dynamical added post-document loa d | |
|
ahutter
2013/03/29 19:48:31
dynamically and add punctuation
Dane Wallinga
2013/03/29 21:41:12
Done.
| |
| 260 bool forms_have_changed_since_load_; | |
| 261 | |
| 259 // Whether or not to ignore text changes. Useful for when we're committing | 262 // Whether or not to ignore text changes. Useful for when we're committing |
| 260 // a composition when we are defocusing the WebView and we don't want to | 263 // a composition when we are defocusing the WebView and we don't want to |
| 261 // trigger an autofill popup to show. | 264 // trigger an autofill popup to show. |
| 262 bool ignore_text_changes_; | 265 bool ignore_text_changes_; |
| 263 | 266 |
| 264 // Timestamp of first time forms are seen. | 267 // Timestamp of first time forms are seen. |
| 265 base::TimeTicks forms_seen_timestamp_; | 268 base::TimeTicks forms_seen_timestamp_; |
| 266 | 269 |
| 267 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_; | 270 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_; |
| 268 | 271 |
| 272 virtual void didAssociateFormControls(const WebKit::WebVector<WebKit::WebNode> & nodes) OVERRIDE; | |
| 273 | |
| 269 friend class PasswordAutofillManagerTest; | 274 friend class PasswordAutofillManagerTest; |
| 270 FRIEND_TEST_ALL_PREFIXES(ChromeRenderViewTest, FillFormElement); | 275 FRIEND_TEST_ALL_PREFIXES(ChromeRenderViewTest, FillFormElement); |
| 271 FRIEND_TEST_ALL_PREFIXES(ChromeRenderViewTest, SendForms); | 276 FRIEND_TEST_ALL_PREFIXES(ChromeRenderViewTest, SendForms); |
| 272 FRIEND_TEST_ALL_PREFIXES(ChromeRenderViewTest, ShowAutofillWarning); | 277 FRIEND_TEST_ALL_PREFIXES(ChromeRenderViewTest, ShowAutofillWarning); |
| 273 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, WaitUsername); | 278 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, WaitUsername); |
| 274 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionAccept); | 279 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionAccept); |
| 275 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionSelect); | 280 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionSelect); |
| 276 | 281 |
| 277 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); | 282 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); |
| 278 }; | 283 }; |
| 279 | 284 |
| 280 } // namespace autofill | 285 } // namespace autofill |
| 281 | 286 |
| 282 #endif // COMPONENTS_AUTOFILL_RENDERER_AUTOFILL_AGENT_H_ | 287 #endif // COMPONENTS_AUTOFILL_RENDERER_AUTOFILL_AGENT_H_ |
| OLD | NEW |