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

Unified Diff: components/autofill/core/browser/autofill_client.h

Issue 1396923003: Autofill: Replace "save credit card" infobar with a bubble (Views only). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months 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 side-by-side diff with in-line comments
Download patch
Index: components/autofill/core/browser/autofill_client.h
diff --git a/components/autofill/core/browser/autofill_client.h b/components/autofill/core/browser/autofill_client.h
index b89acc9df699e8e8ac614d24d35f2a51002d9ae4..1d37dc2c2878330e7f7a7957bf9fcd8b7ecd831a 100644
--- a/components/autofill/core/browser/autofill_client.h
+++ b/components/autofill/core/browser/autofill_client.h
@@ -122,6 +122,15 @@ class AutofillClient {
virtual void ConfirmSaveCreditCard(
const base::Closure& save_card_callback) = 0;
+ // Causes the "Save credit card?" bubble to be shown.
+ virtual void ShowSaveCreditCardBubble() = 0;
+
+ // Returns true if "Save credit card?" Omnibox icon should be visible.
+ virtual bool WantSaveCreditCardIconVisible() = 0;
+
+ // Returns true if icon should be in its "toggled on" state.
+ virtual bool WantSaveCreditCardIconToggled() = 0;
+
// Returns true if both the platform and the device support scanning credit
// cards. Should be called before ScanCreditCard().
virtual bool HasCreditCardScanFeature() = 0;

Powered by Google App Engine
This is Rietveld 408576698