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

Side by Side Diff: ui/accessibility/ax_text_utils.h

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 unified diff | Download patch
« no previous file with comments | « ui/accessibility/ax_node_data.cc ('k') | ui/accessibility/ax_text_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_ACCESSIBILITY_AX_TEXT_UTILS_H_ 5 #ifndef UI_ACCESSIBILITY_AX_TEXT_UTILS_H_
6 #define UI_ACCESSIBILITY_AX_TEXT_UTILS_H_ 6 #define UI_ACCESSIBILITY_AX_TEXT_UTILS_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 size_t AX_EXPORT 47 size_t AX_EXPORT
48 FindAccessibleTextBoundary(const base::string16& text, 48 FindAccessibleTextBoundary(const base::string16& text,
49 const std::vector<int>& line_breaks, 49 const std::vector<int>& line_breaks,
50 TextBoundaryType boundary, 50 TextBoundaryType boundary,
51 size_t start_offset, 51 size_t start_offset,
52 TextBoundaryDirection direction, 52 TextBoundaryDirection direction,
53 AXTextAffinity affinity); 53 AXTextAffinity affinity);
54 54
55 // Returns a string ID that corresponds to the name of the given action. 55 // Returns a string ID that corresponds to the name of the given action.
56 base::string16 AX_EXPORT 56 base::string16 AX_EXPORT
57 ActionToString(const AXSupportedAction supported_action); 57 ActionVerbToLocalizedString(const AXDefaultActionVerb action_verb);
58 58
59 // Returns the non-localized string representation of a supported action. 59 // Returns the non-localized string representation of a supported action.
60 // Some APIs on Linux and Windows need to return non-localized action names. 60 // Some APIs on Linux and Windows need to return non-localized action names.
61 base::string16 AX_EXPORT 61 base::string16 AX_EXPORT
62 ActionToUnlocalizedString(const AXSupportedAction supported_action); 62 ActionVerbToUnlocalizedString(const AXDefaultActionVerb action_verb);
63 63
64 } // namespace ui 64 } // namespace ui
65 65
66 #endif // UI_ACCESSIBILITY_AX_TEXT_UTILS_H_ 66 #endif // UI_ACCESSIBILITY_AX_TEXT_UTILS_H_
OLDNEW
« no previous file with comments | « ui/accessibility/ax_node_data.cc ('k') | ui/accessibility/ax_text_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698