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

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

Issue 2744463002: Add VectorIconButton functionality to ImageButton. (Closed)
Patch Set: check details Created 3 years, 9 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 1024d2bfef22c02e40c2e08795e2351472f1c048..655c91d21aa7432a387273901fd5454e77c72c8f 100644
--- a/chrome/browser/ui/views/payments/payment_request_sheet_controller.h
+++ b/chrome/browser/ui/views/payments/payment_request_sheet_controller.h
@@ -8,10 +8,9 @@
#include <memory>
#include "base/macros.h"
-#include "ui/views/controls/button/vector_icon_button_delegate.h"
+#include "ui/views/controls/button/button.h"
namespace views {
-class Button;
class View;
}
@@ -23,7 +22,7 @@ class PaymentRequestState;
// The base class for objects responsible for the creation and event handling in
// views shown in the PaymentRequestDialog.
-class PaymentRequestSheetController : public views::VectorIconButtonDelegate {
+class PaymentRequestSheetController : public views::ButtonListener {
public:
// Objects of this class are owned by |dialog|, so it's a non-owned pointer
// that should be valid throughout this object's lifetime.
@@ -65,7 +64,7 @@ class PaymentRequestSheetController : public views::VectorIconButtonDelegate {
// +---------------------------+
virtual std::unique_ptr<views::View> CreateExtraFooterView();
- // views::VectorIconButtonDelegate:
+ // views::ButtonListener:
void ButtonPressed(views::Button* sender, const ui::Event& event) override;
// Creates a view to be displayed in the PaymentRequestDialog.

Powered by Google App Engine
This is Rietveld 408576698