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

Unified Diff: chrome/browser/ui/cocoa/translate/translate_bubble_controller.h

Issue 203223002: Translate bubble for Mac OS X (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: (rebasing) Created 6 years, 8 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/cocoa/translate/translate_bubble_controller.h
diff --git a/chrome/browser/ui/cocoa/translate/translate_bubble_controller.h b/chrome/browser/ui/cocoa/translate/translate_bubble_controller.h
index d65f159c58f516d134e4d0f7656b963be5c92535..499b9c9a5a7e9c4145523864e3aa8735dec69f7b 100644
--- a/chrome/browser/ui/cocoa/translate/translate_bubble_controller.h
+++ b/chrome/browser/ui/cocoa/translate/translate_bubble_controller.h
@@ -4,6 +4,7 @@
#import <Cocoa/Cocoa.h>
+#include "base/mac/scoped_nsobject.h"
#include "base/memory/scoped_ptr.h"
#include "chrome/browser/translate/translate_tab_helper.h"
#import "chrome/browser/ui/cocoa/base_bubble_controller.h"
@@ -11,7 +12,9 @@
@class BrowserWindowController;
+class LanguageComboboxModel;
class TranslateBubbleModel;
+class TranslateDenialComboboxModel;
namespace content {
class WebContents;
@@ -26,6 +29,30 @@ class WebContents;
content::WebContents* webContents_;
scoped_ptr<TranslateBubbleModel> model_;
+ // The views of each state. The keys are TranslateBubbleModel::ViewState,
+ // and the values are NSView*.
+ base::scoped_nsobject<NSDictionary> views_;
+
+ // The 'Done' or 'Translate' button on the advanced (option) panel.
+ NSButton* advancedDoneButton_;
+
+ // The 'Cancel' button on the advanced (option) panel.
+ NSButton* advancedCancelButton_;
+
+ // The 'Always translate' checkbox on the advanced (option) panel.
+ // This is nil when the current WebContents is in an incognito window.
+ NSButton* alwaysTranslateCheckbox_;
+
+ // The combobox model which is used to deny translation at the view before
+ // translate.
+ scoped_ptr<TranslateDenialComboboxModel> translateDenialComboboxModel_;
+
+ // The combobox model for source languages on the advanced (option) panel.
+ scoped_ptr<LanguageComboboxModel> sourceLanguageComboboxModel_;
+
+ // The combobox model for target languages on the advanced (option) panel.
+ scoped_ptr<LanguageComboboxModel> targetLanguageComboboxModel_;
+
// Whether the translation is actually executed once at least.
BOOL translateExecuted_;
}
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_controller.mm ('k') | chrome/browser/ui/cocoa/translate/translate_bubble_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698