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/cocoa_protocols.h" | |
11 #import "base/memory/scoped_nsobject.h" | 10 #import "base/memory/scoped_nsobject.h" |
12 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
13 #include "chrome/browser/translate/languages_menu_model.h" | 12 #include "chrome/browser/translate/languages_menu_model.h" |
14 #include "chrome/browser/translate/options_menu_model.h" | 13 #include "chrome/browser/translate/options_menu_model.h" |
15 #include "chrome/browser/translate/translate_infobar_delegate.h" | 14 #include "chrome/browser/translate/translate_infobar_delegate.h" |
16 #import "chrome/browser/ui/cocoa/infobars/infobar_controller.h" | 15 #import "chrome/browser/ui/cocoa/infobars/infobar_controller.h" |
17 #include "chrome/common/translate_errors.h" | 16 #include "chrome/common/translate_errors.h" |
18 | 17 |
19 // The base class for the three translate infobars. This class does all of the | 18 // The base class for the three translate infobars. This class does all of the |
20 // heavy UI lifting, while deferring to the subclass to tell it what views | 19 // heavy UI lifting, while deferring to the subclass to tell it what views |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 - (NSMenu*)optionsMenu; | 127 - (NSMenu*)optionsMenu; |
129 | 128 |
130 // Returns |translateMessageButton_|, see declaration of member | 129 // Returns |translateMessageButton_|, see declaration of member |
131 // variable for a full description. | 130 // variable for a full description. |
132 - (NSButton*)translateMessageButton; | 131 - (NSButton*)translateMessageButton; |
133 | 132 |
134 @end // TranslateInfoBarControllerBase (TestingAPI) | 133 @end // TranslateInfoBarControllerBase (TestingAPI) |
135 | 134 |
136 | 135 |
137 #endif // CHROME_BROWSER_UI_COCOA_INFOBARS_TRANSLATE_INFOBAR_BASE_H_ | 136 #endif // CHROME_BROWSER_UI_COCOA_INFOBARS_TRANSLATE_INFOBAR_BASE_H_ |
OLD | NEW |