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

Side by Side Diff: chrome/browser/dom_ui/autofill_edit_creditcard_handler.cc

Issue 3174028: DOMUI: Implement the base HTML for the 'Edit credit card' AutoFill overlay. (Closed)
Patch Set: Forgotten files. Created 10 years, 4 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
(Empty)
1 // Copyright (c) 2010 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/dom_ui/autofill_edit_creditcard_handler.h"
6
7 #include "app/l10n_util.h"
8 #include "base/values.h"
9 #include "grit/generated_resources.h"
10
11 AutoFillEditCreditCardHandler::AutoFillEditCreditCardHandler() {
12 }
13
14 AutoFillEditCreditCardHandler::~AutoFillEditCreditCardHandler() {
15 }
16
17 void AutoFillEditCreditCardHandler::GetLocalizedValues(
18 DictionaryValue* localized_strings) {
19 DCHECK(localized_strings);
20 localized_strings->SetString("autoFillEditCreditCardTitle",
21 l10n_util::GetStringUTF16(IDS_AUTOFILL_EDIT_CREDITCARD_CAPTION));
22 localized_strings->SetString("nameOnCardLabel",
23 l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_NAME_ON_CARD));
24 localized_strings->SetString("billingAddressLabel",
25 l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_BILLING_ADDRESS));
26 localized_strings->SetString("chooseExistingAddress",
27 l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_CHOOSE_EXISTING_ADDRESS));
28 localized_strings->SetString("creditCardNumberLabel",
29 l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_CREDIT_CARD_NUMBER));
30 localized_strings->SetString("creditCardExpirationDateLabel",
31 l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_EXPIRATION_DATE));
32 localized_strings->SetString("cityLabel",
33 l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_CITY));
34 localized_strings->SetString("stateLabel",
35 l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_STATE));
36 localized_strings->SetString("zipCodeLabel",
37 l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_ZIP_CODE));
38 localized_strings->SetString("countryLabel",
39 l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_COUNTRY));
40 localized_strings->SetString("countryLabel",
41 l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_COUNTRY));
42 localized_strings->SetString("phoneLabel",
43 l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_PHONE));
44 localized_strings->SetString("faxLabel",
45 l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_FAX));
46 localized_strings->SetString("emailLabel",
47 l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_EMAIL));
48 localized_strings->SetString("autoFillEditCreditCardApplyButton",
49 l10n_util::GetStringUTF16(IDS_OK));
50 localized_strings->SetString("autoFillEditCreditCardCancelButton",
51 l10n_util::GetStringUTF16(IDS_CANCEL));
52 }
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/autofill_edit_creditcard_handler.h ('k') | chrome/browser/dom_ui/options_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698