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

Unified Diff: chrome/browser/ui/views/frame/browser_view.cc

Issue 420713003: Translate: Don't show 'Translated' bubble when the user dismisses the bubble (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cocoa Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/frame/browser_view.cc
diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc
index df570597acac07749ce20c025431b344c28bd0c1..0116260850a6d33fb8bb7a6c85960f7519a22dd9 100644
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -1159,7 +1159,8 @@ void BrowserView::ShowBookmarkAppBubble(
void BrowserView::ShowTranslateBubble(
content::WebContents* web_contents,
translate::TranslateStep step,
- translate::TranslateErrors::Type error_type) {
+ translate::TranslateErrors::Type error_type,
+ bool is_user_gesture) {
if (contents_web_view_->HasFocus() &&
!GetLocationBarView()->IsMouseHovered()) {
content::RenderViewHost* rvh = web_contents->GetRenderViewHost();
@@ -1178,7 +1179,7 @@ void BrowserView::ShowTranslateBubble(
TranslateBubbleView::ShowBubble(
GetToolbarView()->GetTranslateBubbleAnchor(), web_contents, step,
- error_type);
+ error_type, is_user_gesture);
}
#if defined(ENABLE_ONE_CLICK_SIGNIN)
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.h ('k') | chrome/browser/ui/views/translate/translate_bubble_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698