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

Issue 289983002: Show the Translate bubble when the content web view is not focused (Closed)

Created:
6 years, 7 months ago by hajimehoshi
Modified:
6 years, 7 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina, rolfe
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Show the Translate bubble when the content web view is not focused This CL changes the logic to determine whether the Translate bubble is to be shown. Before this CL, it is not considered the case when the contents web view is NOT focused. This CL changes this logic to show the bubble when the content webview and an input element is focused and the user is NOT trying to show the bubble explicitly. The latter condition is checked by GetLocationBarView()->IsMouseHovered() because just after clicking the Translate icon on the Omnibox, the content web view might still be focused. BUG=372755 TEST=manual Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=271966

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -4 lines) Patch
M chrome/browser/translate/translate_tab_helper.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 chunk +7 lines, -0 lines 3 comments Download

Messages

Total messages: 18 (0 generated)
hajimehoshi
PTAL
6 years, 7 months ago (2014-05-15 11:08:44 UTC) #1
sky
https://codereview.chromium.org/289983002/diff/1/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/289983002/diff/1/chrome/browser/ui/views/frame/browser_view.cc#newcode1163 chrome/browser/ui/views/frame/browser_view.cc:1163: !GetLocationBarView()->IsMouseHovered()) { Why the hovered check? What about users ...
6 years, 7 months ago (2014-05-15 16:34:56 UTC) #2
hajimehoshi
Thank you! https://codereview.chromium.org/289983002/diff/1/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/289983002/diff/1/chrome/browser/ui/views/frame/browser_view.cc#newcode1163 chrome/browser/ui/views/frame/browser_view.cc:1163: !GetLocationBarView()->IsMouseHovered()) { On 2014/05/15 16:34:56, sky wrote: ...
6 years, 7 months ago (2014-05-16 03:49:50 UTC) #3
sky
https://codereview.chromium.org/289983002/diff/1/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/289983002/diff/1/chrome/browser/ui/views/frame/browser_view.cc#newcode1163 chrome/browser/ui/views/frame/browser_view.cc:1163: !GetLocationBarView()->IsMouseHovered()) { On 2014/05/16 03:49:50, hajimehoshi wrote: > On ...
6 years, 7 months ago (2014-05-16 17:00:53 UTC) #4
hajimehoshi
6 years, 7 months ago (2014-05-19 03:54:54 UTC) #5
hajimehoshi
Sure, let me explain: * The background Originally there existed a bug (crbug/313100) that the ...
6 years, 7 months ago (2014-05-19 03:57:51 UTC) #6
sky
How about making the bubble not take focus when shown? Shouldn't that fix all issues ...
6 years, 7 months ago (2014-05-19 16:05:05 UTC) #7
sky
And thanks for the great explanation!
6 years, 7 months ago (2014-05-19 16:05:31 UTC) #8
hajimehoshi
Thanks! Your suggestion could be a great solution, but I need to ask the UI ...
6 years, 7 months ago (2014-05-19 17:08:20 UTC) #9
hajimehoshi
On 2014/05/19 17:08:20, hajimehoshi wrote: > Thanks! Your suggestion could be a great solution, but ...
6 years, 7 months ago (2014-05-20 03:22:11 UTC) #10
sky
On Mon, May 19, 2014 at 8:22 PM, <hajimehoshi@chromium.org> wrote: > On 2014/05/19 17:08:20, hajimehoshi ...
6 years, 7 months ago (2014-05-20 13:21:01 UTC) #11
sky
On 2014/05/20 13:21:01, sky wrote: > On Mon, May 19, 2014 at 8:22 PM, <mailto:hajimehoshi@chromium.org> ...
6 years, 7 months ago (2014-05-20 17:25:29 UTC) #12
kenjibaheux
On 2014/05/20 17:25:29, sky wrote: > On 2014/05/20 13:21:01, sky wrote: > > On Mon, ...
6 years, 7 months ago (2014-05-21 00:31:38 UTC) #13
kenjibaheux
Ideally, we would have like to make the initial change in time for M36. Could ...
6 years, 7 months ago (2014-05-21 03:26:24 UTC) #14
sky
LGTM
6 years, 7 months ago (2014-05-21 04:02:43 UTC) #15
hajimehoshi
The CQ bit was checked by hajimehoshi@chromium.org
6 years, 7 months ago (2014-05-21 04:30:03 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hajimehoshi@chromium.org/289983002/1
6 years, 7 months ago (2014-05-21 04:30:33 UTC) #17
commit-bot: I haz the power
6 years, 7 months ago (2014-05-21 20:38:32 UTC) #18
Message was sent while issue was closed.
Change committed as 271966

Powered by Google App Engine
This is Rietveld 408576698