Commit 177637be authored by dpapad's avatar dpapad Committed by Commit Bot

PDFViewerUpdate: Add aria-label for zoom text input.

Fixed: 1133417
Change-Id: Ic18c3f8410dccb03afd1ba14fec4d9f1ff3407e8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2437818
Auto-Submit: dpapad <dpapad@chromium.org>
Reviewed-by: default avatarLei Zhang <thestig@chromium.org>
Commit-Queue: dpapad <dpapad@chromium.org>
Cr-Commit-Position: refs/heads/master@{#812065}
parent 9a224d53
...@@ -68,6 +68,7 @@ void AddPdfViewerStrings(base::Value* dict) { ...@@ -68,6 +68,7 @@ void AddPdfViewerStrings(base::Value* dict) {
{"tooltipRotateCCW", IDS_PDF_TOOLTIP_ROTATE_CCW}, {"tooltipRotateCCW", IDS_PDF_TOOLTIP_ROTATE_CCW},
{"tooltipRotateCW", IDS_PDF_TOOLTIP_ROTATE_CW}, {"tooltipRotateCW", IDS_PDF_TOOLTIP_ROTATE_CW},
{"tooltipThumbnails", IDS_PDF_TOOLTIP_THUMBNAILS}, {"tooltipThumbnails", IDS_PDF_TOOLTIP_THUMBNAILS},
{"zoomTextInputAriaLabel", IDS_PDF_ZOOM_TEXT_INPUT_ARIA_LABEL},
#if defined(OS_CHROMEOS) #if defined(OS_CHROMEOS)
{"tooltipAnnotate", IDS_PDF_ANNOTATION_ANNOTATE}, {"tooltipAnnotate", IDS_PDF_ANNOTATION_ANNOTATE},
{"annotationDocumentTooLarge", IDS_PDF_ANNOTATION_DOCUMENT_TOO_LARGE}, {"annotationDocumentTooLarge", IDS_PDF_ANNOTATION_DOCUMENT_TOO_LARGE},
......
...@@ -188,8 +188,9 @@ ...@@ -188,8 +188,9 @@
<cr-icon-button iron-icon="pdf:remove" title="$i18n{tooltipZoomOut}" <cr-icon-button iron-icon="pdf:remove" title="$i18n{tooltipZoomOut}"
aria-label="$i18n{tooltipZoomOut}" on-click="onZoomOutClick_"> aria-label="$i18n{tooltipZoomOut}" on-click="onZoomOutClick_">
</cr-icon-button> </cr-icon-button>
<input type="text" value="100%" on-input="onZoomInput_" <input type="text" value="100%"
on-pointerup="onZoomInputPointerup_" aria-label="$i18n{zoomTextInputAriaLabel}"
on-input="onZoomInput_" on-pointerup="onZoomInputPointerup_"
on-blur="onZoomInputBlur_"> on-blur="onZoomInputBlur_">
</input> </input>
<cr-icon-button iron-icon="pdf:add" title="$i18n{tooltipZoomIn}" <cr-icon-button iron-icon="pdf:add" title="$i18n{tooltipZoomIn}"
......
...@@ -61,6 +61,9 @@ ...@@ -61,6 +61,9 @@
<message name="IDS_PDF_ANNOTATIONS_SHOW_TOGGLE" desc="Button text for toggling showing annotations on the PDF document"> <message name="IDS_PDF_ANNOTATIONS_SHOW_TOGGLE" desc="Button text for toggling showing annotations on the PDF document">
Annotations Annotations
</message> </message>
<message name="IDS_PDF_ZOOM_TEXT_INPUT_ARIA_LABEL" desc="aria-label describing the zoom level text input">
Zoom level
</message>
<message name="IDS_PDF_TOOLTIP_ZOOM_IN" desc="Button tooltip for the button which zooms in a PDF, so that the document appears larger"> <message name="IDS_PDF_TOOLTIP_ZOOM_IN" desc="Button tooltip for the button which zooms in a PDF, so that the document appears larger">
Zoom in Zoom in
</message> </message>
......
d18d1eaed325a2fc245262e5bff4cbde75cf7351
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment