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

Unified Diff: chrome/browser/ui/browser_window.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
« no previous file with comments | « chrome/browser/ui/browser_commands.cc ('k') | chrome/browser/ui/cocoa/browser_window_cocoa.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_window.h
diff --git a/chrome/browser/ui/browser_window.h b/chrome/browser/ui/browser_window.h
index 23fe45f2bf4fe0e447cc0d2c51d2ba3b9ec2ce20..fe1cd091411f44ba5afcf5ea81ffc0dc9e3dc660 100644
--- a/chrome/browser/ui/browser_window.h
+++ b/chrome/browser/ui/browser_window.h
@@ -225,10 +225,14 @@ class BrowserWindow : public ui::BaseWindow {
const std::string& extension_id) = 0;
// Shows the translate bubble.
+ //
+ // |is_user_gesture| is true when the bubble is shown on the user's deliberate
+ // action.
virtual void ShowTranslateBubble(
content::WebContents* contents,
translate::TranslateStep step,
- translate::TranslateErrors::Type error_type) = 0;
+ translate::TranslateErrors::Type error_type,
+ bool is_user_gesture) = 0;
#if defined(ENABLE_ONE_CLICK_SIGNIN)
enum OneClickSigninBubbleType {
« no previous file with comments | « chrome/browser/ui/browser_commands.cc ('k') | chrome/browser/ui/cocoa/browser_window_cocoa.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698