| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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/editor_view_controller.h" | 5 #include "chrome/browser/ui/views/payments/editor_view_controller.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <utility> | 10 #include <utility> |
| 11 | 11 |
| 12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
| 13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
| 14 #include "chrome/browser/ui/views/harmony/chrome_typography.h" | 14 #include "chrome/browser/ui/views/harmony/chrome_typography.h" |
| 15 #include "chrome/browser/ui/views/payments/payment_request_dialog_view.h" | 15 #include "chrome/browser/ui/views/payments/payment_request_dialog_view.h" |
| 16 #include "chrome/browser/ui/views/payments/payment_request_dialog_view_ids.h" | 16 #include "chrome/browser/ui/views/payments/payment_request_dialog_view_ids.h" |
| 17 #include "chrome/browser/ui/views/payments/payment_request_views_util.h" | 17 #include "chrome/browser/ui/views/payments/payment_request_views_util.h" |
| 18 #include "chrome/browser/ui/views/payments/validating_combobox.h" | 18 #include "chrome/browser/ui/views/payments/validating_combobox.h" |
| 19 #include "chrome/browser/ui/views/payments/validating_textfield.h" | 19 #include "chrome/browser/ui/views/payments/validating_textfield.h" |
| 20 #include "chrome/grit/generated_resources.h" | |
| 21 #include "components/strings/grit/components_strings.h" | 20 #include "components/strings/grit/components_strings.h" |
| 22 #include "ui/base/ime/text_input_type.h" | 21 #include "ui/base/ime/text_input_type.h" |
| 23 #include "ui/base/l10n/l10n_util.h" | 22 #include "ui/base/l10n/l10n_util.h" |
| 24 #include "ui/gfx/geometry/insets.h" | 23 #include "ui/gfx/geometry/insets.h" |
| 25 #include "ui/native_theme/native_theme.h" | 24 #include "ui/native_theme/native_theme.h" |
| 26 #include "ui/views/border.h" | 25 #include "ui/views/border.h" |
| 27 #include "ui/views/controls/button/label_button.h" | 26 #include "ui/views/controls/button/label_button.h" |
| 28 #include "ui/views/controls/button/md_text_button.h" | 27 #include "ui/views/controls/button/md_text_button.h" |
| 29 #include "ui/views/controls/label.h" | 28 #include "ui/views/controls/label.h" |
| 30 #include "ui/views/controls/styled_label.h" | 29 #include "ui/views/controls/styled_label.h" |
| (...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 CreateExtraViewForField(field.type); | 441 CreateExtraViewForField(field.type); |
| 443 if (!extra_view) | 442 if (!extra_view) |
| 444 continue; | 443 continue; |
| 445 widest_column_width = | 444 widest_column_width = |
| 446 std::max(extra_view->GetPreferredSize().width(), widest_column_width); | 445 std::max(extra_view->GetPreferredSize().width(), widest_column_width); |
| 447 } | 446 } |
| 448 return widest_column_width; | 447 return widest_column_width; |
| 449 } | 448 } |
| 450 | 449 |
| 451 } // namespace payments | 450 } // namespace payments |
| OLD | NEW |