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

Side by Side Diff: chrome/browser/ui/views/autofill/view_util.cc

Issue 2789843004: [Payments] Upload card UI now has a CVC prompt (Closed)
Patch Set: Address code review comment 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
« no previous file with comments | « chrome/browser/ui/views/autofill/view_util.h ('k') | components/autofill/core/browser/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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/ui/views/autofill/view_util.h"
6
7 #include "components/strings/grit/components_strings.h"
8 #include "ui/base/l10n/l10n_util.h"
9 #include "ui/views/controls/textfield/textfield.h"
10
11 namespace autofill {
12
13 views::Textfield* CreateCvcTextfield() {
14 views::Textfield* textfield = new views::Textfield();
15 textfield->set_placeholder_text(
16 l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_PLACEHOLDER_CVC));
17 textfield->set_default_width_in_chars(8);
18 textfield->SetTextInputType(ui::TextInputType::TEXT_INPUT_TYPE_NUMBER);
19 return textfield;
20 }
21
22 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/autofill/view_util.h ('k') | components/autofill/core/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698