| Index: chrome/browser/ui/cocoa/browser_window_controller.h
|
| diff --git a/chrome/browser/ui/cocoa/browser_window_controller.h b/chrome/browser/ui/cocoa/browser_window_controller.h
|
| index c1b15df8e51967a687cb9a9e97782cab50fdfd7b..b069d3fe2f01479aec36f5d0c9188e8fb785a689 100644
|
| --- a/chrome/browser/ui/cocoa/browser_window_controller.h
|
| +++ b/chrome/browser/ui/cocoa/browser_window_controller.h
|
| @@ -23,6 +23,8 @@
|
| #import "chrome/browser/ui/cocoa/themed_window.h"
|
| #import "chrome/browser/ui/cocoa/url_drop_target.h"
|
| #import "chrome/browser/ui/cocoa/view_resizer.h"
|
| +#include "chrome/browser/ui/translate/translate_bubble_model.h"
|
| +#include "components/translate/core/common/translate_errors.h"
|
| #include "ui/gfx/rect.h"
|
|
|
| @class AvatarBaseController;
|
| @@ -236,6 +238,9 @@ class WebContents;
|
| // Sets whether or not the current page in the frontmost tab is bookmarked.
|
| - (void)setStarredState:(BOOL)isStarred;
|
|
|
| +// Sets whether or not the current page is translated.
|
| +- (void)setCurrentPageIsTranslated:(BOOL)on;
|
| +
|
| // Happens when the zoom level is changed in the active tab, the active tab is
|
| // changed, or a new browser window or tab is created. |canShowBubble| denotes
|
| // whether it would be appropriate to show a zoom bubble or not.
|
| @@ -309,6 +314,12 @@ class WebContents;
|
| - (void)showBookmarkBubbleForURL:(const GURL&)url
|
| alreadyBookmarked:(BOOL)alreadyBookmarked;
|
|
|
| +// Show the translate bubble.
|
| +- (void)showTranslateBubbleForWebContents:(content::WebContents*)contents
|
| + viewState:
|
| + (TranslateBubbleModel::ViewState)viewState
|
| + errorType:(TranslateErrors::Type)errorType;
|
| +
|
| // Shows or hides the docked web inspector depending on |contents|'s state.
|
| - (void)updateDevToolsForContents:(content::WebContents*)contents;
|
|
|
|
|