summaryrefslogtreecommitdiffstats
path: root/ui/keyboard/keyboard_controller.h
diff options
context:
space:
mode:
authormsw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-10 21:40:37 +0000
committermsw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-10 21:40:37 +0000
commit8d93614f9306e6b53455b469b8acf98613b4d417 (patch)
tree6e78a7cec4c7dfadfbb02cedd114969a13a19682 /ui/keyboard/keyboard_controller.h
parent0a3fca5aa2c58975f85cc4d1181d98f328afa5f6 (diff)
downloadchromium_src-8d93614f9306e6b53455b469b8acf98613b4d417.zip
chromium_src-8d93614f9306e6b53455b469b8acf98613b4d417.tar.gz
chromium_src-8d93614f9306e6b53455b469b8acf98613b4d417.tar.bz2
Move gfx::ElideText functionality to RenderText.
This is a prerequisite for http://crrev.com/23228004 (RenderText must elide correctly for direct Label use) Use RenderText in gfx::ElideText on Win, Linux, Mac. (old impl still needed for iOS and Android, for now) Support additional eliding types in RenderText. (matches behavior of gfx::ElideText, see TextEliderTest) (still fixes the directionality of trailing ellipses) (respect head and middle eliding when truncating) Disambiguate gfx::NO_ELIDE from gfx::TRUNCATE. Make the ElideEmail helper a private RenderText function. Disable tests and no-op gfx::ElideText on iOS/Android. Improve ElideTextSurrogatePairs perf: 7561 ms -> 3196 ms. TODO: Fix RenderText::ElideEmail GetStringWidthF calls. TODO: Support eliding filenames, like gfx::ElideFilename. BUG=249938,327846,240037,125348,338784 R=asvitkine@chromium.org,sky@chromium.org TEST=No observable text eliding behavior changes. Review URL: https://codereview.chromium.org/354963003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282433 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/keyboard/keyboard_controller.h')
0 files changed, 0 insertions, 0 deletions