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

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

Issue 284313008: Move TranslateInfoBarDelegate and OptionsMenuModel to the Translate component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + review comments Created 6 years, 6 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) 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"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "chrome/browser/translate/options_menu_model.h"
13 #include "chrome/browser/translate/translate_infobar_delegate.h"
14 #import "chrome/browser/ui/cocoa/infobars/infobar_controller.h" 12 #import "chrome/browser/ui/cocoa/infobars/infobar_controller.h"
13 #include "components/translate/core/browser/options_menu_model.h"
14 #include "components/translate/core/browser/translate_infobar_delegate.h"
15 #include "components/translate/core/common/translate_errors.h" 15 #include "components/translate/core/common/translate_errors.h"
16 16
17 // The base class for the three translate infobars. This class does all of the 17 // The base class for the three translate infobars. This class does all of the
18 // heavy UI lifting, while deferring to the subclass to tell it what views 18 // heavy UI lifting, while deferring to the subclass to tell it what views
19 // should be shown and where. Subclasses need to implement: 19 // should be shown and where. Subclasses need to implement:
20 // - (void)layout; 20 // - (void)layout;
21 // - (void)loadLabelText; 21 // - (void)loadLabelText;
22 // - (void)visibleControls; 22 // - (void)visibleControls;
23 // - (bool)verifyLayout; // For testing. 23 // - (bool)verifyLayout; // For testing.
24 @interface TranslateInfoBarControllerBase : InfoBarController<NSMenuDelegate> { 24 @interface TranslateInfoBarControllerBase : InfoBarController<NSMenuDelegate> {
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/android/infobars/translate_infobar.cc ('k') | chrome/browser/ui/cocoa/infobars/translate_infobar_base.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698