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

Unified Diff: chrome/browser/ui/views/payments/payment_request_views_util.h

Issue 2698353002: [Payments] Add the "Cards accepted" row at the top of CC editor. (Closed)
Patch Set: private Created 3 years, 10 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: chrome/browser/ui/views/payments/payment_request_views_util.h
diff --git a/chrome/browser/ui/views/payments/payment_request_views_util.h b/chrome/browser/ui/views/payments/payment_request_views_util.h
index de9c6a3bf0110b83bd558a65760778c27e575d0d..016e9c726d8099a15721cdf8afa9770987cb066f 100644
--- a/chrome/browser/ui/views/payments/payment_request_views_util.h
+++ b/chrome/browser/ui/views/payments/payment_request_views_util.h
@@ -16,6 +16,7 @@ class AutofillProfile;
namespace views {
class Border;
+class ImageView;
class VectorIconButtonDelegate;
class View;
}
@@ -49,6 +50,11 @@ std::unique_ptr<views::View> CreateSheetHeaderView(
const base::string16& title,
views::VectorIconButtonDelegate* delegate);
+// Returns a card image view for the given |card_type|. Includes a rounded rect
+// border. Callers need to set the size of the resulting ImageView.
+std::unique_ptr<views::ImageView> CreateCardIconView(
+ const std::string& card_type);
+
// Represents formatting options for each of the different contexts in which an
// Address label may be displayed.
enum class AddressStyleType { SUMMARY, DETAILED };

Powered by Google App Engine
This is Rietveld 408576698