OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_UI_VIEWS_INFOBARS_EXTENSION_INFOBAR_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_INFOBARS_EXTENSION_INFOBAR_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_EXTENSION_INFOBAR_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_EXTENSION_INFOBAR_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/extensions/extension_infobar_delegate.h" | 9 #include "chrome/browser/extensions/extension_infobar_delegate.h" |
10 #include "chrome/browser/extensions/image_loading_tracker.h" | 10 #include "chrome/browser/extensions/image_loading_tracker.h" |
11 #include "chrome/browser/ui/views/infobars/infobar_view.h" | 11 #include "chrome/browser/ui/views/infobars/infobar_view.h" |
12 #include "views/controls/menu/view_menu_delegate.h" | 12 #include "views/controls/menu/view_menu_delegate.h" |
13 | 13 |
14 class Browser; | 14 class Browser; |
15 class TabContentsWrapper; | |
16 namespace views { | 15 namespace views { |
17 class MenuButton; | 16 class MenuButton; |
18 } | 17 } |
19 | 18 |
20 class ExtensionInfoBar : public InfoBarView, | 19 class ExtensionInfoBar : public InfoBarView, |
21 public ImageLoadingTracker::Observer, | 20 public ImageLoadingTracker::Observer, |
22 public ExtensionInfoBarDelegate::DelegateObserver, | 21 public ExtensionInfoBarDelegate::DelegateObserver, |
23 public views::ViewMenuDelegate { | 22 public views::ViewMenuDelegate { |
24 public: | 23 public: |
25 ExtensionInfoBar(Browser* browser, | 24 ExtensionInfoBar(Browser* browser, |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 // The dropdown menu for accessing the contextual extension actions. | 58 // The dropdown menu for accessing the contextual extension actions. |
60 views::MenuButton* menu_; | 59 views::MenuButton* menu_; |
61 | 60 |
62 // Keeps track of images being loaded on the File thread. | 61 // Keeps track of images being loaded on the File thread. |
63 ImageLoadingTracker tracker_; | 62 ImageLoadingTracker tracker_; |
64 | 63 |
65 DISALLOW_COPY_AND_ASSIGN(ExtensionInfoBar); | 64 DISALLOW_COPY_AND_ASSIGN(ExtensionInfoBar); |
66 }; | 65 }; |
67 | 66 |
68 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_EXTENSION_INFOBAR_H_ | 67 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_EXTENSION_INFOBAR_H_ |
OLD | NEW |