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

Issue 7453050: Plumb the title direction up to the renderer host (Closed)

Created:
9 years, 4 months ago by Evan Martin
Modified:
9 years, 4 months ago
Reviewers:
brettw, jam, jeremy
CC:
chromium-reviews, joi+watch-content_chromium.org, Avi (use Gerrit), jam, brettw-cc_chromium.org
Visibility:
Public.

Description

Plumb the title direction up to the renderer host We need the title direction to properly display titles in Chrome UI. Previously I tried just modifying the title when we get it from WebKit to include directionality overrides, but the extensions API needs the underlying title without direction markers. This change plumbs the title direction up to RenderViewHostDelegate. A further patch will make use of it from there. BUG=27094 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=95007

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : rearrange #

Patch Set 4 : rearrange #

Total comments: 1

Patch Set 5 : fix #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -28 lines) Patch
M chrome/browser/tab_contents/web_contents_unittest.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_view_host.h View 1 1 chunk +2 lines, -1 line 1 comment Download
M content/browser/renderer_host/render_view_host.cc View 1 2 2 chunks +22 lines, -4 lines 1 comment Download
M content/browser/renderer_host/render_view_host_delegate.h View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/tab_contents/interstitial_page.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/tab_contents/interstitial_page.cc View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M content/browser/tab_contents/tab_contents.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/tab_contents/tab_contents.cc View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M content/common/view_messages.h View 1 2 2 chunks +5 lines, -3 lines 0 comments Download
M content/renderer/render_view.h View 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/render_view.cc View 1 3 chunks +13 lines, -13 lines 2 comments Download

Messages

Total messages: 5 (0 generated)
Evan Martin
jam for content approval
9 years, 4 months ago (2011-08-01 19:39:23 UTC) #1
Evan Martin
ping
9 years, 4 months ago (2011-08-01 21:02:04 UTC) #2
brettw
LGTM http://codereview.chromium.org/7453050/diff/3004/content/renderer/render_view.cc File content/renderer/render_view.cc (right): http://codereview.chromium.org/7453050/diff/3004/content/renderer/render_view.cc#newcode1188 content/renderer/render_view.cc:1188: string16 shortened_title = title.substr(0, content::kMaxTitleChars); Personally, I'd remove ...
9 years, 4 months ago (2011-08-01 21:40:02 UTC) #3
jam
lgtm, sorry for the delay
9 years, 4 months ago (2011-08-01 22:35:01 UTC) #4
jeremy
9 years, 4 months ago (2011-08-02 09:34:37 UTC) #5
LGTM with review comments fixed.

http://codereview.chromium.org/7453050/diff/6001/content/browser/renderer_hos...
File content/browser/renderer_host/render_view_host.cc (right):

http://codereview.chromium.org/7453050/diff/6001/content/browser/renderer_hos...
content/browser/renderer_host/render_view_host.cc:72: return
base::i18n::LEFT_TO_RIGHT;
I think you mean RIGHT_TO_LEFT

http://codereview.chromium.org/7453050/diff/6001/content/browser/renderer_hos...
File content/browser/renderer_host/render_view_host.h (right):

http://codereview.chromium.org/7453050/diff/6001/content/browser/renderer_hos...
content/browser/renderer_host/render_view_host.h:416: WebKit::WebTextDirection
title_direction);
nit: Style here seems to be one parameter per line.

http://codereview.chromium.org/7453050/diff/6001/content/renderer/render_view.cc
File content/renderer/render_view.cc (right):

http://codereview.chromium.org/7453050/diff/6001/content/renderer/render_view...
content/renderer/render_view.cc:1183: WebTextDirection title_direction) {
nit: one param per line.

http://codereview.chromium.org/7453050/diff/6001/content/renderer/render_view...
content/renderer/render_view.cc:2611:
frame->view()->mainFrame()->dataSource()->pageTitleDirection());
nit: how about putting frame->view()->mainFrame()->dataSource() in a temp
variable?

Powered by Google App Engine
This is Rietveld 408576698