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

Side by Side Diff: app/text_elider.h

Issue 1132006: Move app/gfx/canvas and app/gfx/font to gfx/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 9 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 | « app/resource_bundle_win.cc ('k') | app/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) 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
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_
OLDNEW
« no previous file with comments | « app/resource_bundle_win.cc ('k') | app/text_elider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698