Chromium Code Reviews| 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..8ba75cd12c711a60c58407e26543fb917d98cd92 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)setTranslateIconToggled:(BOOL)on; |
|
Nico
2014/02/05 06:07:18
setTranslateIconVisible? setCurrentPageIsTranslate
hajimehoshi
2014/02/05 11:08:03
Done.
|
| + |
| // 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; |