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

Unified Diff: ui/gfx/canvas.h

Issue 1013543006: [RenderText] Adding vertical alignment options (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed pixel tests on vertical alignment Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/gfx/canvas_skia.cc » ('j') | ui/gfx/canvas_skia.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/canvas.h
diff --git a/ui/gfx/canvas.h b/ui/gfx/canvas.h
index 88882fa2f765d1c754655df1e688588615e4124c..96b2b941f51d4544ebdc897f81d1df704823c478 100644
--- a/ui/gfx/canvas.h
+++ b/ui/gfx/canvas.h
@@ -69,6 +69,11 @@ class GFX_EXPORT Canvas {
// when rendering text onto a fully- or partially-transparent background
// that will later be blended with another image.
NO_SUBPIXEL_RENDERING = 1 << 9,
+
+ // Specifies the alignment for text rendered with the DrawStringRect method.
msw 2015/04/01 15:07:17 Let's not add these flags unless they are imminent
+ TEXT_ALIGN_TOP = 1 << 10,
+ TEXT_ALIGN_MIDDLE = 1 << 11,
+ TEXT_ALIGN_BOTTOM = 1 << 12,
};
// Creates an empty canvas with image_scale of 1x.
« no previous file with comments | « no previous file | ui/gfx/canvas_skia.cc » ('j') | ui/gfx/canvas_skia.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698