| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 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_ | 
| OLD | NEW | 
|---|