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

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

Issue 2814173002: [Web Payments] Prettify the payment sheet rows in some states. (Closed)
Patch Set: Rebase Created 3 years, 8 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
index e331d1e560f9214f8a2f23f3dd3f4a284720b20f..e9829db41cbf030cb48498805878cfd750bb41f7 100644
--- a/chrome/browser/ui/views/payments/payment_request_row_view.h
+++ b/chrome/browser/ui/views/payments/payment_request_row_view.h
@@ -14,13 +14,17 @@ namespace payments {
// darkens on hover and displays a horizontal ruler on its lower bound.
class PaymentRequestRowView : public views::CustomButton {
public:
- explicit PaymentRequestRowView(views::ButtonListener* listener);
+ // Creates a row view. If |clickable| is true, the row will be shaded on hover
+ // and handle click events.
+ PaymentRequestRowView(views::ButtonListener* listener, bool clickable);
~PaymentRequestRowView() override;
// views::CustomButton:
void StateChanged(ButtonState old_state) override;
private:
+ bool clickable_;
+
DISALLOW_COPY_AND_ASSIGN(PaymentRequestRowView);
};

Powered by Google App Engine
This is Rietveld 408576698