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

Side by Side Diff: ui/base/accessibility/accessible_text_utils.h

Issue 16402012: Use a direct include of strings headers in ui/, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « ui/base/accelerators/accelerator.cc ('k') | ui/base/accessibility/accessible_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_BASE_ACCESSIBILITY_ACCESSIBLE_TEXT_UTILS_H_ 5 #ifndef UI_BASE_ACCESSIBILITY_ACCESSIBLE_TEXT_UTILS_H_
6 #define UI_BASE_ACCESSIBILITY_ACCESSIBLE_TEXT_UTILS_H_ 6 #define UI_BASE_ACCESSIBILITY_ACCESSIBLE_TEXT_UTILS_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/string16.h" 11 #include "base/strings/string16.h"
12 #include "ui/base/ui_export.h" 12 #include "ui/base/ui_export.h"
13 13
14 namespace ui { 14 namespace ui {
15 15
16 // Boundaries that can be passed to FindAccessibleTextBoundary, 16 // Boundaries that can be passed to FindAccessibleTextBoundary,
17 // representing various visual boundaries in (potentially multi-line) 17 // representing various visual boundaries in (potentially multi-line)
18 // text. This is used by assistive technology in order to, for example, 18 // 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 19 // 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. 20 // text from the current cursor position to the end of the line.
21 // These should be self-explanatory; "line" here refers to the visual 21 // These should be self-explanatory; "line" here refers to the visual
(...skipping 22 matching lines...) Expand all
44 // using the vector of line break character offsets in |line_breaks|. 44 // using the vector of line break character offsets in |line_breaks|.
45 size_t UI_EXPORT FindAccessibleTextBoundary(const string16& text, 45 size_t UI_EXPORT FindAccessibleTextBoundary(const string16& text,
46 const std::vector<int>& line_breaks, 46 const std::vector<int>& line_breaks,
47 TextBoundaryType boundary, 47 TextBoundaryType boundary,
48 size_t start_offset, 48 size_t start_offset,
49 TextBoundaryDirection direction); 49 TextBoundaryDirection direction);
50 50
51 } // namespace ui 51 } // namespace ui
52 52
53 #endif // UI_BASE_ACCESSIBILITY_ACCESSIBLE_TEXT_UTILS_H_ 53 #endif // UI_BASE_ACCESSIBILITY_ACCESSIBLE_TEXT_UTILS_H_
OLDNEW
« no previous file with comments | « ui/base/accelerators/accelerator.cc ('k') | ui/base/accessibility/accessible_text_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698