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

Side by Side 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, 4 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 5 #ifndef CHROME_BROWSER_UI_BROWSER_WINDOW_H_
6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "chrome/browser/lifetime/browser_close_manager.h" 9 #include "chrome/browser/lifetime/browser_close_manager.h"
10 #include "chrome/browser/signin/signin_header_helper.h" 10 #include "chrome/browser/signin/signin_header_helper.h"
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 // Shows the Bookmark App bubble. 218 // Shows the Bookmark App bubble.
219 // See Extension::InitFromValueFlags::FROM_BOOKMARK for a description of 219 // See Extension::InitFromValueFlags::FROM_BOOKMARK for a description of
220 // bookmark apps. 220 // bookmark apps.
221 // 221 //
222 // |web_app_info| is the WebApplicationInfo being converted into an app. 222 // |web_app_info| is the WebApplicationInfo being converted into an app.
223 // |extension_id| is the id of the bookmark app. 223 // |extension_id| is the id of the bookmark app.
224 virtual void ShowBookmarkAppBubble(const WebApplicationInfo& web_app_info, 224 virtual void ShowBookmarkAppBubble(const WebApplicationInfo& web_app_info,
225 const std::string& extension_id) = 0; 225 const std::string& extension_id) = 0;
226 226
227 // Shows the translate bubble. 227 // Shows the translate bubble.
228 //
229 // |is_user_gesture| is true when the bubble is shown on the user's deliberate
230 // action.
228 virtual void ShowTranslateBubble( 231 virtual void ShowTranslateBubble(
229 content::WebContents* contents, 232 content::WebContents* contents,
230 translate::TranslateStep step, 233 translate::TranslateStep step,
231 translate::TranslateErrors::Type error_type) = 0; 234 translate::TranslateErrors::Type error_type,
235 bool is_user_gesture) = 0;
232 236
233 #if defined(ENABLE_ONE_CLICK_SIGNIN) 237 #if defined(ENABLE_ONE_CLICK_SIGNIN)
234 enum OneClickSigninBubbleType { 238 enum OneClickSigninBubbleType {
235 ONE_CLICK_SIGNIN_BUBBLE_TYPE_BUBBLE, 239 ONE_CLICK_SIGNIN_BUBBLE_TYPE_BUBBLE,
236 ONE_CLICK_SIGNIN_BUBBLE_TYPE_MODAL_DIALOG, 240 ONE_CLICK_SIGNIN_BUBBLE_TYPE_MODAL_DIALOG,
237 ONE_CLICK_SIGNIN_BUBBLE_TYPE_SAML_MODAL_DIALOG 241 ONE_CLICK_SIGNIN_BUBBLE_TYPE_SAML_MODAL_DIALOG
238 }; 242 };
239 243
240 // Callback type used with the ShowOneClickSigninBubble() method. If the 244 // Callback type used with the ShowOneClickSigninBubble() method. If the
241 // user chooses to accept the sign in, the callback is called to start the 245 // user chooses to accept the sign in, the callback is called to start the
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 virtual void ShowBrowserActionPopup( 409 virtual void ShowBrowserActionPopup(
406 const extensions::Extension* extension) = 0; 410 const extensions::Extension* extension) = 0;
407 411
408 protected: 412 protected:
409 friend class BrowserCloseManager; 413 friend class BrowserCloseManager;
410 friend class BrowserView; 414 friend class BrowserView;
411 virtual void DestroyBrowser() = 0; 415 virtual void DestroyBrowser() = 0;
412 }; 416 };
413 417
414 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 418 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_
OLDNEW
« 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