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

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

Issue 2853163002: [Web Payments] Implement proper focusing in Payment Request (Closed)
Patch Set: Address comments. 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 e9829db41cbf030cb48498805878cfd750bb41f7..7968f942c74375081364a37e7cb7043db931edab 100644
--- a/chrome/browser/ui/views/payments/payment_request_row_view.h
+++ b/chrome/browser/ui/views/payments/payment_request_row_view.h
@@ -19,10 +19,18 @@ class PaymentRequestRowView : public views::CustomButton {
PaymentRequestRowView(views::ButtonListener* listener, bool clickable);
~PaymentRequestRowView() override;
+ private:
+ // Sets this row's background to the theme's hovered color to indicate that
+ // it's begin hovered or it's focused.
+ void SetActiveBackground();
+
// views::CustomButton:
void StateChanged(ButtonState old_state) override;
- private:
+ // views::View:
+ void OnFocus() override;
+ void OnBlur() override;
+
bool clickable_;
DISALLOW_COPY_AND_ASSIGN(PaymentRequestRowView);

Powered by Google App Engine
This is Rietveld 408576698