Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(196)

Side by Side Diff: chrome/browser/ui/views/payments/payment_sheet_view_controller.cc

Issue 2725623004: [Web Payments] Add the contact info screen. (Closed)
Patch Set: Address comments. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/views/payments/payment_request_views_util.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 dialog()->ShowShippingListSheet(); 227 dialog()->ShowShippingListSheet();
228 break; 228 break;
229 229
230 case static_cast<int>( 230 case static_cast<int>(
231 PaymentSheetViewControllerTags::SHOW_PAYMENT_METHOD_BUTTON): 231 PaymentSheetViewControllerTags::SHOW_PAYMENT_METHOD_BUTTON):
232 dialog()->ShowPaymentMethodSheet(); 232 dialog()->ShowPaymentMethodSheet();
233 break; 233 break;
234 234
235 case static_cast<int>( 235 case static_cast<int>(
236 PaymentSheetViewControllerTags::SHOW_CONTACT_INFO_BUTTON): 236 PaymentSheetViewControllerTags::SHOW_CONTACT_INFO_BUTTON):
237 // TODO(tmartino): Transition to contact info page once it exists. 237 dialog()->ShowContactInfoSheet();
238 break; 238 break;
239 239
240 default: 240 default:
241 PaymentRequestSheetController::ButtonPressed(sender, event); 241 PaymentRequestSheetController::ButtonPressed(sender, event);
242 break; 242 break;
243 } 243 }
244 } 244 }
245 245
246 void PaymentSheetViewController::UpdatePayButtonState(bool enabled) { 246 void PaymentSheetViewController::UpdatePayButtonState(bool enabled) {
247 pay_button_->SetEnabled(enabled); 247 pay_button_->SetEnabled(enabled);
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 CreateContactInfoSectionContent(), std::unique_ptr<views::View>(nullptr), 386 CreateContactInfoSectionContent(), std::unique_ptr<views::View>(nullptr),
387 widest_name_column_view_width_); 387 widest_name_column_view_width_);
388 section->set_tag(static_cast<int>( 388 section->set_tag(static_cast<int>(
389 PaymentSheetViewControllerTags::SHOW_CONTACT_INFO_BUTTON)); 389 PaymentSheetViewControllerTags::SHOW_CONTACT_INFO_BUTTON));
390 section->set_id( 390 section->set_id(
391 static_cast<int>(DialogViewID::PAYMENT_SHEET_CONTACT_INFO_SECTION)); 391 static_cast<int>(DialogViewID::PAYMENT_SHEET_CONTACT_INFO_SECTION));
392 return section; 392 return section;
393 } 393 }
394 394
395 } // namespace payments 395 } // namespace payments
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/payments/payment_request_views_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698