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

Side by Side Diff: chrome/browser/cocoa/extensions/extension_infobar_controller.h

Issue 2973003: [Mac] Finish up extension infobar UI implementation. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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) 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 7
8 #import "chrome/browser/cocoa/infobar_controller.h" 8 #import "chrome/browser/cocoa/infobar_controller.h"
9 9
10 #import <Cocoa/Cocoa.h> 10 #import <Cocoa/Cocoa.h>
11 11
12 #import "base/scoped_nsobject.h"
13 #include "base/scoped_ptr.h"
14
15 @class ExtensionActionContextMenu;
16 class ExtensionInfoBarDelegate;
17 class InfobarBridge;
18 @class MenuButton;
19
12 @interface ExtensionInfoBarController : InfoBarController { 20 @interface ExtensionInfoBarController : InfoBarController {
13 // The native extension view retrieved from the extension host. Weak. 21 // The native extension view retrieved from the extension host. Weak.
14 NSView* extensionView_; 22 NSView* extensionView_;
15 23
16 // The window containing this InfoBar. Weak. 24 // The window containing this InfoBar. Weak.
17 NSWindow* window_; 25 NSWindow* window_;
26
27 // The InfoBar's button with the Extension's icon that launches the context
28 // menu.
29 scoped_nsobject<MenuButton> dropdownButton_;
30
31 // The context menu that pops up when the left button is clicked.
32 scoped_nsobject<ExtensionActionContextMenu> contextMenu_;
33
34 // Helper class to bridge C++ and ObjC functionality together for the infobar.
35 scoped_ptr<InfobarBridge> bridge_;
18 } 36 }
19 37
20 @end 38 @end
21 39
22 #endif // CHROME_BROWSER_COCOA_EXTENSIONS_EXTENSION_INFOBAR_CONTROLLER_H_ 40 #endif // CHROME_BROWSER_COCOA_EXTENSIONS_EXTENSION_INFOBAR_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698