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

Unified Diff: ui/gfx/canvas_skia_linux.cc

Issue 7491083: Implemented nicer battery status (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fix Created 9 years, 4 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/browser/chromeos/status/status_area_button.cc ('k') | views/controls/menu/menu_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/canvas_skia_linux.cc
diff --git a/ui/gfx/canvas_skia_linux.cc b/ui/gfx/canvas_skia_linux.cc
index 7cf72d50d2ddbaefd603c9f0c88951c8e88c9783..c6214d7a95879c071b342262c5698444f4bb99ca 100644
--- a/ui/gfx/canvas_skia_linux.cc
+++ b/ui/gfx/canvas_skia_linux.cc
@@ -129,6 +129,8 @@ void SetupPangoLayout(PangoLayout* layout,
pango_layout_set_width(layout, width * PANGO_SCALE);
if (flags & gfx::Canvas::TEXT_ALIGN_CENTER) {
+ // We don't support center aligned w/ eliding.
+ DCHECK(gfx::Canvas::NO_ELLIPSIS);
pango_layout_set_alignment(layout, PANGO_ALIGN_CENTER);
} else if (flags & gfx::Canvas::TEXT_ALIGN_RIGHT) {
pango_layout_set_alignment(layout, PANGO_ALIGN_RIGHT);
« no previous file with comments | « chrome/browser/chromeos/status/status_area_button.cc ('k') | views/controls/menu/menu_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698