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

Side by Side Diff: third_party/WebKit/Source/platform/text/StringTruncator.cpp

Issue 2799683005: Rewrite references to "wtf/" to "platform/wtf/" in platform/text. (Closed)
Patch Set: Created 3 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2005, 2006, 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2005, 2006, 2007 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 13 matching lines...) Expand all
24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */ 27 */
28 28
29 #include "platform/text/StringTruncator.h" 29 #include "platform/text/StringTruncator.h"
30 30
31 #include "platform/fonts/Font.h" 31 #include "platform/fonts/Font.h"
32 #include "platform/text/TextBreakIterator.h" 32 #include "platform/text/TextBreakIterator.h"
33 #include "platform/text/TextRun.h" 33 #include "platform/text/TextRun.h"
34 #include "wtf/Assertions.h" 34 #include "platform/wtf/Assertions.h"
35 #include "wtf/text/CharacterNames.h" 35 #include "platform/wtf/text/CharacterNames.h"
36 36
37 namespace blink { 37 namespace blink {
38 38
39 #define STRING_BUFFER_SIZE 2048 39 #define STRING_BUFFER_SIZE 2048
40 40
41 typedef unsigned TruncationFunction(const String&, 41 typedef unsigned TruncationFunction(const String&,
42 unsigned length, 42 unsigned length,
43 unsigned keepCount, 43 unsigned keepCount,
44 UChar* buffer); 44 UChar* buffer);
45 45
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 float maxWidth, 209 float maxWidth,
210 const Font& font) { 210 const Font& font) {
211 return truncateString(string, maxWidth, font, rightTruncateToBuffer); 211 return truncateString(string, maxWidth, font, rightTruncateToBuffer);
212 } 212 }
213 213
214 float StringTruncator::width(const String& string, const Font& font) { 214 float StringTruncator::width(const String& string, const Font& font) {
215 return stringWidth(font, string); 215 return stringWidth(font, string);
216 } 216 }
217 217
218 } // namespace blink 218 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/text/StringTruncator.h ('k') | third_party/WebKit/Source/platform/text/SuffixTree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698