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

Side by Side Diff: ui/gfx/text_utils.h

Issue 16051006: ui/gfx: Use base::string16 now that string16 was moved into base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
« no previous file with comments | « ui/gfx/render_text_unittest.cc ('k') | ui/gfx/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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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_GFX_TEXT_UTILS_H_ 5 #ifndef UI_GFX_TEXT_UTILS_H_
6 #define UI_GFX_TEXT_UTILS_H_ 6 #define UI_GFX_TEXT_UTILS_H_
7 7
8 #include "base/string16.h" 8 #include "base/string16.h"
9 #include "ui/base/ui_export.h" 9 #include "ui/base/ui_export.h"
10 10
11 namespace gfx { 11 namespace gfx {
12 12
13 // Strip the accelerator char (typically '&') from a menu string. A double 13 // Strip the accelerator char (typically '&') from a menu string. A double
14 // accelerator char ('&&') will be converted to a single char. The out params 14 // accelerator char ('&&') will be converted to a single char. The out params
15 // |accelerated_char_pos| and |accelerated_char_span| will be set to the index 15 // |accelerated_char_pos| and |accelerated_char_span| will be set to the index
16 // and span of the last accelerated character, respectively, or -1 and 0 if 16 // and span of the last accelerated character, respectively, or -1 and 0 if
17 // there was none. 17 // there was none.
18 UI_EXPORT string16 RemoveAcceleratorChar(const string16& s, 18 UI_EXPORT base::string16 RemoveAcceleratorChar(const base::string16& s,
19 char16 accelerator_char, 19 base::char16 accelerator_char,
20 int* accelerated_char_pos, 20 int* accelerated_char_pos,
21 int* accelerated_char_span); 21 int* accelerated_char_span);
22 22
23 } // namespace gfx 23 } // namespace gfx
24 24
25 #endif // UI_GFX_TEXT_UTILS_H_ 25 #endif // UI_GFX_TEXT_UTILS_H_
OLDNEW
« no previous file with comments | « ui/gfx/render_text_unittest.cc ('k') | ui/gfx/text_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698