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 Review URL: https://codereview.chromium.org/289983002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271966 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment