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 #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 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "chrome/browser/extensions/extension_infobar_delegate.h" | 9 #include "chrome/browser/extensions/extension_infobar_delegate.h" |
10 #include "chrome/browser/ui/views/infobars/infobar_view.h" | 10 #include "chrome/browser/ui/views/infobars/infobar_view.h" |
11 #include "ui/views/controls/button/menu_button_listener.h" | 11 #include "ui/views/controls/button/menu_button_listener.h" |
12 | 12 |
13 class Browser; | 13 class Browser; |
| 14 |
14 namespace views { | 15 namespace views { |
15 class ImageView; | 16 class ImageView; |
16 class MenuButton; | 17 class MenuButton; |
17 } | 18 } |
18 | 19 |
19 class ExtensionInfoBar : public InfoBarView, | 20 class ExtensionInfoBar : public InfoBarView, |
20 public ExtensionInfoBarDelegate::DelegateObserver, | 21 public ExtensionInfoBarDelegate::DelegateObserver, |
21 public views::MenuButtonListener { | 22 public views::MenuButtonListener { |
22 public: | 23 public: |
23 ExtensionInfoBar(InfoBarService* owner, | 24 ExtensionInfoBar(InfoBarService* owner, |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 // It is non-NULL if |infobar_icon_| is an image and in that case | 68 // It is non-NULL if |infobar_icon_| is an image and in that case |
68 // |icon_as_image_ == infobar_icon_|. | 69 // |icon_as_image_ == infobar_icon_|. |
69 views::ImageView* icon_as_image_; | 70 views::ImageView* icon_as_image_; |
70 | 71 |
71 base::WeakPtrFactory<ExtensionInfoBar> weak_ptr_factory_; | 72 base::WeakPtrFactory<ExtensionInfoBar> weak_ptr_factory_; |
72 | 73 |
73 DISALLOW_COPY_AND_ASSIGN(ExtensionInfoBar); | 74 DISALLOW_COPY_AND_ASSIGN(ExtensionInfoBar); |
74 }; | 75 }; |
75 | 76 |
76 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_EXTENSION_INFOBAR_H_ | 77 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_EXTENSION_INFOBAR_H_ |
OLD | NEW |