Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #import <Cocoa/Cocoa.h> | |
| 6 | |
| 7 #include "base/memory/scoped_ptr.h" | |
| 8 #import "chrome/browser/ui/cocoa/base_bubble_controller.h" | |
| 9 #include "chrome/browser/ui/translate/translate_bubble_model.h" | |
| 10 #include "components/translate/core/common/translate_errors.h" | |
| 11 | |
| 12 @class BrowserWindowController; | |
| 13 | |
| 14 namespace content { | |
| 15 class WebContents; | |
| 16 } | |
| 17 | |
| 18 // Displays the Translate bubble. The Translate bubble is a bubble which | |
| 19 // pops up when clicking the Translate icon on Omnibox. This bubble | |
| 20 // allows us to translate a foreign page into user-selected language, | |
| 21 // revert this, and configure the translate setting. | |
| 22 @interface TranslateBubbleController : BaseBubbleController { | |
| 23 @private | |
| 24 content::WebContents* webContents_; | |
| 25 scoped_ptr<TranslateBubbleModel> model_; | |
| 26 | |
| 27 // Whether the translation is actually executed. | |
|
groby-ooo-7-16
2014/02/11 00:43:55
"isTranslated" might be a better name?
hajimehoshi
2014/02/25 09:31:07
It is intended to be true even when the page is tr
| |
| 28 BOOL translateExecuted_; | |
| 29 } | |
| 30 | |
| 31 + (void) | |
| 32 showBubbleWithBrowserWindowController:(BrowserWindowController*)controller | |
| 33 webContents:(content::WebContents*)webContents | |
| 34 viewState: | |
| 35 (TranslateBubbleModel::ViewState)viewState | |
| 36 errorType:(TranslateErrors::Type)errorType; | |
| 37 | |
| 38 @end | |
| OLD | NEW |