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

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

Issue 1543183002: Switch to standard integer types in ui/gfx/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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/text_elider_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 <stddef.h>
9
8 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
9 #include "ui/gfx/gfx_export.h" 11 #include "ui/gfx/gfx_export.h"
10 12
11 namespace gfx { 13 namespace gfx {
12 14
13 class FontList; 15 class FontList;
14 16
15 // Strip the accelerator char (typically '&') from a menu string. A double 17 // Strip the accelerator char (typically '&') from a menu string. A double
16 // accelerator char ('&&') will be converted to a single char. The out params 18 // accelerator char ('&&') will be converted to a single char. The out params
17 // |accelerated_char_pos| and |accelerated_char_span| will be set to the index 19 // |accelerated_char_pos| and |accelerated_char_span| will be set to the index
(...skipping 19 matching lines...) Expand all
37 FindValidBoundaryBefore(const base::string16& text, size_t index); 39 FindValidBoundaryBefore(const base::string16& text, size_t index);
38 40
39 // Returns a valid cut boundary at or after |index|. The surrogate pair and 41 // Returns a valid cut boundary at or after |index|. The surrogate pair and
40 // combining characters should not be separated. 42 // combining characters should not be separated.
41 GFX_EXPORT size_t 43 GFX_EXPORT size_t
42 FindValidBoundaryAfter(const base::string16& text, size_t index); 44 FindValidBoundaryAfter(const base::string16& text, size_t index);
43 45
44 } // namespace gfx 46 } // namespace gfx
45 47
46 #endif // UI_GFX_TEXT_UTILS_H_ 48 #endif // UI_GFX_TEXT_UTILS_H_
OLDNEW
« no previous file with comments | « ui/gfx/text_elider_unittest.cc ('k') | ui/gfx/text_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698