summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/resources/print_preview/margin_textbox.js1
-rw-r--r--chrome/browser/ui/webui/print_preview_data_source.cc4
2 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/resources/print_preview/margin_textbox.js b/chrome/browser/resources/print_preview/margin_textbox.js
index 3f3e80d..ec1944b 100644
--- a/chrome/browser/resources/print_preview/margin_textbox.js
+++ b/chrome/browser/resources/print_preview/margin_textbox.js
@@ -11,6 +11,7 @@ cr.define('print_preview', function() {
box.setAttribute('type', 'text');
box.className = MarginTextbox.CSS_CLASS_MARGIN_TEXTBOX;
box.value = '0';
+ box.setAttribute('aria-label', localStrings.getString(groupName));
// @type {string} Specifies which margin this line refers to.
box.marginGroup = groupName;
diff --git a/chrome/browser/ui/webui/print_preview_data_source.cc b/chrome/browser/ui/webui/print_preview_data_source.cc
index 020b42e..94241ae 100644
--- a/chrome/browser/ui/webui/print_preview_data_source.cc
+++ b/chrome/browser/ui/webui/print_preview_data_source.cc
@@ -123,6 +123,10 @@ PrintPreviewDataSource::PrintPreviewDataSource()
AddLocalizedString("defaultMargins", IDS_PRINT_PREVIEW_DEFAULT_MARGINS);
AddLocalizedString("noMargins", IDS_PRINT_PREVIEW_NO_MARGINS);
AddLocalizedString("customMargins", IDS_PRINT_PREVIEW_CUSTOM_MARGINS);
+ AddLocalizedString("top", IDS_PRINT_PREVIEW_TOP_MARGIN_LABEL);
+ AddLocalizedString("bottom", IDS_PRINT_PREVIEW_BOTTOM_MARGIN_LABEL);
+ AddLocalizedString("left", IDS_PRINT_PREVIEW_LEFT_MARGIN_LABEL);
+ AddLocalizedString("right", IDS_PRINT_PREVIEW_RIGHT_MARGIN_LABEL);
set_json_path("strings.js");
add_resource_path("print_preview.js", IDR_PRINT_PREVIEW_JS);