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 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
6 | 6 |
7 #include "base/mac/scoped_nsobject.h" | 7 #include "base/mac/scoped_nsobject.h" |
8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 | 9 |
10 @protocol InfoBarContainerControllerBase; | 10 @protocol InfoBarContainerControllerBase; |
11 class InfoBarCocoa; | 11 class InfoBarCocoa; |
12 class InfoBarService; | |
13 @class InfoBarGradientView; | 12 @class InfoBarGradientView; |
14 | 13 |
15 namespace infobars { | 14 namespace infobars { |
16 class InfoBarDelegate; | 15 class InfoBarDelegate; |
17 } | 16 } |
18 | 17 |
19 // A controller for an infobar in the browser window. There is one | 18 // A controller for an infobar in the browser window. There is one |
20 // controller per infobar view. The base InfoBarController is able to | 19 // controller per infobar view. The base InfoBarController is able to |
21 // draw an icon, a text message, and a close button. Subclasses can | 20 // draw an icon, a text message, and a close button. Subclasses can |
22 // override addAdditionalControls to customize the UI. | 21 // override addAdditionalControls to customize the UI. |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 @interface InfoBarController (Protected) | 93 @interface InfoBarController (Protected) |
95 // Disables the provided menu. Subclasses should call this for each popup menu | 94 // Disables the provided menu. Subclasses should call this for each popup menu |
96 // in -infobarWillClose. | 95 // in -infobarWillClose. |
97 - (void)disablePopUpMenu:(NSMenu*)menu; | 96 - (void)disablePopUpMenu:(NSMenu*)menu; |
98 @end | 97 @end |
99 | 98 |
100 ///////////////////////////////////////////////////////////////////////// | 99 ///////////////////////////////////////////////////////////////////////// |
101 // InfoBarController subclasses, one for each InfoBarDelegate | 100 // InfoBarController subclasses, one for each InfoBarDelegate |
102 // subclass. Each of these subclasses overrides addAdditionalControls to | 101 // subclass. Each of these subclasses overrides addAdditionalControls to |
103 // configure its view as necessary. | 102 // configure its view as necessary. |
OLD | NEW |