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_EXTERNAL_DELEGATE_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ |
| 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 84 void OnPingAck(); | 84 void OnPingAck(); |
| 85 | 85 |
| 86 protected: | 86 protected: |
| 87 base::WeakPtr<AutofillExternalDelegate> GetWeakPtr(); | 87 base::WeakPtr<AutofillExternalDelegate> GetWeakPtr(); |
| 88 | 88 |
| 89 private: | 89 private: |
| 90 FRIEND_TEST_ALL_PREFIXES(AutofillExternalDelegateUnitTest, | 90 FRIEND_TEST_ALL_PREFIXES(AutofillExternalDelegateUnitTest, |
| 91 FillCreditCardForm); | 91 FillCreditCardForm); |
| 92 | 92 |
| 93 // Called when a credit card is scanned using device camera. | 93 // Called when a credit card is scanned using device camera. |
| 94 void OnCreditCardScanned(const base::string16& card_number, | 94 void OnCreditCardScanned(const base::string16& card_holder_name, |
|
Evan Stade
2016/08/16 00:33:35
is there a reason this doesn't just take a CreditC
please use gerrit instead
2016/08/16 22:03:18
No reason. Changed to take a card.
Evan Stade
2016/08/17 06:30:57
nice
| |
| 95 const base::string16& card_number, | |
| 95 int expiration_month, | 96 int expiration_month, |
| 96 int expiration_year); | 97 int expiration_year); |
| 97 | 98 |
| 98 // Fills the form with the Autofill data corresponding to |unique_id|. | 99 // Fills the form with the Autofill data corresponding to |unique_id|. |
| 99 // If |is_preview| is true then this is just a preview to show the user what | 100 // If |is_preview| is true then this is just a preview to show the user what |
| 100 // would be selected and if |is_preview| is false then the user has selected | 101 // would be selected and if |is_preview| is false then the user has selected |
| 101 // this data. | 102 // this data. |
| 102 void FillAutofillFormData(int unique_id, bool is_preview); | 103 void FillAutofillFormData(int unique_id, bool is_preview); |
| 103 | 104 |
| 104 // Handle applying any Autofill warnings to the Autofill popup. | 105 // Handle applying any Autofill warnings to the Autofill popup. |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 154 std::vector<base::string16> data_list_labels_; | 155 std::vector<base::string16> data_list_labels_; |
| 155 | 156 |
| 156 base::WeakPtrFactory<AutofillExternalDelegate> weak_ptr_factory_; | 157 base::WeakPtrFactory<AutofillExternalDelegate> weak_ptr_factory_; |
| 157 | 158 |
| 158 DISALLOW_COPY_AND_ASSIGN(AutofillExternalDelegate); | 159 DISALLOW_COPY_AND_ASSIGN(AutofillExternalDelegate); |
| 159 }; | 160 }; |
| 160 | 161 |
| 161 } // namespace autofill | 162 } // namespace autofill |
| 162 | 163 |
| 163 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ | 164 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ |
| OLD | NEW |