OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 APP_GFX_TEXT_ELIDER_H_ | 5 #ifndef APP_GFX_TEXT_ELIDER_H_ |
6 #define APP_GFX_TEXT_ELIDER_H_ | 6 #define APP_GFX_TEXT_ELIDER_H_ |
7 | 7 |
8 #include <unicode/coll.h> | 8 #include <unicode/coll.h> |
9 #include <unicode/uchar.h> | 9 #include <unicode/uchar.h> |
10 | 10 |
11 #include "app/gfx/font.h" | |
12 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
13 #include "base/string16.h" | 12 #include "base/string16.h" |
| 13 #include "gfx/font.h" |
14 | 14 |
15 class FilePath; | 15 class FilePath; |
16 class GURL; | 16 class GURL; |
17 | 17 |
18 // TODO(port): this file should deal in string16s rather than wstrings. | 18 // TODO(port): this file should deal in string16s rather than wstrings. |
19 namespace gfx { | 19 namespace gfx { |
20 | 20 |
21 // This function takes a GURL object and elides it. It returns a string | 21 // This function takes a GURL object and elides it. It returns a string |
22 // which composed of parts from subdomain, domain, path, filename and query. | 22 // which composed of parts from subdomain, domain, path, filename and query. |
23 // A "..." is added automatically at the end if the elided string is bigger | 23 // A "..." is added automatically at the end if the elided string is bigger |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 | 78 |
79 // End of the prefix (spec and separator) in display_url_. | 79 // End of the prefix (spec and separator) in display_url_. |
80 size_t prefix_end_; | 80 size_t prefix_end_; |
81 | 81 |
82 string16 display_url_; | 82 string16 display_url_; |
83 }; | 83 }; |
84 | 84 |
85 } // namespace gfx. | 85 } // namespace gfx. |
86 | 86 |
87 #endif // APP_GFX_TEXT_ELIDER_H_ | 87 #endif // APP_GFX_TEXT_ELIDER_H_ |
OLD | NEW |