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

Side by Side Diff: ui/base/text/text_elider.h

Issue 11734021: Roll ICU and convert include style to standard Chromium style, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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/models/table_model.h ('k') | ui/base/text/text_elider.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 // This file defines utility functions for eliding and formatting UI text. 5 // This file defines utility functions for eliding and formatting UI text.
6 6
7 #ifndef UI_BASE_TEXT_TEXT_ELIDER_H_ 7 #ifndef UI_BASE_TEXT_TEXT_ELIDER_H_
8 #define UI_BASE_TEXT_TEXT_ELIDER_H_ 8 #define UI_BASE_TEXT_TEXT_ELIDER_H_
9 9
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "base/string16.h" 14 #include "base/string16.h"
15 #include "third_party/icu/public/common/unicode/uchar.h"
16 #include "third_party/icu/public/i18n/unicode/coll.h"
15 #include "ui/base/ui_export.h" 17 #include "ui/base/ui_export.h"
16 #include "ui/gfx/font.h" 18 #include "ui/gfx/font.h"
17 #include "unicode/coll.h"
18 #include "unicode/uchar.h"
19 19
20 class FilePath; 20 class FilePath;
21 class GURL; 21 class GURL;
22 22
23 namespace ui { 23 namespace ui {
24 24
25 UI_EXPORT extern const char kEllipsis[]; 25 UI_EXPORT extern const char kEllipsis[];
26 26
27 // Elides a well-formed email address (e.g. username@domain.com) to fit into 27 // Elides a well-formed email address (e.g. username@domain.com) to fit into
28 // |available_pixel_width| using the specified |font|. 28 // |available_pixel_width| using the specified |font|.
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 // Truncates the string to length characters. This breaks the string at 193 // Truncates the string to length characters. This breaks the string at
194 // the first word break before length, adding the horizontal ellipsis 194 // the first word break before length, adding the horizontal ellipsis
195 // character (unicode character 0x2026) to render ... 195 // character (unicode character 0x2026) to render ...
196 // The supplied string is returned if the string has length characters or 196 // The supplied string is returned if the string has length characters or
197 // less. 197 // less.
198 UI_EXPORT string16 TruncateString(const string16& string, size_t length); 198 UI_EXPORT string16 TruncateString(const string16& string, size_t length);
199 199
200 } // namespace ui 200 } // namespace ui
201 201
202 #endif // UI_BASE_TEXT_TEXT_ELIDER_H_ 202 #endif // UI_BASE_TEXT_TEXT_ELIDER_H_
OLDNEW
« no previous file with comments | « ui/base/models/table_model.h ('k') | ui/base/text/text_elider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698