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

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

Issue 2518183002: Moved action verbs out of Blink. (Closed)
Patch Set: Added missing braces. Created 4 years 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
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.
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_
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