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

Unified Diff: chrome/browser/dom_ui/autofill_edit_address_handler.cc

Issue 3157027: DOMUI: Add the basic HTML for the 'Edit Address' AutoFill overlay. (Closed)
Patch Set: Review fixes 2. 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_address_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_address_handler.cc
diff --git a/chrome/browser/dom_ui/autofill_edit_address_handler.cc b/chrome/browser/dom_ui/autofill_edit_address_handler.cc
new file mode 100644
index 0000000000000000000000000000000000000000..37e4cc0d3f267c444710adbcd1e9d15ba89e88b0
--- /dev/null
+++ b/chrome/browser/dom_ui/autofill_edit_address_handler.cc
@@ -0,0 +1,53 @@
+// 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_address_handler.h"
+
+#include "app/l10n_util.h"
+#include "base/values.h"
+#include "grit/generated_resources.h"
+
+AutoFillEditAddressHandler::AutoFillEditAddressHandler() {
+}
+
+AutoFillEditAddressHandler::~AutoFillEditAddressHandler() {
+}
+
+void AutoFillEditAddressHandler::GetLocalizedValues(
+ DictionaryValue* localized_strings) {
+ DCHECK(localized_strings);
+ localized_strings->SetString("autoFillEditAddressTitle",
+ l10n_util::GetStringUTF16(IDS_AUTOFILL_EDIT_ADDRESS_CAPTION));
+ localized_strings->SetString("fullNameLabel",
+ l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_FULL_NAME));
+ localized_strings->SetString("companyNameLabel",
+ l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_COMPANY_NAME));
+ localized_strings->SetString("addrLine1Label",
+ l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_ADDRESS_LINE_1));
+ localized_strings->SetString("addrLine2Label",
+ l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_ADDRESS_LINE_2));
+ 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("autoFillEditAddressApplyButton",
+ l10n_util::GetStringUTF16(IDS_OK));
+ localized_strings->SetString("autoFillEditAddressCancelButton",
+ l10n_util::GetStringUTF16(IDS_CANCEL));
+}
+
+void AutoFillEditAddressHandler::RegisterMessages() {
+}
« no previous file with comments | « chrome/browser/dom_ui/autofill_edit_address_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