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

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

Issue 2866443002: [Web Payments] Handle "Enter" accelerator when there's a primary action (Closed)
Patch Set: Created 3 years, 7 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_sheet_controller.h
diff --git a/chrome/browser/ui/views/payments/payment_request_sheet_controller.h b/chrome/browser/ui/views/payments/payment_request_sheet_controller.h
index 3a3eacba56a3030b75d09005e3a36f5cbd427e66..c546ce7d0e71dbc8066504a0450bfb94458b974c 100644
--- a/chrome/browser/ui/views/payments/payment_request_sheet_controller.h
+++ b/chrome/browser/ui/views/payments/payment_request_sheet_controller.h
@@ -118,6 +118,11 @@ class PaymentRequestSheetController : public views::ButtonListener {
// +---------------------------+
std::unique_ptr<views::View> CreatePaymentView();
+ // Called when the Enter accelerator is pressed. Perform the action associated
+ // with the primary button and returns true if it's enabled, returns false
+ // otherwise.
+ bool PerformPrimaryButtonAction();
+
// All these are not owned. Will outlive this.
PaymentRequestSpec* spec_;
PaymentRequestState* state_;

Powered by Google App Engine
This is Rietveld 408576698