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

Unified Diff: chrome/browser/ui/views/translate/translate_bubble_view.h

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/translate/translate_bubble_view.h
diff --git a/chrome/browser/ui/views/translate/translate_bubble_view.h b/chrome/browser/ui/views/translate/translate_bubble_view.h
index 3dd0dcac5a7e690afc0186ad40bea635f0edaf46..e7d6444ace99879c65600b775f4af4a4f05e73fe 100644
--- a/chrome/browser/ui/views/translate/translate_bubble_view.h
+++ b/chrome/browser/ui/views/translate/translate_bubble_view.h
@@ -42,10 +42,14 @@ class TranslateBubbleView : public views::BubbleDelegateView,
virtual ~TranslateBubbleView();
// Shows the Translate bubble.
+ //
+ // |is_user_gesture| is true when the bubble is shown on the user's delibarate
+ // action.
static void ShowBubble(views::View* anchor_view,
content::WebContents* web_contents,
translate::TranslateStep step,
- translate::TranslateErrors::Type error_type);
+ translate::TranslateErrors::Type error_type,
+ bool is_user_gesture);
// If true, the Translate bubble is being shown.
static bool IsShowing();
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.cc ('k') | chrome/browser/ui/views/translate/translate_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698