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

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
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 // using the vector of line break character offsets in |line_breaks|. 46 // using the vector of line break character offsets in |line_breaks|.
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 ActionToString(const AXDefaultActionVerb action_verb);
57 ActionToString(const AXSupportedAction supported_action);
58 57
59 // Returns the non-localized string representation of a supported action. 58 // Returns the non-localized string representation of a supported action.
60 // Some APIs on Linux and Windows need to return non-localized action names. 59 // Some APIs on Linux and Windows need to return non-localized action names.
61 base::string16 AX_EXPORT 60 base::string16 AX_EXPORT
62 ActionToUnlocalizedString(const AXSupportedAction supported_action); 61 ActionToUnlocalizedString(const AXDefaultActionVerb action_verb);
63 62
64 } // namespace ui 63 } // namespace ui
65 64
66 #endif // UI_ACCESSIBILITY_AX_TEXT_UTILS_H_ 65 #endif // UI_ACCESSIBILITY_AX_TEXT_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698