OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #import "chrome/browser/cocoa/infobar_controller.h" | 6 #import "chrome/browser/cocoa/infobar_controller.h" |
7 | 7 |
8 #import "base/cocoa_protocols_mac.h" | 8 #import "base/cocoa_protocols_mac.h" |
9 #import "base/scoped_nsobject.h" | 9 #import "base/scoped_nsobject.h" |
10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 scoped_ptr<LanguagesMenuModel> original_language_menu_model_; | 67 scoped_ptr<LanguagesMenuModel> original_language_menu_model_; |
68 scoped_ptr<LanguagesMenuModel> target_language_menu_model_; | 68 scoped_ptr<LanguagesMenuModel> target_language_menu_model_; |
69 scoped_ptr<OptionsMenuModel> options_menu_model_; | 69 scoped_ptr<OptionsMenuModel> options_menu_model_; |
70 scoped_ptr<TranslateInfoBarMenuModel> menu_model_; | 70 scoped_ptr<TranslateInfoBarMenuModel> menu_model_; |
71 scoped_ptr<TranslateNotificationObserverBridge> observer_bridge_; | 71 scoped_ptr<TranslateNotificationObserverBridge> observer_bridge_; |
72 } | 72 } |
73 | 73 |
74 // Called when the "Show Original" button is pressed. | 74 // Called when the "Show Original" button is pressed. |
75 - (IBAction)showOriginal:(id)sender; | 75 - (IBAction)showOriginal:(id)sender; |
76 | 76 |
77 // Covariant override; required for clang and gcc 4.2. | |
78 - (TranslateInfoBarDelegate*)delegate; | |
79 | |
80 @end | 77 @end |
81 | 78 |
82 @interface TranslateInfoBarController (TestingAPI) | 79 @interface TranslateInfoBarController (TestingAPI) |
83 | 80 |
84 // Main function to update the toolbar graphic state and data model after | 81 // Main function to update the toolbar graphic state and data model after |
85 // the state has changed. | 82 // the state has changed. |
86 // Controls are moved around as needed and visibility changed to match the | 83 // Controls are moved around as needed and visibility changed to match the |
87 // current state. | 84 // current state. |
88 - (void)updateState:(TranslateInfoBarDelegate::TranslateState)newState | 85 - (void)updateState:(TranslateInfoBarDelegate::TranslateState)newState |
89 translationPending:(bool)newTranslationPending | 86 translationPending:(bool)newTranslationPending |
(...skipping 19 matching lines...) Expand all Loading... |
109 - (TranslateInfoBarDelegate::TranslateState)state; | 106 - (TranslateInfoBarDelegate::TranslateState)state; |
110 | 107 |
111 // Verifies that the layout of the infobar is correct for |state|. | 108 // Verifies that the layout of the infobar is correct for |state|. |
112 - (bool)verifyLayout:(TranslateInfoBarDelegate::TranslateState)state | 109 - (bool)verifyLayout:(TranslateInfoBarDelegate::TranslateState)state |
113 translationPending:(bool)translationPending; | 110 translationPending:(bool)translationPending; |
114 | 111 |
115 // Teardown and rebuild the options menu. | 112 // Teardown and rebuild the options menu. |
116 - (void)rebuildOptionsMenu; | 113 - (void)rebuildOptionsMenu; |
117 | 114 |
118 @end | 115 @end |
OLD | NEW |