| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #include "chrome/browser/ui/views/payments/order_summary_view_controller.h" | 5 #include "chrome/browser/ui/views/payments/order_summary_view_controller.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
| 12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
| 13 #include "chrome/browser/payments/payment_request_impl.h" | |
| 14 #include "chrome/browser/ui/views/payments/payment_request_dialog.h" | 13 #include "chrome/browser/ui/views/payments/payment_request_dialog.h" |
| 15 #include "chrome/browser/ui/views/payments/payment_request_views_util.h" | 14 #include "chrome/browser/ui/views/payments/payment_request_views_util.h" |
| 16 #include "chrome/grit/generated_resources.h" | 15 #include "chrome/grit/generated_resources.h" |
| 16 #include "components/payments/payment_request_impl.h" |
| 17 #include "components/strings/grit/components_strings.h" | 17 #include "components/strings/grit/components_strings.h" |
| 18 #include "ui/base/l10n/l10n_util.h" | 18 #include "ui/base/l10n/l10n_util.h" |
| 19 #include "ui/views/controls/label.h" | 19 #include "ui/views/controls/label.h" |
| 20 #include "ui/views/layout/grid_layout.h" | 20 #include "ui/views/layout/grid_layout.h" |
| 21 #include "ui/views/view.h" | 21 #include "ui/views/view.h" |
| 22 | 22 |
| 23 namespace payments { | 23 namespace payments { |
| 24 | 24 |
| 25 OrderSummaryViewController::OrderSummaryViewController( | 25 OrderSummaryViewController::OrderSummaryViewController( |
| 26 PaymentRequestImpl* impl, PaymentRequestDialog* dialog) | 26 PaymentRequestImpl* impl, PaymentRequestDialog* dialog) |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 break; | 61 break; |
| 62 case static_cast<int>(PaymentRequestCommonTags::BACK_BUTTON_TAG): | 62 case static_cast<int>(PaymentRequestCommonTags::BACK_BUTTON_TAG): |
| 63 dialog()->GoBack(); | 63 dialog()->GoBack(); |
| 64 break; | 64 break; |
| 65 default: | 65 default: |
| 66 NOTREACHED(); | 66 NOTREACHED(); |
| 67 } | 67 } |
| 68 } | 68 } |
| 69 | 69 |
| 70 } // namespace payments | 70 } // namespace payments |
| OLD | NEW |