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

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

Issue 11773025: cocoa/infobars: Split infobar_controller.* into smaller parts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add files to chrome_nibs.gyp Created 7 years, 11 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 #import <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 6
7 #include "base/memory/scoped_nsobject.h" 7 #include "base/memory/scoped_nsobject.h"
8 8
9 @class AnimatableView; 9 @class AnimatableView;
10 @protocol InfoBarContainer; 10 @protocol InfoBarContainer;
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 // Closes and disables the provided menu. Subclasses should call this for each 100 // Closes and disables the provided menu. Subclasses should call this for each
101 // popup menu in -infobarWillClose. 101 // popup menu in -infobarWillClose.
102 - (void)disablePopUpMenu:(NSMenu*)menu; 102 - (void)disablePopUpMenu:(NSMenu*)menu;
103 @end 103 @end
104 104
105 ///////////////////////////////////////////////////////////////////////// 105 /////////////////////////////////////////////////////////////////////////
106 // InfoBarController subclasses, one for each InfoBarDelegate 106 // InfoBarController subclasses, one for each InfoBarDelegate
107 // subclass. Each of these subclasses overrides addAdditionalControls to 107 // subclass. Each of these subclasses overrides addAdditionalControls to
108 // configure its view as necessary. 108 // configure its view as necessary.
109 109
110 @interface AlternateNavInfoBarController : InfoBarController
111 // Called when there is a click on the link in the infobar.
112 - (void)linkClicked;
113 @end
114 110
115 111
116 @interface ConfirmInfoBarController : InfoBarController
117 // Called when the OK and Cancel buttons are clicked.
118 - (IBAction)ok:(id)sender;
119 - (IBAction)cancel:(id)sender;
120 // Called when there is a click on the link in the infobar.
121 - (void)linkClicked;
122 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698