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

Issue 577032: The translate feature was only translating the main frame of the page.... (Closed)

Created:
10 years, 10 months ago by jcampan
Modified:
9 years, 7 months ago
CC:
chromium-reviews, brettw+cc_chromium.org, darin (slow to review), jam
Visibility:
Public.

Description

The translate feature was only translating the main frame of the page. This CL makes it also translate frames and iframes. BUG=34533 TEST=See bug for repro case. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=38475

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 1

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -21 lines) Patch
M chrome/renderer/navigation_state.h View 1 2 3 3 chunks +8 lines, -1 line 0 comments Download
M chrome/renderer/render_view.cc View 1 2 3 4 chunks +12 lines, -4 lines 0 comments Download
M chrome/renderer/translate/page_translator.h View 1 2 3 1 chunk +20 lines, -8 lines 0 comments Download
M chrome/renderer/translate/page_translator.cc View 1 2 3 5 chunks +42 lines, -7 lines 0 comments Download
M chrome/renderer/translate/page_translator_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 2 (0 generated)
jcampan
10 years, 10 months ago (2010-02-05 23:12:21 UTC) #1
darin (slow to review)
10 years, 10 months ago (2010-02-06 02:45:20 UTC) #2
LGTM

http://codereview.chromium.org/577032/diff/10/14
File chrome/renderer/render_view.cc (right):

http://codereview.chromium.org/577032/diff/10/14#newcode2397
chrome/renderer/render_view.cc:2397: if (frame == webview()->mainFrame()) {
nit: I usually just write if (!frame->parent()) instead since it is a bit more
compact.

Powered by Google App Engine
This is Rietveld 408576698