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

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: addressed comments 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 56220237fdd5687482e67027a05a6f2899f53bf8..1b498910d068ad2b5d15bfa0d6fc55e21480d8ce 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;
}
@@ -46,6 +47,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