summaryrefslogtreecommitdiffstats
path: root/ui/gfx/pango_util.h
diff options
context:
space:
mode:
authormsw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-01 21:57:31 +0000
committermsw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-01 21:57:31 +0000
commit46cb5380832a688d32cc39a25080381f90a204f2 (patch)
tree66795e797e715e0a32b2098ad955f93cd8bb08b0 /ui/gfx/pango_util.h
parentf06188681397c7d6bc785d5dc9c26092c1f3ac03 (diff)
downloadchromium_src-46cb5380832a688d32cc39a25080381f90a204f2.zip
chromium_src-46cb5380832a688d32cc39a25080381f90a204f2.tar.gz
chromium_src-46cb5380832a688d32cc39a25080381f90a204f2.tar.bz2
Add RenderText DirectionalityMode enum and support; etc.
Add gfx::DirectionalityMode enum. Add RenderText::SetDirectionalityMode and member. Revise/consolidate RenderText::GetTextDirection. Expand on existing unit tests; minor cleanup. Consume GetTextDirection in layout initialization: -Windows: RenderTextWin::ItemizeLogicalText() -Linux: SetupPangoLayoutWithoutFont() -Mac: Add TODO in RenderTextMac::EnsureLayout() BUG=134746 TEST=Existing/updated unit tests, no behavioral changes! Review URL: https://chromiumcodereview.appspot.com/10807082 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149503 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/pango_util.h')
-rw-r--r--ui/gfx/pango_util.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/ui/gfx/pango_util.h b/ui/gfx/pango_util.h
index f14c0e6..533d2b0 100644
--- a/ui/gfx/pango_util.h
+++ b/ui/gfx/pango_util.h
@@ -64,10 +64,9 @@ void UI_EXPORT DrawTextOntoCairoSurface(cairo_t* cr,
// They are shared with internal skia interfaces.
// ----------------------------------------------------------------------------
-// Setup pango layout |layout|, including set layout text as |text|, font
-// description based on |font|, width as |width| in PANGO_SCALE for RTL lcoale,
-// and set up whether auto-detect directionality, alignment, ellipsis, word
-// wrapping, resolution etc.
+// Setup pango |layout|; set the |text|, the font description based on |font|,
+// the |width| in PANGO_SCALE for RTL locale, the base |text_direction|,
+// alignment, ellipsis, word wrapping, resolution, etc.
void SetupPangoLayout(PangoLayout* layout,
const string16& text,
const gfx::Font& font,