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

Unified Diff: ui/accessibility/ax_text_utils.cc

Issue 2863703003: A11y: Rename AXSupportedAction to AXDefaultActionVerb. (Closed)
Patch Set: Rebase. Created 3 years, 7 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 | « ui/accessibility/ax_text_utils.h ('k') | ui/accessibility/platform/ax_platform_node_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/accessibility/ax_text_utils.cc
diff --git a/ui/accessibility/ax_text_utils.cc b/ui/accessibility/ax_text_utils.cc
index af14f97db645da4886a56056ca5e54c9c6cf54fd..67ca7642a246f4c4f63ab814a28f4d60ffa1fe83 100644
--- a/ui/accessibility/ax_text_utils.cc
+++ b/ui/accessibility/ax_text_utils.cc
@@ -115,25 +115,26 @@ size_t FindAccessibleTextBoundary(const base::string16& text,
}
}
-base::string16 ActionToString(const AXSupportedAction supported_action) {
- switch (supported_action) {
- case AX_SUPPORTED_ACTION_NONE:
+base::string16 ActionVerbToLocalizedString(
+ const AXDefaultActionVerb action_verb) {
+ switch (action_verb) {
+ case AX_DEFAULT_ACTION_VERB_NONE:
return base::string16();
- case AX_SUPPORTED_ACTION_ACTIVATE:
+ case AX_DEFAULT_ACTION_VERB_ACTIVATE:
return l10n_util::GetStringUTF16(IDS_AX_ACTIVATE_ACTION_VERB);
- case AX_SUPPORTED_ACTION_CHECK:
+ case AX_DEFAULT_ACTION_VERB_CHECK:
return l10n_util::GetStringUTF16(IDS_AX_CHECK_ACTION_VERB);
- case AX_SUPPORTED_ACTION_CLICK:
+ case AX_DEFAULT_ACTION_VERB_CLICK:
return l10n_util::GetStringUTF16(IDS_AX_CLICK_ACTION_VERB);
- case AX_SUPPORTED_ACTION_JUMP:
+ case AX_DEFAULT_ACTION_VERB_JUMP:
return l10n_util::GetStringUTF16(IDS_AX_JUMP_ACTION_VERB);
- case AX_SUPPORTED_ACTION_OPEN:
+ case AX_DEFAULT_ACTION_VERB_OPEN:
return l10n_util::GetStringUTF16(IDS_AX_OPEN_ACTION_VERB);
- case AX_SUPPORTED_ACTION_PRESS:
+ case AX_DEFAULT_ACTION_VERB_PRESS:
return l10n_util::GetStringUTF16(IDS_AX_PRESS_ACTION_VERB);
- case AX_SUPPORTED_ACTION_SELECT:
+ case AX_DEFAULT_ACTION_VERB_SELECT:
return l10n_util::GetStringUTF16(IDS_AX_SELECT_ACTION_VERB);
- case AX_SUPPORTED_ACTION_UNCHECK:
+ case AX_DEFAULT_ACTION_VERB_UNCHECK:
return l10n_util::GetStringUTF16(IDS_AX_UNCHECK_ACTION_VERB);
}
NOTREACHED();
@@ -141,26 +142,26 @@ base::string16 ActionToString(const AXSupportedAction supported_action) {
}
// Some APIs on Linux and Windows need to return non-localized action names.
-base::string16 ActionToUnlocalizedString(
- const AXSupportedAction supported_action) {
- switch (supported_action) {
- case ui::AX_SUPPORTED_ACTION_NONE:
+base::string16 ActionVerbToUnlocalizedString(
+ const AXDefaultActionVerb action_verb) {
+ switch (action_verb) {
+ case ui::AX_DEFAULT_ACTION_VERB_NONE:
return base::UTF8ToUTF16("none");
- case ui::AX_SUPPORTED_ACTION_ACTIVATE:
+ case ui::AX_DEFAULT_ACTION_VERB_ACTIVATE:
return base::UTF8ToUTF16("activate");
- case ui::AX_SUPPORTED_ACTION_CHECK:
+ case ui::AX_DEFAULT_ACTION_VERB_CHECK:
return base::UTF8ToUTF16("check");
- case ui::AX_SUPPORTED_ACTION_CLICK:
+ case ui::AX_DEFAULT_ACTION_VERB_CLICK:
return base::UTF8ToUTF16("click");
- case ui::AX_SUPPORTED_ACTION_JUMP:
+ case ui::AX_DEFAULT_ACTION_VERB_JUMP:
return base::UTF8ToUTF16("jump");
- case ui::AX_SUPPORTED_ACTION_OPEN:
+ case ui::AX_DEFAULT_ACTION_VERB_OPEN:
return base::UTF8ToUTF16("open");
- case ui::AX_SUPPORTED_ACTION_PRESS:
+ case ui::AX_DEFAULT_ACTION_VERB_PRESS:
return base::UTF8ToUTF16("press");
- case ui::AX_SUPPORTED_ACTION_SELECT:
+ case ui::AX_DEFAULT_ACTION_VERB_SELECT:
return base::UTF8ToUTF16("select");
- case ui::AX_SUPPORTED_ACTION_UNCHECK:
+ case ui::AX_DEFAULT_ACTION_VERB_UNCHECK:
return base::UTF8ToUTF16("uncheck");
}
NOTREACHED();
« no previous file with comments | « ui/accessibility/ax_text_utils.h ('k') | ui/accessibility/platform/ax_platform_node_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698