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

Side by Side Diff: chrome/browser/ui/cocoa/translate/translate_infobar_base.h

Issue 7876004: [Mac] Break stale controller refs in infobar close. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Also fix target on the close button. Created 9 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_TRANSLATE_INFOBAR_BASE_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_TRANSLATE_INFOBAR_BASE_H_
6 #define CHROME_BROWSER_UI_COCOA_TRANSLATE_INFOBAR_BASE_H_ 6 #define CHROME_BROWSER_UI_COCOA_TRANSLATE_INFOBAR_BASE_H_
7 #pragma once 7 #pragma once
8 8
9 #import <Cocoa/Cocoa.h> 9 #import <Cocoa/Cocoa.h>
10 #import "chrome/browser/ui/cocoa/infobars/infobar_controller.h" 10 #import "chrome/browser/ui/cocoa/infobars/infobar_controller.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 bool swappedLanguagePlaceholders_; 69 bool swappedLanguagePlaceholders_;
70 70
71 // Space between controls in pixels - read from the NIB. 71 // Space between controls in pixels - read from the NIB.
72 CGFloat spaceBetweenControls_; 72 CGFloat spaceBetweenControls_;
73 73
74 scoped_ptr<LanguagesMenuModel> originalLanguageMenuModel_; 74 scoped_ptr<LanguagesMenuModel> originalLanguageMenuModel_;
75 scoped_ptr<LanguagesMenuModel> targetLanguageMenuModel_; 75 scoped_ptr<LanguagesMenuModel> targetLanguageMenuModel_;
76 scoped_ptr<OptionsMenuModel> optionsMenuModel_; 76 scoped_ptr<OptionsMenuModel> optionsMenuModel_;
77 } 77 }
78 78
79 // Returns the delegate as a TranslateInfoBarDelegate. 79 // Returns the delegate as a TranslateInfoBarDelegate. The return
80 // value can be NULL if the infobar is closing.
80 - (TranslateInfoBarDelegate*)delegate; 81 - (TranslateInfoBarDelegate*)delegate;
81 82
82 // Called when the "Show Original" button is pressed. 83 // Called when the "Show Original" button is pressed.
83 - (IBAction)showOriginal:(id)sender; 84 - (IBAction)showOriginal:(id)sender;
84 85
85 @end 86 @end
86 87
87 @interface TranslateInfoBarControllerBase (ProtectedAPI) 88 @interface TranslateInfoBarControllerBase (ProtectedAPI)
88 89
89 // Resizes or hides the options button based on how much space is available 90 // Resizes or hides the options button based on how much space is available
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 - (NSMenu*)optionsMenu; 155 - (NSMenu*)optionsMenu;
155 156
156 // Returns |translateMessageButton_|, see declaration of member 157 // Returns |translateMessageButton_|, see declaration of member
157 // variable for a full description. 158 // variable for a full description.
158 - (NSButton*)translateMessageButton; 159 - (NSButton*)translateMessageButton;
159 160
160 @end // TranslateInfoBarControllerBase (TestingAPI) 161 @end // TranslateInfoBarControllerBase (TestingAPI)
161 162
162 163
163 #endif // CHROME_BROWSER_UI_COCOA_TRANSLATE_INFOBAR_BASE_H_ 164 #endif // CHROME_BROWSER_UI_COCOA_TRANSLATE_INFOBAR_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698