Skip to content

Commit

Permalink
Content description for settings button in keyboard accessory.
Browse files Browse the repository at this point in the history
A screen reader should verbalise "settings" instead of "autofill
settings three dots" when the user taps the gear icon on the keyboard
accessory.

BUG=428087

Review URL: https://codereview.chromium.org/1357243003

Cr-Commit-Position: refs/heads/master@{#350040}
  • Loading branch information
rsolomakhin authored and Commit bot committed Sep 21, 2015
1 parent ba54519 commit 7647c0a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions build/ios/grit_whitelist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ IDS_AUTOFILL_FIELD_LABEL_PREFECTURE
IDS_AUTOFILL_FIELD_LABEL_PROVINCE
IDS_AUTOFILL_FIELD_LABEL_STATE
IDS_AUTOFILL_FIELD_LABEL_ZIP_CODE
IDS_AUTOFILL_OPTIONS_CONTENT_DESCRIPTION
IDS_AUTOFILL_OPTIONS_POPUP
IDS_AUTOFILL_PASSWORD_FIELD_SUGGESTIONS_TITLE
IDS_AUTOFILL_SCAN_CREDIT_CARD
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,11 @@ void AutofillExternalDelegate::ApplyAutofillOptions(
}

// Append the 'Chrome Autofill options' menu item;
suggestions->push_back(Suggestion(
l10n_util::GetStringUTF16(IDS_AUTOFILL_OPTIONS_POPUP)));
// TODO(rouslan): Switch on the platform in the GRD file when keyboard
// accessory becomes default on Android.
suggestions->push_back(Suggestion(l10n_util::GetStringUTF16(
IsKeyboardAccessoryEnabled() ? IDS_AUTOFILL_OPTIONS_CONTENT_DESCRIPTION
: IDS_AUTOFILL_OPTIONS_POPUP)));
suggestions->back().frontend_id = POPUP_ITEM_ID_AUTOFILL_OPTIONS;
if (IsKeyboardAccessoryEnabled())
suggestions->back().icon = base::ASCIIToUTF16("settings");
Expand Down
3 changes: 3 additions & 0 deletions components/autofill_strings.grdp
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@
Chromium Autofill settings...
</message>
</if>
<message name="IDS_AUTOFILL_OPTIONS_CONTENT_DESCRIPTION" desc="The text verbalised by a screen reader for the button that directs the user to the Autofill settings UI. This string is not displayed.">
settings
</message>

<message name="IDS_AUTOFILL_CREDIT_CARD_NOT_SUPPORTED_BY_WALLET" desc="Message displayed to user when user entered a credit card number that is not supported by Google Payments.">
This type of card is not supported by Google Payments. Please select a different card.
Expand Down

0 comments on commit 7647c0a

Please sign in to comment.