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

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

Issue 2841603004: [Payments] Update some editor titles to reflect missing information (Closed)
Patch Set: Cleanup some strings Created 3 years, 8 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
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/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
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 views::MdTextButton::CreateSecondaryUiBlueButton( 112 views::MdTextButton::CreateSecondaryUiBlueButton(
113 this, l10n_util::GetStringUTF16(IDS_PAYMENTS_PAY_BUTTON))); 113 this, l10n_util::GetStringUTF16(IDS_PAYMENTS_PAY_BUTTON)));
114 button->set_tag(static_cast<int>(PaymentRequestCommonTags::PAY_BUTTON_TAG)); 114 button->set_tag(static_cast<int>(PaymentRequestCommonTags::PAY_BUTTON_TAG));
115 button->set_id(static_cast<int>(DialogViewID::PAY_BUTTON)); 115 button->set_id(static_cast<int>(DialogViewID::PAY_BUTTON));
116 pay_button_ = button.get(); 116 pay_button_ = button.get();
117 UpdatePayButtonState(state()->is_ready_to_pay()); 117 UpdatePayButtonState(state()->is_ready_to_pay());
118 return button; 118 return button;
119 } 119 }
120 120
121 base::string16 OrderSummaryViewController::GetSheetTitle() { 121 base::string16 OrderSummaryViewController::GetSheetTitle() {
122 return l10n_util::GetStringUTF16(IDS_PAYMENT_REQUEST_ORDER_SUMMARY_TITLE); 122 return l10n_util::GetStringUTF16(IDS_PAYMENTS_ORDER_SUMMARY_LABEL);
123 } 123 }
124 124
125 void OrderSummaryViewController::FillContentView(views::View* content_view) { 125 void OrderSummaryViewController::FillContentView(views::View* content_view) {
126 views::BoxLayout* layout = new views::BoxLayout( 126 views::BoxLayout* layout = new views::BoxLayout(
127 views::BoxLayout::kVertical, 0, 0, 0); 127 views::BoxLayout::kVertical, 0, 0, 0);
128 layout->set_main_axis_alignment(views::BoxLayout::MAIN_AXIS_ALIGNMENT_START); 128 layout->set_main_axis_alignment(views::BoxLayout::MAIN_AXIS_ALIGNMENT_START);
129 layout->set_cross_axis_alignment( 129 layout->set_cross_axis_alignment(
130 views::BoxLayout::CROSS_AXIS_ALIGNMENT_STRETCH); 130 views::BoxLayout::CROSS_AXIS_ALIGNMENT_STRETCH);
131 content_view->SetLayoutManager(layout); 131 content_view->SetLayoutManager(layout);
132 132
(...skipping 25 matching lines...) Expand all
158 total_label_value, true, 158 total_label_value, true,
159 DialogViewID::ORDER_SUMMARY_TOTAL_AMOUNT_LABEL) 159 DialogViewID::ORDER_SUMMARY_TOTAL_AMOUNT_LABEL)
160 .release()); 160 .release());
161 } 161 }
162 162
163 void OrderSummaryViewController::UpdatePayButtonState(bool enabled) { 163 void OrderSummaryViewController::UpdatePayButtonState(bool enabled) {
164 pay_button_->SetEnabled(enabled); 164 pay_button_->SetEnabled(enabled);
165 } 165 }
166 166
167 } // namespace payments 167 } // namespace payments
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698