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

Side by Side Diff: chrome/browser/views/infobars/extension_infobar.h

Issue 1107007: Extension context menu refactor (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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_VIEWS_INFOBARS_EXTENSION_INFOBAR_H_ 5 #ifndef CHROME_BROWSER_VIEWS_INFOBARS_EXTENSION_INFOBAR_H_
6 #define CHROME_BROWSER_VIEWS_INFOBARS_EXTENSION_INFOBAR_H_ 6 #define CHROME_BROWSER_VIEWS_INFOBARS_EXTENSION_INFOBAR_H_
7 7
8 #include "chrome/browser/views/infobars/infobars.h" 8 #include "chrome/browser/views/infobars/infobars.h"
9 9
10 #include "chrome/browser/views/extensions/extension_view.h" 10 #include "chrome/browser/views/extensions/extension_view.h"
11 #include "views/controls/menu/view_menu_delegate.h" 11 #include "views/controls/menu/view_menu_delegate.h"
12 12
13 class ExtensionActionContextMenuModel; 13 class ExtensionContextMenuModel;
14 class ExtensionInfoBarDelegate; 14 class ExtensionInfoBarDelegate;
15 15
16 namespace views { 16 namespace views {
17 class MenuButton; 17 class MenuButton;
18 class Menu2; 18 class Menu2;
19 } 19 }
20 20
21 // This class implements InfoBars for Extensions. 21 // This class implements InfoBars for Extensions.
22 class ExtensionInfoBar : public InfoBar, 22 class ExtensionInfoBar : public InfoBar,
23 public ExtensionView::Container, 23 public ExtensionView::Container,
(...skipping 16 matching lines...) Expand all
40 private: 40 private:
41 // Setup the menu button showing the small extension icon and its dropdown 41 // Setup the menu button showing the small extension icon and its dropdown
42 // menu. 42 // menu.
43 void SetupIconAndMenu(); 43 void SetupIconAndMenu();
44 44
45 NotificationRegistrar notification_registrar_; 45 NotificationRegistrar notification_registrar_;
46 46
47 ExtensionInfoBarDelegate* delegate_; 47 ExtensionInfoBarDelegate* delegate_;
48 48
49 // The dropdown menu for accessing the contextual extension actions. 49 // The dropdown menu for accessing the contextual extension actions.
50 scoped_ptr<ExtensionActionContextMenuModel> options_menu_contents_; 50 scoped_ptr<ExtensionContextMenuModel> options_menu_contents_;
51 scoped_ptr<views::Menu2> options_menu_menu_; 51 scoped_ptr<views::Menu2> options_menu_menu_;
52 views::MenuButton* menu_; 52 views::MenuButton* menu_;
53 53
54 DISALLOW_COPY_AND_ASSIGN(ExtensionInfoBar); 54 DISALLOW_COPY_AND_ASSIGN(ExtensionInfoBar);
55 }; 55 };
56 56
57 #endif // CHROME_BROWSER_VIEWS_INFOBARS_EXTENSION_INFOBAR_H_ 57 #endif // CHROME_BROWSER_VIEWS_INFOBARS_EXTENSION_INFOBAR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698