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

Issue 151283006: Mac OS X: Show the Translate icon on Omnibox (Closed)

Created:
6 years, 10 months ago by hajimehoshi
Modified:
6 years, 9 months ago
CC:
chromium-reviews, kenjibaheux
Base URL:
https://chromium.googlesource.com/chromium/src.git@issue-307352-translate-bubble-2
Visibility:
Public.

Description

Mac OS X: Show the Translate icon on Omnibox This patch is the first step to implement the Translate bubble UX to replace the current infobar. This patch fixes the Ominbox to show the translate icon when a foreign page is loaded. This icon offers the information to users if the page is translable or not, or if the page is already translated or not. The icon turns blue when the page is translated. As for screenshots, please see crbug/307352#c17. By clicking the icon, the Translte bubble is shown. For now, the Translate bubble is dummy and empty. I'll implement this and upload another CL later. Now this bubble is behind the flag --enable-translate-new-ux on Mac. This bubble UX is already implemented and enabled by default on Aura like Windows and Chrome OS. BUG=307352 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=256228

Patch Set 1 : . #

Total comments: 22

Patch Set 2 : Nico's review #

Total comments: 24

Patch Set 3 : (rebasing) #

Patch Set 4 : groby's review #

Total comments: 11

Patch Set 5 : groby's review #

Total comments: 20

Patch Set 6 : groby and rsesek's review #

Patch Set 7 : (rebasing) #

Total comments: 1

Patch Set 8 : (rebasing) #

Patch Set 9 : Use kAnimateNone #

Unified diffs Side-by-side diffs Delta from patch set Stats (+437 lines, -9 lines) Patch
M chrome/browser/ui/cocoa/browser_window_cocoa.mm View 1 2 3 4 5 6 7 3 chunks +11 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.h View 1 2 3 4 5 6 7 6 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.mm View 1 2 3 4 5 6 7 4 chunks +63 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h View 1 2 3 4 5 6 5 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm View 1 2 3 4 5 6 11 chunks +36 lines, -5 lines 0 comments Download
A chrome/browser/ui/cocoa/location_bar/translate_decoration.h View 1 2 3 4 5 1 chunk +42 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/location_bar/translate_decoration.mm View 1 2 3 4 5 1 chunk +42 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/toolbar/toolbar_controller.h View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/toolbar/toolbar_controller.mm View 1 2 3 4 5 6 2 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/toolbar/toolbar_controller_unittest.mm View 1 1 chunk +7 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/translate/translate_bubble_controller.h View 1 2 3 4 1 chunk +42 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/translate/translate_bubble_controller.mm View 1 2 3 4 5 1 chunk +78 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/translate/translate_bubble_controller_unittest.mm View 1 2 3 4 5 6 7 8 1 chunk +67 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 43 (0 generated)
hajimehoshi
Can you take a look? Thank you in advance.
6 years, 10 months ago (2014-02-04 11:23:00 UTC) #1
hajimehoshi
+kenjibaheux (CC)
6 years, 10 months ago (2014-02-05 05:14:13 UTC) #2
Nico
This looks like it's mostly going in the right direction, good work! Please add a ...
6 years, 10 months ago (2014-02-05 06:07:18 UTC) #3
hajimehoshi
Thank you! Added a unit test file, but I've not implemented this yet. Is it ...
6 years, 10 months ago (2014-02-05 11:08:02 UTC) #4
hajimehoshi
On 2014/02/05 11:08:02, hajimehoshi wrote: > Thank you! Added a unit test file, but I've ...
6 years, 10 months ago (2014-02-10 02:37:53 UTC) #5
Nico
groby kindly agreed to review this.
6 years, 10 months ago (2014-02-10 23:54:22 UTC) #6
groby-ooo-7-16
Filling in for Nico since he's OOO
6 years, 10 months ago (2014-02-10 23:54:25 UTC) #7
groby-ooo-7-16
At a first glance, this is doing well. But please add at least a test ...
6 years, 10 months ago (2014-02-11 00:43:55 UTC) #8
hajimehoshi
Sorry for my late response. Thank you! https://codereview.chromium.org/151283006/diff/160001/chrome/browser/ui/cocoa/DEPS File chrome/browser/ui/cocoa/DEPS (right): https://codereview.chromium.org/151283006/diff/160001/chrome/browser/ui/cocoa/DEPS#newcode2 chrome/browser/ui/cocoa/DEPS:2: "+components/translate/core/common", On ...
6 years, 10 months ago (2014-02-25 09:31:07 UTC) #9
groby-ooo-7-16
Thank you for all the fixes - this looks great. Do you think it makes ...
6 years, 10 months ago (2014-02-26 03:13:57 UTC) #10
hajimehoshi
Thank you! https://codereview.chromium.org/151283006/diff/160001/chrome/browser/ui/cocoa/translate/translate_bubble_controller.mm File chrome/browser/ui/cocoa/translate/translate_bubble_controller.mm (right): https://codereview.chromium.org/151283006/diff/160001/chrome/browser/ui/cocoa/translate/translate_bubble_controller.mm#newcode20 chrome/browser/ui/cocoa/translate/translate_bubble_controller.mm:20: static TranslateBubbleController* translateBubbleController_ = NULL; On 2014/02/26 ...
6 years, 10 months ago (2014-02-26 09:18:18 UTC) #11
groby-ooo-7-16
LGTM w/ a few tiny nits. Thank you! https://codereview.chromium.org/151283006/diff/290001/chrome/browser/ui/cocoa/translate/translate_bubble_controller_unittest.mm File chrome/browser/ui/cocoa/translate/translate_bubble_controller_unittest.mm (right): https://codereview.chromium.org/151283006/diff/290001/chrome/browser/ui/cocoa/translate/translate_bubble_controller_unittest.mm#newcode57 chrome/browser/ui/cocoa/translate/translate_bubble_controller_unittest.mm:57: base::MessageLoopForUI::current()->RunUntilIdle(); ...
6 years, 9 months ago (2014-02-27 19:19:02 UTC) #12
Robert Sesek
A few drive-by nits, too. https://codereview.chromium.org/151283006/diff/310001/chrome/browser/ui/cocoa/browser_window_controller.mm File chrome/browser/ui/cocoa/browser_window_controller.mm (right): https://codereview.chromium.org/151283006/diff/310001/chrome/browser/ui/cocoa/browser_window_controller.mm#newcode1713 chrome/browser/ui/cocoa/browser_window_controller.mm:1713: // fixme(hajimehoshi): The similar ...
6 years, 9 months ago (2014-02-27 20:45:01 UTC) #13
hajimehoshi
Thank you! https://codereview.chromium.org/151283006/diff/290001/chrome/browser/ui/cocoa/translate/translate_bubble_controller_unittest.mm File chrome/browser/ui/cocoa/translate/translate_bubble_controller_unittest.mm (right): https://codereview.chromium.org/151283006/diff/290001/chrome/browser/ui/cocoa/translate/translate_bubble_controller_unittest.mm#newcode57 chrome/browser/ui/cocoa/translate/translate_bubble_controller_unittest.mm:57: base::MessageLoopForUI::current()->RunUntilIdle(); On 2014/02/27 19:19:02, groby wrote: > ...
6 years, 9 months ago (2014-02-28 04:25:21 UTC) #14
hajimehoshi
The CQ bit was checked by hajimehoshi@chromium.org
6 years, 9 months ago (2014-02-28 04:37:40 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hajimehoshi@chromium.org/151283006/350001
6 years, 9 months ago (2014-02-28 04:38:01 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-02-28 06:17:11 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel
6 years, 9 months ago (2014-02-28 06:17:12 UTC) #18
hajimehoshi
The CQ bit was checked by hajimehoshi@chromium.org
6 years, 9 months ago (2014-02-28 10:06:29 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hajimehoshi@chromium.org/151283006/350001
6 years, 9 months ago (2014-02-28 10:06:42 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-02-28 11:32:10 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel
6 years, 9 months ago (2014-02-28 11:32:11 UTC) #22
hajimehoshi
On 2014/02/28 11:32:11, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 9 months ago (2014-02-28 11:45:28 UTC) #23
groby-ooo-7-16
It looks like the window is not invoking its windowWillClose notifications, but why is not ...
6 years, 9 months ago (2014-02-28 13:14:57 UTC) #24
groby-ooo-7-16
A quick update from me - I'm still up in MTV, and will return to ...
6 years, 9 months ago (2014-03-04 19:52:39 UTC) #25
hajimehoshi
On 2014/03/04 19:52:39, groby wrote: > A quick update from me - I'm still up ...
6 years, 9 months ago (2014-03-05 02:13:54 UTC) #26
groby-ooo-7-16
This is exceedingly odd. 1) It passes fine on my local machine 2) It works ...
6 years, 9 months ago (2014-03-06 04:37:58 UTC) #27
Robert Sesek
On 2014/03/06 04:37:58, groby wrote: > This is exceedingly odd. > > 1) It passes ...
6 years, 9 months ago (2014-03-06 18:15:13 UTC) #28
groby-ooo-7-16
On 2014/03/06 18:15:13, rsesek wrote: > On 2014/03/06 04:37:58, groby wrote: > > This is ...
6 years, 9 months ago (2014-03-06 18:53:56 UTC) #29
groby-ooo-7-16
Nope. 10,000 local runs, all fine. So I assume it's a trybot setup thing.
6 years, 9 months ago (2014-03-07 00:25:01 UTC) #30
Nico
10.6 sdk? On Thu, Mar 6, 2014 at 4:25 PM, <groby@chromium.org> wrote: > Nope. 10,000 ...
6 years, 9 months ago (2014-03-07 00:25:25 UTC) #31
hajimehoshi
On 2014/03/07 00:25:25, Nico wrote: > 10.6 sdk? > > > On Thu, Mar 6, ...
6 years, 9 months ago (2014-03-10 05:59:43 UTC) #32
hajimehoshi
> I'm also slightly concerned that > NSRunLoopRunAllPending exposes different behavior on dev machines. On ...
6 years, 9 months ago (2014-03-10 08:34:58 UTC) #33
groby-ooo-7-16
We can't update the bots, since we need to support 10.6 FWIW, I'm building against ...
6 years, 9 months ago (2014-03-10 20:30:03 UTC) #34
groby-ooo-7-16
Arrrg. I'm terribly sorry I didn't remember this earlier: the bubble window animates. Which means ...
6 years, 9 months ago (2014-03-10 20:50:24 UTC) #35
hajimehoshi
> FWIW, I'm building against the 10.8 SDK. (Run "build/mac/find_sdk.py 10.6" to > find out ...
6 years, 9 months ago (2014-03-11 03:08:20 UTC) #36
hajimehoshi
The CQ bit was checked by hajimehoshi@chromium.org
6 years, 9 months ago (2014-03-11 03:08:30 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hajimehoshi@chromium.org/151283006/390001
6 years, 9 months ago (2014-03-11 03:11:40 UTC) #38
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-11 11:37:29 UTC) #39
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=279476
6 years, 9 months ago (2014-03-11 11:37:29 UTC) #40
hajimehoshi
The CQ bit was checked by hajimehoshi@chromium.org
6 years, 9 months ago (2014-03-11 11:38:43 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hajimehoshi@chromium.org/151283006/390001
6 years, 9 months ago (2014-03-11 11:38:52 UTC) #42
commit-bot: I haz the power
6 years, 9 months ago (2014-03-11 15:02:51 UTC) #43
Message was sent while issue was closed.
Change committed as 256228

Powered by Google App Engine
This is Rietveld 408576698