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

Unified Diff: chrome/browser/ui/browser_window.h

Issue 25373009: Translate: New Bubble UX (for the view toolkit) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Bug fix: view id on tests Created 7 years, 2 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/browser_window.h
diff --git a/chrome/browser/ui/browser_window.h b/chrome/browser/ui/browser_window.h
index 7811ace7de93c4d798585a35e452ad2098100279..f9c66db0575346fc5a102fda36ff681163dd0117 100644
--- a/chrome/browser/ui/browser_window.h
+++ b/chrome/browser/ui/browser_window.h
@@ -12,6 +12,7 @@
#include "chrome/browser/ui/fullscreen/fullscreen_exit_bubble_type.h"
#include "chrome/browser/ui/host_desktop.h"
#include "chrome/browser/ui/sync/one_click_signin_sync_starter.h"
+#include "chrome/browser/ui/translate/translate_bubble_model.h"
#include "chrome/common/content_settings_types.h"
#include "ui/base/base_window.h"
#include "ui/base/window_open_disposition.h"
@@ -219,6 +220,11 @@ class BrowserWindow : public ui::BaseWindow {
// TODO(yosin): Make ShowBookmarkPrompt pure virtual.
virtual void ShowBookmarkPrompt() {}
+ // Shows the translate bubble.
+ virtual void ShowTranslateBubble(
+ content::WebContents* contents,
+ TranslateBubbleModel::ViewState view_state) = 0;
+
#if defined(ENABLE_ONE_CLICK_SIGNIN)
enum OneClickSigninBubbleType {
ONE_CLICK_SIGNIN_BUBBLE_TYPE_BUBBLE,
@@ -239,7 +245,7 @@ class BrowserWindow : public ui::BaseWindow {
const string16& email,
const string16& error_message,
const StartSyncCallback& start_sync_callback) = 0;
- #endif
+#endif
// Whether or not the shelf view is visible.
virtual bool IsDownloadShelfVisible() const = 0;
« no previous file with comments | « chrome/browser/ui/browser_language_state_observer.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