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

Issue 2788343002: Translate page in the new UI. (Closed)

Created:
3 years, 8 months ago by Leo
Modified:
3 years, 8 months ago
Reviewers:
groby-ooo-7-16, gone
CC:
chromium-reviews, dfalcantara+watch_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Translate page in the new UI. This CL implements the basic functions of the new translate infobar under a protection of the experiment flag. 1, Make TranslateCompactInfoBar as an observer for the ContentTranslateDriver to response page translated event. 2, Stop translate UI reloading before translate infobar was closed explicitly. 3, Polish UI. Demo record: https://googleo.users.x20web.corp.google.com/chrome/videos/transdemo1.mp4 BUG=703887 Review-Url: https://codereview.chromium.org/2788343002 Cr-Commit-Position: refs/heads/master@{#462780} Committed: https://chromium.googlesource.com/chromium/src/+/92d27790b430374991505d62025876708e54b6ba

Patch Set 1 #

Patch Set 2 : refactor #

Total comments: 19

Patch Set 3 : code refactor #

Patch Set 4 : compact unit test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -82 lines) Patch
M chrome/android/java/res/layout/infobar_translate_compact_content.xml View 1 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/android/java/res/values/dimens.xml View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/infobar/TranslateCompactInfoBar.java View 1 2 3 chunks +49 lines, -37 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/infobar/TranslateInfoBar.java View 1 2 2 chunks +5 lines, -13 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/infobar/TranslateLanguagePanel.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/infobar/TranslateOptions.java View 1 2 1 chunk +18 lines, -9 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/infobar/translate/TranslateTabLayout.java View 1 2 2 chunks +13 lines, -2 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/translate/TranslateInfoBarTest.java View 1 2 3 4 chunks +19 lines, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/translate/TranslateOptionsTest.java View 1 2 5 chunks +7 lines, -12 lines 0 comments Download
M chrome/browser/ui/android/infobars/translate_compact_infobar.h View 1 2 4 chunks +11 lines, -2 lines 0 comments Download
M chrome/browser/ui/android/infobars/translate_compact_infobar.cc View 1 3 chunks +53 lines, -5 lines 0 comments Download
M chrome/test/android/javatests/src/org/chromium/chrome/test/util/TranslateUtil.java View 1 2 3 2 chunks +12 lines, -0 lines 0 comments Download
M components/translate/core/browser/translate_infobar_delegate.cc View 1 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 25 (16 generated)
gone
Looking good... are you at the point where you should be considering some tests? https://codereview.chromium.org/2788343002/diff/20001/chrome/android/java/res/layout/infobar_translate_compact_content.xml ...
3 years, 8 months ago (2017-04-04 18:44:38 UTC) #9
gone
Also: you need to hit "publish+mail comments" or I don't get emails about it. I ...
3 years, 8 months ago (2017-04-04 18:49:19 UTC) #10
Leo
Thanks for the review. Sorry for missing the "Publish+Mail Comments". I did some code refactoring ...
3 years, 8 months ago (2017-04-05 08:37:47 UTC) #11
gone
lgtm then A very basic test could just be to make sure that the infobar ...
3 years, 8 months ago (2017-04-05 18:32:36 UTC) #12
groby-ooo-7-16
On 2017/04/05 18:32:36, dfalcantara (load balance plz) wrote: > lgtm then > > A very ...
3 years, 8 months ago (2017-04-05 21:25:25 UTC) #13
groby-ooo-7-16
Also, components/translate LGTM - but please add a unit test.
3 years, 8 months ago (2017-04-05 21:26:16 UTC) #14
Leo
Thanks fore the review and approval. I will fix the unit test then submit.
3 years, 8 months ago (2017-04-06 00:26:54 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2788343002/60001
3 years, 8 months ago (2017-04-07 05:46:09 UTC) #22
commit-bot: I haz the power
3 years, 8 months ago (2017-04-07 05:51:11 UTC) #25
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/92d27790b430374991505d620258...

Powered by Google App Engine
This is Rietveld 408576698