| 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 #import "ios/chrome/browser/payments/payment_request_coordinator.h" | 5 #import "ios/chrome/browser/payments/payment_request_coordinator.h" |
| 6 | 6 |
| 7 #include <unordered_set> | 7 #include <unordered_set> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 - (void)paymentRequestViewControllerDidCancel: | 328 - (void)paymentRequestViewControllerDidCancel: |
| 329 (PaymentRequestViewController*)controller { | 329 (PaymentRequestViewController*)controller { |
| 330 [_delegate paymentRequestCoordinatorDidCancel:self]; | 330 [_delegate paymentRequestCoordinatorDidCancel:self]; |
| 331 } | 331 } |
| 332 | 332 |
| 333 - (void)paymentRequestViewControllerDidConfirm: | 333 - (void)paymentRequestViewControllerDidConfirm: |
| 334 (PaymentRequestViewController*)controller { | 334 (PaymentRequestViewController*)controller { |
| 335 [self sendPaymentResponse]; | 335 [self sendPaymentResponse]; |
| 336 } | 336 } |
| 337 | 337 |
| 338 - (void)paymentRequestViewControllerDidSelectSettings: |
| 339 (PaymentRequestViewController*)controller { |
| 340 [_delegate paymentRequestCoordinatorDidSelectSettings:self]; |
| 341 } |
| 342 |
| 338 - (void)paymentRequestViewControllerDidSelectPaymentSummaryItem: | 343 - (void)paymentRequestViewControllerDidSelectPaymentSummaryItem: |
| 339 (PaymentRequestViewController*)controller { | 344 (PaymentRequestViewController*)controller { |
| 340 _itemsDisplayCoordinator = [[PaymentItemsDisplayCoordinator alloc] | 345 _itemsDisplayCoordinator = [[PaymentItemsDisplayCoordinator alloc] |
| 341 initWithBaseViewController:_viewController]; | 346 initWithBaseViewController:_viewController]; |
| 342 [_itemsDisplayCoordinator setPaymentRequest:_paymentRequest]; | 347 [_itemsDisplayCoordinator setPaymentRequest:_paymentRequest]; |
| 343 [_itemsDisplayCoordinator setDelegate:self]; | 348 [_itemsDisplayCoordinator setDelegate:self]; |
| 344 | 349 |
| 345 [_itemsDisplayCoordinator start]; | 350 [_itemsDisplayCoordinator start]; |
| 346 } | 351 } |
| 347 | 352 |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 466 - (void)paymentMethodSelectionCoordinatorDidReturn: | 471 - (void)paymentMethodSelectionCoordinatorDidReturn: |
| 467 (PaymentMethodSelectionCoordinator*)coordinator { | 472 (PaymentMethodSelectionCoordinator*)coordinator { |
| 468 // Clear the 'Updated' label on the payment summary item, if there is one. | 473 // Clear the 'Updated' label on the payment summary item, if there is one. |
| 469 [_viewController updatePaymentSummaryWithTotalValueChanged:NO]; | 474 [_viewController updatePaymentSummaryWithTotalValueChanged:NO]; |
| 470 | 475 |
| 471 [_methodSelectionCoordinator stop]; | 476 [_methodSelectionCoordinator stop]; |
| 472 _methodSelectionCoordinator = nil; | 477 _methodSelectionCoordinator = nil; |
| 473 } | 478 } |
| 474 | 479 |
| 475 @end | 480 @end |
| OLD | NEW |