| 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> |
| 9 |
| 8 #include <vector> | 10 #include <vector> |
| 9 | 11 |
| 10 #include "base/basictypes.h" | |
| 11 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
| 12 #include "ui/accessibility/ax_export.h" | 13 #include "ui/accessibility/ax_export.h" |
| 13 | 14 |
| 14 namespace ui { | 15 namespace ui { |
| 15 | 16 |
| 16 // Boundaries that can be passed to FindAccessibleTextBoundary, | 17 // Boundaries that can be passed to FindAccessibleTextBoundary, |
| 17 // representing various visual boundaries in (potentially multi-line) | 18 // representing various visual boundaries in (potentially multi-line) |
| 18 // text. This is used by assistive technology in order to, for example, | 19 // text. This is used by assistive technology in order to, for example, |
| 19 // retrieve the nearest word to the cursor, or retrieve all of the | 20 // retrieve the nearest word to the cursor, or retrieve all of the |
| 20 // text from the current cursor position to the end of the line. | 21 // text from the current cursor position to the end of the line. |
| (...skipping 24 matching lines...) Expand all Loading... |
| 45 size_t AX_EXPORT | 46 size_t AX_EXPORT |
| 46 FindAccessibleTextBoundary(const base::string16& text, | 47 FindAccessibleTextBoundary(const base::string16& text, |
| 47 const std::vector<int>& line_breaks, | 48 const std::vector<int>& line_breaks, |
| 48 TextBoundaryType boundary, | 49 TextBoundaryType boundary, |
| 49 size_t start_offset, | 50 size_t start_offset, |
| 50 TextBoundaryDirection direction); | 51 TextBoundaryDirection direction); |
| 51 | 52 |
| 52 } // namespace ui | 53 } // namespace ui |
| 53 | 54 |
| 54 #endif // UI_ACCESSIBILITY_AX_TEXT_UTILS_H_ | 55 #endif // UI_ACCESSIBILITY_AX_TEXT_UTILS_H_ |
| OLD | NEW |