OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_COCOA_EXTENSIONS_EXTENSION_INFOBAR_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_COCOA_EXTENSIONS_EXTENSION_INFOBAR_CONTROLLER_H_ |
6 #define CHROME_BROWSER_COCOA_EXTENSIONS_EXTENSION_INFOBAR_CONTROLLER_H_ | 6 #define CHROME_BROWSER_COCOA_EXTENSIONS_EXTENSION_INFOBAR_CONTROLLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #import "chrome/browser/cocoa/infobar_controller.h" | 9 #import "chrome/browser/cocoa/infobar_controller.h" |
10 | 10 |
11 #import <Cocoa/Cocoa.h> | 11 #import <Cocoa/Cocoa.h> |
12 | 12 |
13 #import "base/scoped_nsobject.h" | 13 #import "base/scoped_nsobject.h" |
14 #include "base/scoped_ptr.h" | 14 #include "base/scoped_ptr.h" |
15 | 15 |
16 @class ExtensionActionContextMenu; | 16 @class ExtensionActionContextMenu; |
17 class ExtensionInfoBarDelegate; | |
18 class InfobarBridge; | 17 class InfobarBridge; |
19 @class MenuButton; | 18 @class MenuButton; |
20 | 19 |
21 @interface ExtensionInfoBarController : InfoBarController { | 20 @interface ExtensionInfoBarController : InfoBarController { |
22 // The native extension view retrieved from the extension host. Weak. | 21 // The native extension view retrieved from the extension host. Weak. |
23 NSView* extensionView_; | 22 NSView* extensionView_; |
24 | 23 |
25 // The window containing this InfoBar. Weak. | 24 // The window containing this InfoBar. Weak. |
26 NSWindow* window_; | 25 NSWindow* window_; |
27 | 26 |
28 // The InfoBar's button with the Extension's icon that launches the context | 27 // The InfoBar's button with the Extension's icon that launches the context |
29 // menu. | 28 // menu. |
30 scoped_nsobject<MenuButton> dropdownButton_; | 29 scoped_nsobject<MenuButton> dropdownButton_; |
31 | 30 |
32 // The context menu that pops up when the left button is clicked. | 31 // The context menu that pops up when the left button is clicked. |
33 scoped_nsobject<ExtensionActionContextMenu> contextMenu_; | 32 scoped_nsobject<ExtensionActionContextMenu> contextMenu_; |
34 | 33 |
35 // Helper class to bridge C++ and ObjC functionality together for the infobar. | 34 // Helper class to bridge C++ and ObjC functionality together for the infobar. |
36 scoped_ptr<InfobarBridge> bridge_; | 35 scoped_ptr<InfobarBridge> bridge_; |
37 } | 36 } |
38 | 37 |
39 @end | 38 @end |
40 | 39 |
41 #endif // CHROME_BROWSER_COCOA_EXTENSIONS_EXTENSION_INFOBAR_CONTROLLER_H_ | 40 #endif // CHROME_BROWSER_COCOA_EXTENSIONS_EXTENSION_INFOBAR_CONTROLLER_H_ |
OLD | NEW |