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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/dom_ui/autofill_edit_creditcard_handler.cc
diff --git a/chrome/browser/dom_ui/autofill_edit_creditcard_handler.cc b/chrome/browser/dom_ui/autofill_edit_creditcard_handler.cc
new file mode 100644
index 0000000000000000000000000000000000000000..cbdf24a779301a44ef98f3198282b23a74d05320
--- /dev/null
+++ b/chrome/browser/dom_ui/autofill_edit_creditcard_handler.cc
@@ -0,0 +1,52 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/dom_ui/autofill_edit_creditcard_handler.h"
+
+#include "app/l10n_util.h"
+#include "base/values.h"
+#include "grit/generated_resources.h"
+
+AutoFillEditCreditCardHandler::AutoFillEditCreditCardHandler() {
+}
+
+AutoFillEditCreditCardHandler::~AutoFillEditCreditCardHandler() {
+}
+
+void AutoFillEditCreditCardHandler::GetLocalizedValues(
+ DictionaryValue* localized_strings) {
+ DCHECK(localized_strings);
+ localized_strings->SetString("autoFillEditCreditCardTitle",
+ l10n_util::GetStringUTF16(IDS_AUTOFILL_EDIT_CREDITCARD_CAPTION));
+ localized_strings->SetString("nameOnCardLabel",
+ l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_NAME_ON_CARD));
+ localized_strings->SetString("billingAddressLabel",
+ l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_BILLING_ADDRESS));
+ localized_strings->SetString("chooseExistingAddress",
+ l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_CHOOSE_EXISTING_ADDRESS));
+ localized_strings->SetString("creditCardNumberLabel",
+ l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_CREDIT_CARD_NUMBER));
+ localized_strings->SetString("creditCardExpirationDateLabel",
+ l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_EXPIRATION_DATE));
+ localized_strings->SetString("cityLabel",
+ l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_CITY));
+ localized_strings->SetString("stateLabel",
+ l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_STATE));
+ localized_strings->SetString("zipCodeLabel",
+ l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_ZIP_CODE));
+ localized_strings->SetString("countryLabel",
+ l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_COUNTRY));
+ localized_strings->SetString("countryLabel",
+ l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_COUNTRY));
+ localized_strings->SetString("phoneLabel",
+ l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_PHONE));
+ localized_strings->SetString("faxLabel",
+ l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_FAX));
+ localized_strings->SetString("emailLabel",
+ l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_EMAIL));
+ localized_strings->SetString("autoFillEditCreditCardApplyButton",
+ l10n_util::GetStringUTF16(IDS_OK));
+ localized_strings->SetString("autoFillEditCreditCardCancelButton",
+ l10n_util::GetStringUTF16(IDS_CANCEL));
+}
« 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