Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "chrome/browser/ui/views/payments/payment_request_row_view.h" | |
| 6 | |
| 7 #include "chrome/browser/ui/views/payments/payment_request_views_util.h" | |
| 8 #include "third_party/skia/include/core/SkColor.h" | |
| 9 #include "ui/views/background.h" | |
| 10 #include "ui/views/border.h" | |
| 11 | |
| 12 namespace payments { | |
| 13 | |
| 14 PaymentRequestRowView::PaymentRequestRowView( | |
| 15 views::ButtonListener* listener) | |
| 16 : views::CustomButton(listener) { | |
| 17 SetBorder(payments::CreatePaymentRequestRowBorder()); | |
| 18 } | |
| 19 | |
| 20 // views::CustomButton: | |
| 21 void PaymentRequestRowView::StateChanged() { | |
| 22 if (state() == views::Button::STATE_HOVERED || | |
| 23 state() == views::Button::STATE_PRESSED) { | |
|
please use gerrit instead
2017/01/25 16:22:55
nit: I'd prefer hover and press to have different
anthonyvd
2017/01/25 17:56:33
Yeah the mocks aren't too specific about the diffe
| |
| 24 set_background(views::Background::CreateSolidBackground(SK_ColorLTGRAY)); | |
| 25 } else { | |
| 26 set_background(nullptr); | |
| 27 } | |
| 28 } | |
| 29 | |
| 30 } // namespace payments | |
| OLD | NEW |