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

Issue 25373009: Translate: New Bubble UX (for the view toolkit) (Closed)

Created:
7 years, 2 months ago by hajimehoshi
Modified:
7 years, 1 month ago
Reviewers:
Takashi Toyoshima, sky
CC:
chromium-reviews, tfarina, Avi (use Gerrit), creis+watch_chromium.org, ajwong+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Translate: New Bubble UX (for the view toolkit) This CL enables the new Translate bubble UX behind the flag --enable-translate-new-ux. As for the screenshots, please see the issue crbug.com/276181. BUG=276181 TEST=browser_tests --gtest_filter=TranslateManagerBrowserTests.* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=231301

Patch Set 1 : . #

Patch Set 2 : (rebasing) #

Patch Set 3 : Add 'Try again' button; rename enum names #

Total comments: 25

Patch Set 4 : Add the browser test #

Total comments: 21

Patch Set 5 : (rebasing) #

Patch Set 6 : Sky's review (1) #

Patch Set 7 : Sky's review (2) #

Total comments: 9

Patch Set 8 : (rebasing) #

Patch Set 9 : Sky's review (3) #

Total comments: 16

Patch Set 10 : Sky's review (4) #

Total comments: 4

Patch Set 11 : Sky's review (5) #

Patch Set 12 : (rebasing; fix grid overflow; fix null pointer reference) #

Patch Set 13 : Bug fix: avoid the bubble tests on the mobile platforms #

Patch Set 14 : (rebasing) #

Patch Set 15 : Bug fix: view id on tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+877 lines, -146 lines) Patch
M chrome/app/chrome_command_ids.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/app/generated_resources.grd View 2 chunks +9 lines, -0 lines 0 comments Download
A chrome/app/theme/default_100_percent/translate.png View Binary file 0 comments Download
A chrome/app/theme/default_200_percent/translate.png View Binary file 0 comments Download
M chrome/app/theme/theme_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/language_state.h View 1 2 3 4 5 6 7 8 9 3 chunks +20 lines, -1 line 0 comments Download
M chrome/browser/tab_contents/language_state.cc View 1 2 3 4 5 4 chunks +23 lines, -1 line 0 comments Download
A chrome/browser/tab_contents/language_state_observer.h View 1 2 3 4 5 1 chunk +21 lines, -0 lines 0 comments Download
M chrome/browser/translate/page_translated_details.h View 1 2 3 1 chunk +0 lines, -7 lines 0 comments Download
M chrome/browser/translate/translate_manager.h View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/translate/translate_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 10 chunks +81 lines, -33 lines 0 comments Download
M chrome/browser/translate/translate_manager_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +150 lines, -0 lines 0 comments Download
M chrome/browser/translate/translate_tab_helper.cc View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/translate/translate_ui_delegate.cc View 1 2 3 3 chunks +14 lines, -5 lines 0 comments Download
M chrome/browser/ui/browser.h View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/ui/browser_command_controller.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_commands.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/browser_commands.cc View 1 2 3 3 chunks +22 lines, -0 lines 0 comments Download
A chrome/browser/ui/browser_language_state_observer.h View 1 2 3 4 5 6 7 8 9 1 chunk +33 lines, -0 lines 0 comments Download
A chrome/browser/ui/browser_language_state_observer.cc View 1 2 3 4 5 1 chunk +22 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_window.h View 1 2 3 4 5 6 3 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.mm View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/view_id_util_browsertest.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/view_id_util_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/translate/language_combobox_model.cc View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
A chrome/browser/ui/translate/translate_bubble_factory.h View 1 2 3 4 5 6 7 8 9 1 chunk +42 lines, -0 lines 0 comments Download
A chrome/browser/ui/translate/translate_bubble_factory.cc View 1 2 3 4 5 6 7 8 9 1 chunk +44 lines, -0 lines 0 comments Download
M chrome/browser/ui/view_ids.h View 1 2 3 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_view.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +14 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/location_bar/bubble_icon_view.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +56 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/location_bar/bubble_icon_view.cc View 1 2 3 4 5 6 7 8 9 1 chunk +76 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.h View 1 2 3 5 chunks +19 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 1 2 3 7 chunks +35 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/location_bar/star_view.h View 1 2 3 4 5 6 7 8 9 2 chunks +9 lines, -21 lines 0 comments Download
M chrome/browser/ui/views/location_bar/star_view.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +19 lines, -65 lines 0 comments Download
A chrome/browser/ui/views/location_bar/translate_icon_view.h View 1 2 3 4 5 6 7 8 9 1 chunk +29 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/location_bar/translate_icon_view.cc View 1 2 3 4 5 6 7 8 9 1 chunk +34 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/toolbar_view.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/toolbar_view.cc View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/translate/translate_bubble_view.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/translate/translate_bubble_view.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +8 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +8 lines, -0 lines 0 comments Download
M chrome/common/translate/translate_errors.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/base/test_browser_window.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (0 generated)
hajimehoshi
Can you take a look? Thank you in advance. toyoshim: please see chrome/browser/translate/*. As you ...
7 years, 2 months ago (2013-10-08 02:26:39 UTC) #1
hajimehoshi
> toyoshim: please see chrome/browser/translate/*. As you know, > translate_ui_delegate is now being committed in ...
7 years, 2 months ago (2013-10-08 02:49:33 UTC) #2
Takashi Toyoshima
This change is not small, but has no tests. Do you have a plan how ...
7 years, 2 months ago (2013-10-08 14:54:09 UTC) #3
hajimehoshi
Thanks. I'll separate this CL into a CL for the UI component and the other ...
7 years, 2 months ago (2013-10-09 11:06:24 UTC) #4
hajimehoshi
I'll close this.
7 years, 2 months ago (2013-10-10 08:58:58 UTC) #5
hajimehoshi
I reopened this to show the below comments. Please review https://codereview.chromium.org/26775007/. https://codereview.chromium.org/25373009/diff/33001/chrome/browser/tab_contents/language_state.h File chrome/browser/tab_contents/language_state.h (right): ...
7 years, 2 months ago (2013-10-10 11:07:10 UTC) #6
hajimehoshi
The CL https://codereview.chromium.org/26775007/ is now being committed (of course, I'll rebase this). Can you take ...
7 years, 2 months ago (2013-10-18 11:12:37 UTC) #7
sky
You have both patches here don't you? Make this patch relative to the other. https://codereview.chromium.org/25373009/diff/103001/chrome/app/generated_resources.grd ...
7 years, 2 months ago (2013-10-18 14:31:10 UTC) #8
hajimehoshi
https://codereview.chromium.org/25373009/diff/103001/chrome/browser/translate/translate_bubble_browsertest.cc File chrome/browser/translate/translate_bubble_browsertest.cc (right): https://codereview.chromium.org/25373009/diff/103001/chrome/browser/translate/translate_bubble_browsertest.cc#newcode139 chrome/browser/translate/translate_bubble_browsertest.cc:139: IN_PROC_BROWSER_TEST_F(TranslateBubbleBrowserTest, TranslateSucceeded) { I tried to write a unit ...
7 years, 2 months ago (2013-10-18 15:19:59 UTC) #9
sky
There are stubs for various ui/views things that work in unit tests. On Fri, Oct ...
7 years, 2 months ago (2013-10-18 18:20:58 UTC) #10
hajimehoshi
Thank you! It's not completed, and I'll do the rest tomorrow. https://codereview.chromium.org/25373009/diff/103001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): ...
7 years, 2 months ago (2013-10-21 10:29:12 UTC) #11
hajimehoshi
All done. https://codereview.chromium.org/25373009/diff/103001/chrome/browser/tab_contents/language_state.cc File chrome/browser/tab_contents/language_state.cc (right): https://codereview.chromium.org/25373009/diff/103001/chrome/browser/tab_contents/language_state.cc#newcode51 chrome/browser/tab_contents/language_state.cc:51: SetTranslateEnabled(false); This is necessary to hide the ...
7 years, 2 months ago (2013-10-22 10:30:24 UTC) #12
sky
https://codereview.chromium.org/25373009/diff/353001/chrome/browser/tab_contents/language_state.h File chrome/browser/tab_contents/language_state.h (right): https://codereview.chromium.org/25373009/diff/353001/chrome/browser/tab_contents/language_state.h#newcode78 chrome/browser/tab_contents/language_state.h:78: void SetTranslateEnabled(bool value); Document the behavior of this. In ...
7 years, 2 months ago (2013-10-22 16:09:22 UTC) #13
sky
https://codereview.chromium.org/25373009/diff/353001/chrome/browser/translate/translate_bubble_showable.h File chrome/browser/translate/translate_bubble_showable.h (right): https://codereview.chromium.org/25373009/diff/353001/chrome/browser/translate/translate_bubble_showable.h#newcode20 chrome/browser/translate/translate_bubble_showable.h:20: virtual void Show(content::WebContents* web_contents, On 2013/10/22 16:09:22, sky wrote: ...
7 years, 2 months ago (2013-10-22 16:16:00 UTC) #14
hajimehoshi
Thank you! https://codereview.chromium.org/25373009/diff/353001/chrome/browser/tab_contents/language_state.h File chrome/browser/tab_contents/language_state.h (right): https://codereview.chromium.org/25373009/diff/353001/chrome/browser/tab_contents/language_state.h#newcode78 chrome/browser/tab_contents/language_state.h:78: void SetTranslateEnabled(bool value); On 2013/10/22 16:09:22, sky ...
7 years, 2 months ago (2013-10-23 10:45:09 UTC) #15
sky
https://codereview.chromium.org/25373009/diff/583001/chrome/browser/tab_contents/language_state.h File chrome/browser/tab_contents/language_state.h (right): https://codereview.chromium.org/25373009/diff/583001/chrome/browser/tab_contents/language_state.h#newcode77 chrome/browser/tab_contents/language_state.h:77: // Whether the translate is enabled. This value is ...
7 years, 2 months ago (2013-10-23 14:43:29 UTC) #16
hajimehoshi
Thank you! https://codereview.chromium.org/25373009/diff/583001/chrome/browser/tab_contents/language_state.h File chrome/browser/tab_contents/language_state.h (right): https://codereview.chromium.org/25373009/diff/583001/chrome/browser/tab_contents/language_state.h#newcode77 chrome/browser/tab_contents/language_state.h:77: // Whether the translate is enabled. This ...
7 years, 2 months ago (2013-10-24 11:31:14 UTC) #17
sky
LGTM https://codereview.chromium.org/25373009/diff/763001/chrome/browser/ui/views/location_bar/bubble_icon_view.h File chrome/browser/ui/views/location_bar/bubble_icon_view.h (right): https://codereview.chromium.org/25373009/diff/763001/chrome/browser/ui/views/location_bar/bubble_icon_view.h#newcode24 chrome/browser/ui/views/location_bar/bubble_icon_view.h:24: // Returns true if a related bubble is ...
7 years, 2 months ago (2013-10-24 15:49:07 UTC) #18
hajimehoshi
Thank you! https://codereview.chromium.org/25373009/diff/763001/chrome/browser/ui/views/location_bar/bubble_icon_view.h File chrome/browser/ui/views/location_bar/bubble_icon_view.h (right): https://codereview.chromium.org/25373009/diff/763001/chrome/browser/ui/views/location_bar/bubble_icon_view.h#newcode24 chrome/browser/ui/views/location_bar/bubble_icon_view.h:24: // Returns true if a related bubble ...
7 years, 2 months ago (2013-10-25 02:45:40 UTC) #19
Takashi Toyoshima
thank you for great efforts. chrome/*/translate/ lgtm.
7 years, 2 months ago (2013-10-25 03:12:01 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hajimehoshi@chromium.org/25373009/983001
7 years, 2 months ago (2013-10-25 05:46:14 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hajimehoshi@chromium.org/25373009/1103001
7 years, 2 months ago (2013-10-25 06:47:37 UTC) #22
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 2 months ago (2013-10-25 07:15:31 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hajimehoshi@chromium.org/25373009/1313001
7 years, 2 months ago (2013-10-25 07:20:55 UTC) #24
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=181194
7 years, 1 month ago (2013-10-25 10:39:45 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hajimehoshi@chromium.org/25373009/1313001
7 years, 1 month ago (2013-10-25 10:47:57 UTC) #26
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=181218
7 years, 1 month ago (2013-10-25 13:18:30 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hajimehoshi@chromium.org/25373009/1603001
7 years, 1 month ago (2013-10-28 03:32:59 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hajimehoshi@chromium.org/25373009/1913001
7 years, 1 month ago (2013-10-28 04:58:46 UTC) #29
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 1 month ago (2013-10-28 05:07:27 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hajimehoshi@chromium.org/25373009/1913001
7 years, 1 month ago (2013-10-28 05:39:43 UTC) #31
commit-bot: I haz the power
Failed to trigger a try job on linux_rel HTTP Error 400: Bad Request
7 years, 1 month ago (2013-10-28 06:09:25 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hajimehoshi@chromium.org/25373009/2133001
7 years, 1 month ago (2013-10-28 06:09:41 UTC) #33
commit-bot: I haz the power
7 years, 1 month ago (2013-10-28 09:25:02 UTC) #34
Message was sent while issue was closed.
Change committed as 231301

Powered by Google App Engine
This is Rietveld 408576698