| 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 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
| 13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
| 14 #include "chrome/browser/browser_process.h" | 14 #include "chrome/browser/browser_process.h" |
| 15 #include "chrome/browser/ui/views/payments/payment_request_dialog_view.h" | 15 #include "chrome/browser/ui/views/payments/payment_request_dialog_view.h" |
| 16 #include "chrome/browser/ui/views/payments/payment_request_dialog_view_ids.h" | 16 #include "chrome/browser/ui/views/payments/payment_request_dialog_view_ids.h" |
| 17 #include "chrome/browser/ui/views/payments/payment_request_views_util.h" | 17 #include "chrome/browser/ui/views/payments/payment_request_views_util.h" |
| 18 #include "chrome/grit/generated_resources.h" | |
| 19 #include "components/payments/core/currency_formatter.h" | 18 #include "components/payments/core/currency_formatter.h" |
| 20 #include "components/strings/grit/components_strings.h" | 19 #include "components/strings/grit/components_strings.h" |
| 21 #include "ui/base/l10n/l10n_util.h" | 20 #include "ui/base/l10n/l10n_util.h" |
| 22 #include "ui/gfx/font.h" | 21 #include "ui/gfx/font.h" |
| 23 #include "ui/views/border.h" | 22 #include "ui/views/border.h" |
| 24 #include "ui/views/controls/button/md_text_button.h" | 23 #include "ui/views/controls/button/md_text_button.h" |
| 25 #include "ui/views/controls/label.h" | 24 #include "ui/views/controls/label.h" |
| 26 #include "ui/views/controls/styled_label.h" | 25 #include "ui/views/controls/styled_label.h" |
| 27 #include "ui/views/layout/box_layout.h" | 26 #include "ui/views/layout/box_layout.h" |
| 28 #include "ui/views/layout/grid_layout.h" | 27 #include "ui/views/layout/grid_layout.h" |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 true, DialogViewID::ORDER_SUMMARY_TOTAL_CURRENCY_LABEL, | 199 true, DialogViewID::ORDER_SUMMARY_TOTAL_CURRENCY_LABEL, |
| 201 DialogViewID::ORDER_SUMMARY_TOTAL_AMOUNT_LABEL) | 200 DialogViewID::ORDER_SUMMARY_TOTAL_AMOUNT_LABEL) |
| 202 .release()); | 201 .release()); |
| 203 } | 202 } |
| 204 | 203 |
| 205 void OrderSummaryViewController::UpdatePayButtonState(bool enabled) { | 204 void OrderSummaryViewController::UpdatePayButtonState(bool enabled) { |
| 206 pay_button_->SetEnabled(enabled); | 205 pay_button_->SetEnabled(enabled); |
| 207 } | 206 } |
| 208 | 207 |
| 209 } // namespace payments | 208 } // namespace payments |
| OLD | NEW |