Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: components/autofill/core/browser/autofill_manager.h

Issue 2531223003: Expanded Autofill Credit Card Popup Layout Experiment in Android. (Closed)
Patch Set: Fixes compile error. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <memory> 10 #include <memory>
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 89
90 // Sets an external delegate. 90 // Sets an external delegate.
91 void SetExternalDelegate(AutofillExternalDelegate* delegate); 91 void SetExternalDelegate(AutofillExternalDelegate* delegate);
92 92
93 void ShowAutofillSettings(); 93 void ShowAutofillSettings();
94 94
95 // Whether the |field| should show an entry to scan a credit card. 95 // Whether the |field| should show an entry to scan a credit card.
96 virtual bool ShouldShowScanCreditCard(const FormData& form, 96 virtual bool ShouldShowScanCreditCard(const FormData& form,
97 const FormFieldData& field); 97 const FormFieldData& field);
98 98
99 // Whether the |field| belongs to CREDIT_CARD |FieldTypeGroup|.
100 virtual bool IsCreditCardPopup(const FormData& form,
101 const FormFieldData& field);
102
99 // Whether we should show the signin promo, based on the triggered |field| 103 // Whether we should show the signin promo, based on the triggered |field|
100 // inside the |form|. 104 // inside the |form|.
101 virtual bool ShouldShowCreditCardSigninPromo(const FormData& form, 105 virtual bool ShouldShowCreditCardSigninPromo(const FormData& form,
102 const FormFieldData& field); 106 const FormFieldData& field);
103 107
104 // Called from our external delegate so they cannot be private. 108 // Called from our external delegate so they cannot be private.
105 virtual void FillOrPreviewForm(AutofillDriver::RendererFormDataAction action, 109 virtual void FillOrPreviewForm(AutofillDriver::RendererFormDataAction action,
106 int query_id, 110 int query_id,
107 const FormData& form, 111 const FormData& form,
108 const FormFieldData& field, 112 const FormFieldData& field,
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, 589 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest,
586 OnLoadedServerPredictions_ResetManager); 590 OnLoadedServerPredictions_ResetManager);
587 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, DontOfferToSavePaymentsCard); 591 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, DontOfferToSavePaymentsCard);
588 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, FillInUpdatedExpirationDate); 592 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, FillInUpdatedExpirationDate);
589 DISALLOW_COPY_AND_ASSIGN(AutofillManager); 593 DISALLOW_COPY_AND_ASSIGN(AutofillManager);
590 }; 594 };
591 595
592 } // namespace autofill 596 } // namespace autofill
593 597
594 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ 598 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_
OLDNEW
« no previous file with comments | « components/autofill/core/browser/autofill_external_delegate.cc ('k') | components/autofill/core/browser/autofill_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698