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

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

Issue 2784973002: Move string helper functions to components/core for iOS use. (Closed)
Patch Set: Deps, part 3 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/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 <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/ptr_util.h" 14 #include "base/memory/ptr_util.h"
15 #include "base/strings/string_number_conversions.h" 15 #include "base/strings/string_number_conversions.h"
16 #include "base/strings/string_util.h" 16 #include "base/strings/string_util.h"
17 #include "base/strings/utf_string_conversions.h" 17 #include "base/strings/utf_string_conversions.h"
18 #include "chrome/browser/browser_process.h" 18 #include "chrome/browser/browser_process.h"
19 #include "chrome/browser/ui/views/payments/payment_request_dialog_view.h" 19 #include "chrome/browser/ui/views/payments/payment_request_dialog_view.h"
20 #include "chrome/browser/ui/views/payments/payment_request_dialog_view_ids.h" 20 #include "chrome/browser/ui/views/payments/payment_request_dialog_view_ids.h"
21 #include "chrome/browser/ui/views/payments/payment_request_row_view.h" 21 #include "chrome/browser/ui/views/payments/payment_request_row_view.h"
22 #include "chrome/browser/ui/views/payments/payment_request_views_util.h" 22 #include "chrome/browser/ui/views/payments/payment_request_views_util.h"
23 #include "chrome/grit/generated_resources.h" 23 #include "chrome/grit/generated_resources.h"
24 #include "components/autofill/core/browser/field_types.h" 24 #include "components/autofill/core/browser/field_types.h"
25 #include "components/autofill/core/browser/personal_data_manager.h" 25 #include "components/autofill/core/browser/personal_data_manager.h"
26 #include "components/payments/content/payment_request_spec.h" 26 #include "components/payments/content/payment_request_spec.h"
27 #include "components/payments/content/payment_request_state.h" 27 #include "components/payments/content/payment_request_state.h"
28 #include "components/payments/core/currency_formatter.h" 28 #include "components/payments/core/currency_formatter.h"
29 #include "components/payments/core/payment_instrument.h" 29 #include "components/payments/core/payment_instrument.h"
30 #include "components/payments/core/strings_util.h"
30 #include "components/strings/grit/components_strings.h" 31 #include "components/strings/grit/components_strings.h"
31 #include "content/public/browser/web_contents.h" 32 #include "content/public/browser/web_contents.h"
32 #include "ui/base/l10n/l10n_util.h" 33 #include "ui/base/l10n/l10n_util.h"
33 #include "ui/base/resource/resource_bundle.h" 34 #include "ui/base/resource/resource_bundle.h"
34 #include "ui/gfx/color_utils.h" 35 #include "ui/gfx/color_utils.h"
35 #include "ui/gfx/font.h" 36 #include "ui/gfx/font.h"
36 #include "ui/gfx/paint_vector_icon.h" 37 #include "ui/gfx/paint_vector_icon.h"
37 #include "ui/gfx/range/range.h" 38 #include "ui/gfx/range/range.h"
38 #include "ui/views/controls/button/md_text_button.h" 39 #include "ui/views/controls/button/md_text_button.h"
39 #include "ui/views/controls/image_view.h" 40 #include "ui/views/controls/image_view.h"
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 std::move(option_label), std::unique_ptr<views::View>(nullptr), 498 std::move(option_label), std::unique_ptr<views::View>(nullptr),
498 widest_name_column_view_width_); 499 widest_name_column_view_width_);
499 section->set_tag(static_cast<int>( 500 section->set_tag(static_cast<int>(
500 PaymentSheetViewControllerTags::SHOW_SHIPPING_OPTION_BUTTON)); 501 PaymentSheetViewControllerTags::SHOW_SHIPPING_OPTION_BUTTON));
501 section->set_id( 502 section->set_id(
502 static_cast<int>(DialogViewID::PAYMENT_SHEET_SHIPPING_OPTION_SECTION)); 503 static_cast<int>(DialogViewID::PAYMENT_SHEET_SHIPPING_OPTION_SECTION));
503 return section; 504 return section;
504 } 505 }
505 506
506 } // namespace payments 507 } // namespace payments
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698