| 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_MANAGER_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ |
| 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 const std::vector<base::string16>& realms); | 162 const std::vector<base::string16>& realms); |
| 163 void OnSetDataList(const std::vector<base::string16>& values, | 163 void OnSetDataList(const std::vector<base::string16>& values, |
| 164 const std::vector<base::string16>& labels, | 164 const std::vector<base::string16>& labels, |
| 165 const std::vector<base::string16>& icons, | 165 const std::vector<base::string16>& icons, |
| 166 const std::vector<int>& unique_ids); | 166 const std::vector<int>& unique_ids); |
| 167 | 167 |
| 168 // Requests an interactive autocomplete UI be shown. | 168 // Requests an interactive autocomplete UI be shown. |
| 169 void OnRequestAutocomplete(const FormData& form, | 169 void OnRequestAutocomplete(const FormData& form, |
| 170 const GURL& frame_url); | 170 const GURL& frame_url); |
| 171 | 171 |
| 172 // Called to signal clicking an element failed in some way during an | 172 // Called to signal a page is completed in renderer in the Autocheckout flow. |
| 173 // Autocheckout flow. | 173 void OnAutocheckoutPageCompleted(autofill::AutocheckoutStatus status); |
| 174 void OnClickFailed(autofill::AutocheckoutStatus status); | |
| 175 | 174 |
| 176 // Shows the Autocheckout bubble if conditions are right. See comments for | 175 // Shows the Autocheckout bubble if conditions are right. See comments for |
| 177 // AutocheckoutManager::MaybeShowAutocheckoutBubble. Input element requesting | 176 // AutocheckoutManager::MaybeShowAutocheckoutBubble. Input element requesting |
| 178 // bubble belongs to |form|. |bounding_box| is the bounding box of the input | 177 // bubble belongs to |form|. |bounding_box| is the bounding box of the input |
| 179 // field in focus. | 178 // field in focus. |
| 180 virtual void OnMaybeShowAutocheckoutBubble(const FormData& form, | 179 virtual void OnMaybeShowAutocheckoutBubble(const FormData& form, |
| 181 const gfx::RectF& bounding_box); | 180 const gfx::RectF& bounding_box); |
| 182 | 181 |
| 183 // Resets cache. | 182 // Resets cache. |
| 184 virtual void Reset(); | 183 virtual void Reset(); |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 UserHappinessFormLoadAndSubmission); | 401 UserHappinessFormLoadAndSubmission); |
| 403 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); | 402 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); |
| 404 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, | 403 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, |
| 405 FormSubmittedAutocompleteEnabled); | 404 FormSubmittedAutocompleteEnabled); |
| 406 DISALLOW_COPY_AND_ASSIGN(AutofillManager); | 405 DISALLOW_COPY_AND_ASSIGN(AutofillManager); |
| 407 }; | 406 }; |
| 408 | 407 |
| 409 } // namespace autofill | 408 } // namespace autofill |
| 410 | 409 |
| 411 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ | 410 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ |
| OLD | NEW |