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

Unified Diff: chrome/common/gfx/chrome_canvas.cc

Issue 8991: Always show file extensions in the shelf. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/gfx/chrome_canvas.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/gfx/chrome_canvas.cc
===================================================================
--- chrome/common/gfx/chrome_canvas.cc (revision 4245)
+++ chrome/common/gfx/chrome_canvas.cc (working copy)
@@ -232,10 +232,13 @@
else if ((flags & SHOW_PREFIX) == 0)
f |= DT_NOPREFIX;
- if (flags & MULTI_LINE)
+ if (flags & MULTI_LINE) {
f |= DT_WORDBREAK;
- else
- f |= DT_SINGLELINE | DT_END_ELLIPSIS | DT_VCENTER;
+ } else {
+ f |= DT_SINGLELINE | DT_VCENTER;
+ if (!(flags & NO_ELLIPSIS))
+ f |= DT_END_ELLIPSIS;
+ }
// vertical alignment
if (flags & TEXT_VALIGN_TOP)
« no previous file with comments | « chrome/common/gfx/chrome_canvas.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698