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

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

Issue 2653223005: Move views vector icons from source_set to part of views target. (Closed)
Patch Set: rebase Created 3 years, 10 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/BUILD.gn ('k') | ui/views/BUILD.gn » ('j') | 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 24 matching lines...) Expand all
35 #include "ui/gfx/range/range.h" 35 #include "ui/gfx/range/range.h"
36 #include "ui/views/border.h" 36 #include "ui/views/border.h"
37 #include "ui/views/controls/button/custom_button.h" 37 #include "ui/views/controls/button/custom_button.h"
38 #include "ui/views/controls/button/label_button.h" 38 #include "ui/views/controls/button/label_button.h"
39 #include "ui/views/controls/button/md_text_button.h" 39 #include "ui/views/controls/button/md_text_button.h"
40 #include "ui/views/controls/image_view.h" 40 #include "ui/views/controls/image_view.h"
41 #include "ui/views/controls/label.h" 41 #include "ui/views/controls/label.h"
42 #include "ui/views/controls/styled_label.h" 42 #include "ui/views/controls/styled_label.h"
43 #include "ui/views/layout/fill_layout.h" 43 #include "ui/views/layout/fill_layout.h"
44 #include "ui/views/layout/grid_layout.h" 44 #include "ui/views/layout/grid_layout.h"
45 #include "ui/views/resources/vector_icons/vector_icons.h" 45 #include "ui/views/vector_icons.h"
46 #include "ui/views/view.h" 46 #include "ui/views/view.h"
47 47
48 namespace payments { 48 namespace payments {
49 namespace { 49 namespace {
50 50
51 constexpr int kFirstTagValue = static_cast<int>( 51 constexpr int kFirstTagValue = static_cast<int>(
52 payments::PaymentRequestCommonTags::PAYMENT_REQUEST_COMMON_TAG_MAX); 52 payments::PaymentRequestCommonTags::PAYMENT_REQUEST_COMMON_TAG_MAX);
53 53
54 enum class PaymentSheetViewControllerTags { 54 enum class PaymentSheetViewControllerTags {
55 // The tag for the button that navigates to the Order Summary sheet. 55 // The tag for the button that navigates to the Order Summary sheet.
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 this, 372 this,
373 l10n_util::GetStringUTF16(IDS_PAYMENT_REQUEST_CONTACT_INFO_SECTION_NAME), 373 l10n_util::GetStringUTF16(IDS_PAYMENT_REQUEST_CONTACT_INFO_SECTION_NAME),
374 CreateContactInfoSectionContent(), std::unique_ptr<views::View>(nullptr), 374 CreateContactInfoSectionContent(), std::unique_ptr<views::View>(nullptr),
375 widest_name_column_view_width_); 375 widest_name_column_view_width_);
376 section->set_tag(static_cast<int>( 376 section->set_tag(static_cast<int>(
377 PaymentSheetViewControllerTags::SHOW_CONTACT_INFO_BUTTON)); 377 PaymentSheetViewControllerTags::SHOW_CONTACT_INFO_BUTTON));
378 return section; 378 return section;
379 } 379 }
380 380
381 } // namespace payments 381 } // namespace payments
OLDNEW
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | ui/views/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698