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

Issue 160180: Merge 21312 - This CL fixes issue 2780 RTL: Omnibar message "Press Tab to s... (Closed)

Created:
11 years, 5 months ago by laforge
Modified:
9 years, 7 months ago
Reviewers:
xji
CC:
chromium-reviews_googlegroups.com, Ben Goodger (Google)
Visibility:
Public.

Description

Merge 21312 - This CL fixes issue 2780 RTL: Omnibar message "Press Tab to search Google" doesn't show correctly in a "New Tab" for RTL locales Because of the bug in PosFromChar() (see bug report for detailed information), we actually calculate the width of the string ourselves using font.GetStringWidth(). BUG=http://crbug.com/2780 TEST= 1 Start Chrome with a *new user data directory* and make sure the UI language is Hebrew. 2 Type www.google.com in the omnibox and press Enter. 3 Close and reopen the browser. 4 Type character "h" in Ominibox 5 Message "Press Tab to search Google" should show correctly, not only "Tab" is displayed Review URL: http://codereview.chromium.org/155789 TBR=xji@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=21667

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -34 lines) Patch
MM chrome/browser/views/location_bar_view.h View 1 chunk +12 lines, -10 lines 0 comments Download
MM chrome/browser/views/location_bar_view.cc View 5 chunks +25 lines, -24 lines 0 comments Download

Messages

Total messages: 1 (0 generated)
laforge
11 years, 5 months ago (2009-07-27 18:43:47 UTC) #1

          

Powered by Google App Engine
This is Rietveld 408576698