Chromium Code Reviews| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 76 AutofillManager(AutofillDriver* driver, | 76 AutofillManager(AutofillDriver* driver, |
| 77 autofill::AutofillManagerDelegate* delegate, | 77 autofill::AutofillManagerDelegate* delegate, |
| 78 const std::string& app_locale, | 78 const std::string& app_locale, |
| 79 AutofillDownloadManagerState enable_download_manager); | 79 AutofillDownloadManagerState enable_download_manager); |
| 80 virtual ~AutofillManager(); | 80 virtual ~AutofillManager(); |
| 81 | 81 |
| 82 // Sets an external delegate. | 82 // Sets an external delegate. |
| 83 void SetExternalDelegate(AutofillExternalDelegate* delegate); | 83 void SetExternalDelegate(AutofillExternalDelegate* delegate); |
| 84 | 84 |
| 85 void ShowAutofillSettings(); | 85 void ShowAutofillSettings(); |
| 86 // Whether an autofill cell should be shown to prompt the user to give | |
| 87 // Chromium access to the user's address book, given a particular form field | |
| 88 // inside of a form. | |
| 89 bool ShouldShowAccessMacContacts(const FormData& data, | |
| 90 const FormFieldData& fieldData); | |
|
Ilya Sherman
2014/05/16 22:54:02
This method is too closely tied to the UI. Instea
erikchen
2014/05/19 20:58:32
I've done as you've suggested and split the logic
| |
| 91 // Invokes the system prompt to give Chromium access to the user's address | |
| 92 // book. This method is blocking. | |
| 93 void AccessMacContacts(); | |
|
Ilya Sherman
2014/05/16 22:54:02
These methods should only be available on Mac OS X
erikchen
2014/05/19 20:58:32
I've added #if defined(OS_MACOSX) to all the mac s
| |
| 86 | 94 |
| 87 // Called from our external delegate so they cannot be private. | 95 // Called from our external delegate so they cannot be private. |
| 88 virtual void FillOrPreviewForm(AutofillDriver::RendererFormDataAction action, | 96 virtual void FillOrPreviewForm(AutofillDriver::RendererFormDataAction action, |
| 89 int query_id, | 97 int query_id, |
| 90 const FormData& form, | 98 const FormData& form, |
| 91 const FormFieldData& field, | 99 const FormFieldData& field, |
| 92 int unique_id); | 100 int unique_id); |
| 93 void DidShowSuggestions(bool is_new_popup); | 101 void DidShowSuggestions(bool is_new_popup); |
| 94 void OnDidFillAutofillFormData(const base::TimeTicks& timestamp); | 102 void OnDidFillAutofillFormData(const base::TimeTicks& timestamp); |
| 95 void OnDidPreviewAutofillFormData(); | 103 void OnDidPreviewAutofillFormData(); |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 357 UserHappinessFormLoadAndSubmission); | 365 UserHappinessFormLoadAndSubmission); |
| 358 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); | 366 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); |
| 359 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, | 367 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, |
| 360 FormSubmittedAutocompleteEnabled); | 368 FormSubmittedAutocompleteEnabled); |
| 361 DISALLOW_COPY_AND_ASSIGN(AutofillManager); | 369 DISALLOW_COPY_AND_ASSIGN(AutofillManager); |
| 362 }; | 370 }; |
| 363 | 371 |
| 364 } // namespace autofill | 372 } // namespace autofill |
| 365 | 373 |
| 366 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ | 374 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ |
| OLD | NEW |