 Chromium Code Reviews
 Chromium Code Reviews Issue 2814173002:
  [Web Payments] Prettify the payment sheet rows in some states.  (Closed)
    
  
    Issue 2814173002:
  [Web Payments] Prettify the payment sheet rows in some states.  (Closed) 
  | OLD | NEW | 
|---|---|
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 #ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_ROW_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_ROW_VIEW_H_ | 
| 6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_ROW_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_ROW_VIEW_H_ | 
| 7 | 7 | 
| 8 #include "base/macros.h" | 8 #include "base/macros.h" | 
| 9 #include "ui/views/controls/button/custom_button.h" | 9 #include "ui/views/controls/button/custom_button.h" | 
| 10 | 10 | 
| 11 namespace payments { | 11 namespace payments { | 
| 12 | 12 | 
| 13 // This class implements a clickable row of the Payment Request dialog that | 13 // This class implements a clickable row of the Payment Request dialog that | 
| 14 // darkens on hover and displays a horizontal ruler on its lower bound. | 14 // darkens on hover and displays a horizontal ruler on its lower bound. | 
| 15 class PaymentRequestRowView : public views::CustomButton { | 15 class PaymentRequestRowView : public views::CustomButton { | 
| 16 public: | 16 public: | 
| 17 explicit PaymentRequestRowView(views::ButtonListener* listener); | 17 explicit PaymentRequestRowView(views::ButtonListener* listener, | 
| 
Mathieu
2017/04/13 00:12:44
let's add a comment on the constructor which expla
 
Mathieu
2017/04/13 00:12:44
no explicit
 
anthonyvd
2017/04/13 18:33:33
Done
 | |
| 18 bool clickable); | |
| 18 ~PaymentRequestRowView() override; | 19 ~PaymentRequestRowView() override; | 
| 19 | 20 | 
| 20 // views::CustomButton: | 21 // views::CustomButton: | 
| 21 void StateChanged(ButtonState old_state) override; | 22 void StateChanged(ButtonState old_state) override; | 
| 22 | 23 | 
| 23 private: | 24 private: | 
| 25 bool clickable_; | |
| 26 | |
| 24 DISALLOW_COPY_AND_ASSIGN(PaymentRequestRowView); | 27 DISALLOW_COPY_AND_ASSIGN(PaymentRequestRowView); | 
| 25 }; | 28 }; | 
| 26 | 29 | 
| 27 } // namespace payments | 30 } // namespace payments | 
| 28 | 31 | 
| 29 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_ROW_VIEW_H_ | 32 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_ROW_VIEW_H_ | 
| OLD | NEW |