| 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/payment_sheet_view_controller.h" | 5 #include "chrome/browser/ui/views/payments/payment_sheet_view_controller.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 dialog()->ShowShippingListSheet(); | 209 dialog()->ShowShippingListSheet(); |
| 210 break; | 210 break; |
| 211 | 211 |
| 212 case static_cast<int>( | 212 case static_cast<int>( |
| 213 PaymentSheetViewControllerTags::SHOW_PAYMENT_METHOD_BUTTON): | 213 PaymentSheetViewControllerTags::SHOW_PAYMENT_METHOD_BUTTON): |
| 214 dialog()->ShowPaymentMethodSheet(); | 214 dialog()->ShowPaymentMethodSheet(); |
| 215 break; | 215 break; |
| 216 | 216 |
| 217 case static_cast<int>( | 217 case static_cast<int>( |
| 218 PaymentSheetViewControllerTags::SHOW_CONTACT_INFO_BUTTON): | 218 PaymentSheetViewControllerTags::SHOW_CONTACT_INFO_BUTTON): |
| 219 // TODO(tmartino): Transition to contact info page once it exists. | 219 dialog()->ShowContactInfoSheet(); |
| 220 break; | 220 break; |
| 221 | 221 |
| 222 default: | 222 default: |
| 223 PaymentRequestSheetController::ButtonPressed(sender, event); | 223 PaymentRequestSheetController::ButtonPressed(sender, event); |
| 224 break; | 224 break; |
| 225 } | 225 } |
| 226 } | 226 } |
| 227 | 227 |
| 228 std::unique_ptr<views::View> | 228 std::unique_ptr<views::View> |
| 229 PaymentSheetViewController::CreateOrderSummarySectionContent() { | 229 PaymentSheetViewController::CreateOrderSummarySectionContent() { |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 CreateContactInfoSectionContent(), std::unique_ptr<views::View>(nullptr), | 364 CreateContactInfoSectionContent(), std::unique_ptr<views::View>(nullptr), |
| 365 widest_name_column_view_width_); | 365 widest_name_column_view_width_); |
| 366 section->set_tag(static_cast<int>( | 366 section->set_tag(static_cast<int>( |
| 367 PaymentSheetViewControllerTags::SHOW_CONTACT_INFO_BUTTON)); | 367 PaymentSheetViewControllerTags::SHOW_CONTACT_INFO_BUTTON)); |
| 368 section->set_id( | 368 section->set_id( |
| 369 static_cast<int>(DialogViewID::PAYMENT_SHEET_CONTACT_INFO_SECTION)); | 369 static_cast<int>(DialogViewID::PAYMENT_SHEET_CONTACT_INFO_SECTION)); |
| 370 return section; | 370 return section; |
| 371 } | 371 } |
| 372 | 372 |
| 373 } // namespace payments | 373 } // namespace payments |
| OLD | NEW |