Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 45 // given boundary is found, and return the offset of that boundary, | 45 // given boundary is found, and return the offset of that boundary, |
| 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. | |
| 56 base::string16 AX_EXPORT | |
| 57 ActionToString(const AXSupportedAction supported_action); | |
| 58 | |
| 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. | |
|
dmazzoni
2016/12/13 23:24:34
What are we going to do if the name of the string
| |
| 61 base::string16 AX_EXPORT | |
| 62 ActionToUnlocalizedString(const AXSupportedAction supported_action); | |
| 63 | |
| 55 } // namespace ui | 64 } // namespace ui |
| 56 | 65 |
| 57 #endif // UI_ACCESSIBILITY_AX_TEXT_UTILS_H_ | 66 #endif // UI_ACCESSIBILITY_AX_TEXT_UTILS_H_ |
| OLD | NEW |