-
Trent Apted authored
On Mac, Secondary UI can be typeset differently to Browser UI, since one is drawn by Views and the other by Cocoa. This can influence things like text width in subtle ways. On Mac, gfx::Elide methods need to be aware of how the text will eventually be typeset. This CL adds enum class gfx::Typesetter, which can be fed through to gfx:: methods used for eliding text or determining its width. For the first step, update callers of gfx::ElideFilename to use the correct typesetter. Bug: 798927, 697407 Change-Id: I7eea58391475a68fefc469e7b87729664087777d Reviewed-on: https://chromium-review.googlesource.com/848695Reviewed-by:
Michael Wasserman <msw@chromium.org> Reviewed-by:
David Trainor <dtrainor@chromium.org> Commit-Queue: Trent Apted <tapted@chromium.org> Cr-Commit-Position: refs/heads/master@{#528199}
15bd76a4