| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_UI_COCOA_INFOBARS_TRANSLATE_INFOBAR_BASE_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_INFOBARS_TRANSLATE_INFOBAR_BASE_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_INFOBARS_TRANSLATE_INFOBAR_BASE_H_ | 6 #define CHROME_BROWSER_UI_COCOA_INFOBARS_TRANSLATE_INFOBAR_BASE_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #import "base/mac/scoped_nsobject.h" | 10 #import "base/mac/scoped_nsobject.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 // page was translated from an unknown language. | 35 // page was translated from an unknown language. |
| 36 base::scoped_nsobject<NSButton> translateMessageButton_; | 36 base::scoped_nsobject<NSButton> translateMessageButton_; |
| 37 | 37 |
| 38 // In the current locale, are the "from" and "to" language popup menu | 38 // In the current locale, are the "from" and "to" language popup menu |
| 39 // flipped from what they'd appear in English. | 39 // flipped from what they'd appear in English. |
| 40 bool swappedLanguagePlaceholders_; | 40 bool swappedLanguagePlaceholders_; |
| 41 | 41 |
| 42 // Space between controls in pixels - read from the NIB. | 42 // Space between controls in pixels - read from the NIB. |
| 43 CGFloat spaceBetweenControls_; | 43 CGFloat spaceBetweenControls_; |
| 44 | 44 |
| 45 scoped_ptr<OptionsMenuModel> optionsMenuModel_; | 45 scoped_ptr<translate::OptionsMenuModel> optionsMenuModel_; |
| 46 } | 46 } |
| 47 | 47 |
| 48 // Returns the delegate as a TranslateInfoBarDelegate. The return | 48 // Returns the delegate as a TranslateInfoBarDelegate. The return |
| 49 // value can be NULL if the infobar is closing. | 49 // value can be NULL if the infobar is closing. |
| 50 - (TranslateInfoBarDelegate*)delegate; | 50 - (translate::TranslateInfoBarDelegate*)delegate; |
| 51 | 51 |
| 52 // Called when the "Show Original" button is pressed. | 52 // Called when the "Show Original" button is pressed. |
| 53 - (IBAction)showOriginal:(id)sender; | 53 - (IBAction)showOriginal:(id)sender; |
| 54 | 54 |
| 55 @end | 55 @end |
| 56 | 56 |
| 57 @interface TranslateInfoBarControllerBase (ProtectedAPI) | 57 @interface TranslateInfoBarControllerBase (ProtectedAPI) |
| 58 | 58 |
| 59 // Resizes or hides the options button based on how much space is available | 59 // Resizes or hides the options button based on how much space is available |
| 60 // so that it doesn't overlap other buttons. | 60 // so that it doesn't overlap other buttons. |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 - (NSMenu*)optionsMenu; | 124 - (NSMenu*)optionsMenu; |
| 125 | 125 |
| 126 // Returns |translateMessageButton_|, see declaration of member | 126 // Returns |translateMessageButton_|, see declaration of member |
| 127 // variable for a full description. | 127 // variable for a full description. |
| 128 - (NSButton*)translateMessageButton; | 128 - (NSButton*)translateMessageButton; |
| 129 | 129 |
| 130 @end // TranslateInfoBarControllerBase (TestingAPI) | 130 @end // TranslateInfoBarControllerBase (TestingAPI) |
| 131 | 131 |
| 132 | 132 |
| 133 #endif // CHROME_BROWSER_UI_COCOA_INFOBARS_TRANSLATE_INFOBAR_BASE_H_ | 133 #endif // CHROME_BROWSER_UI_COCOA_INFOBARS_TRANSLATE_INFOBAR_BASE_H_ |
| OLD | NEW |