| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/mac/scoped_nsobject.h" | 9 #include "base/mac/scoped_nsobject.h" |
| 10 #include "chrome/browser/translate/chrome_translate_client.h" | 10 #include "chrome/browser/translate/chrome_translate_client.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 // The views of each state. The keys are TranslateBubbleModel::ViewState, | 33 // The views of each state. The keys are TranslateBubbleModel::ViewState, |
| 34 // and the values are NSView*. | 34 // and the values are NSView*. |
| 35 base::scoped_nsobject<NSDictionary> views_; | 35 base::scoped_nsobject<NSDictionary> views_; |
| 36 | 36 |
| 37 // The 'Done' or 'Translate' button on the advanced (option) panel. | 37 // The 'Done' or 'Translate' button on the advanced (option) panel. |
| 38 NSButton* advancedDoneButton_; | 38 NSButton* advancedDoneButton_; |
| 39 | 39 |
| 40 // The 'Cancel' button on the advanced (option) panel. | 40 // The 'Cancel' button on the advanced (option) panel. |
| 41 NSButton* advancedCancelButton_; | 41 NSButton* advancedCancelButton_; |
| 42 | 42 |
| 43 // The 'Language Settings' link on the advanced (option) panel. |
| 44 NSButton* advancedLanguageSettingsLinkButton_; |
| 45 |
| 43 // The 'Always translate' checkbox on the advanced (option) panel. | 46 // The 'Always translate' checkbox on the advanced (option) panel. |
| 44 // This is nil when the current WebContents is in an incognito window. | 47 // This is nil when the current WebContents is in an incognito window. |
| 45 NSButton* alwaysTranslateCheckbox_; | 48 NSButton* alwaysTranslateCheckbox_; |
| 46 | 49 |
| 47 // The combobox model which is used to deny translation at the view before | 50 // The combobox model which is used to deny translation at the view before |
| 48 // translate. | 51 // translate. |
| 49 std::unique_ptr<TranslateDenialComboboxModel> translateDenialComboboxModel_; | 52 std::unique_ptr<TranslateDenialComboboxModel> translateDenialComboboxModel_; |
| 50 | 53 |
| 51 // The combobox model for source languages on the advanced (option) panel. | 54 // The combobox model for source languages on the advanced (option) panel. |
| 52 std::unique_ptr<LanguageComboboxModel> sourceLanguageComboboxModel_; | 55 std::unique_ptr<LanguageComboboxModel> sourceLanguageComboboxModel_; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 68 - (void)switchToErrorView:(translate::TranslateErrors::Type)errorType; | 71 - (void)switchToErrorView:(translate::TranslateErrors::Type)errorType; |
| 69 | 72 |
| 70 @end | 73 @end |
| 71 | 74 |
| 72 // The methods on this category are used internally by the controller and are | 75 // The methods on this category are used internally by the controller and are |
| 73 // only exposed for testing purposes. DO NOT USE OTHERWISE. | 76 // only exposed for testing purposes. DO NOT USE OTHERWISE. |
| 74 @interface TranslateBubbleController (ExposedForTesting) | 77 @interface TranslateBubbleController (ExposedForTesting) |
| 75 - (void)handleTranslateButtonPressed; | 78 - (void)handleTranslateButtonPressed; |
| 76 - (void)handleDenialPopUpButtonNopeSelected; | 79 - (void)handleDenialPopUpButtonNopeSelected; |
| 77 @end | 80 @end |
| OLD | NEW |