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

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

Issue 2656853002: [Web Payments] Refactor the row display code. (Closed)
Patch Set: Rebase Created 3 years, 11 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_row_view.h
diff --git a/chrome/browser/ui/views/payments/payment_request_row_view.h b/chrome/browser/ui/views/payments/payment_request_row_view.h
new file mode 100644
index 0000000000000000000000000000000000000000..f8664343b8762a7c46f90a587adee8820d9eda9a
--- /dev/null
+++ b/chrome/browser/ui/views/payments/payment_request_row_view.h
@@ -0,0 +1,29 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_ROW_VIEW_H_
+#define CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_ROW_VIEW_H_
+
+#include "base/macros.h"
+#include "ui/views/controls/button/custom_button.h"
+
+namespace payments {
+
+// This class implements a clickable row of the Payment Request dialog that
+// darkens on hover and displays a horizontal ruler on its lower bound.
+class PaymentRequestRowView : public views::CustomButton {
+ public:
+ explicit PaymentRequestRowView(views::ButtonListener* listener);
+ ~PaymentRequestRowView() override;
+
+ // views::CustomButton:
+ void StateChanged() override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(PaymentRequestRowView);
+};
+
+} // namespace payments
+
+#endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_ROW_VIEW_H_

Powered by Google App Engine
This is Rietveld 408576698