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_EXTENSIONS_EXTENSION_INFOBAR_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_INFOBAR_DELEGATE_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INFOBAR_DELEGATE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INFOBAR_DELEGATE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" | 9 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" |
10 | 10 |
(...skipping 25 matching lines...) Expand all Loading... |
36 ExtensionHost* extension_host() { return extension_host_.get(); } | 36 ExtensionHost* extension_host() { return extension_host_.get(); } |
37 | 37 |
38 void set_observer(DelegateObserver* observer) { observer_ = observer; } | 38 void set_observer(DelegateObserver* observer) { observer_ = observer; } |
39 | 39 |
40 bool closing() const { return closing_; } | 40 bool closing() const { return closing_; } |
41 | 41 |
42 private: | 42 private: |
43 virtual ~ExtensionInfoBarDelegate(); | 43 virtual ~ExtensionInfoBarDelegate(); |
44 | 44 |
45 // InfoBarDelegate: | 45 // InfoBarDelegate: |
46 virtual InfoBar* CreateInfoBar() OVERRIDE; | 46 virtual InfoBar* CreateInfoBar(TabContents* owner) OVERRIDE; |
47 virtual bool EqualsDelegate(InfoBarDelegate* delegate) const OVERRIDE; | 47 virtual bool EqualsDelegate(InfoBarDelegate* delegate) const OVERRIDE; |
48 virtual void InfoBarDismissed() OVERRIDE; | 48 virtual void InfoBarDismissed() OVERRIDE; |
49 virtual Type GetInfoBarType() const OVERRIDE; | 49 virtual Type GetInfoBarType() const OVERRIDE; |
50 virtual ExtensionInfoBarDelegate* AsExtensionInfoBarDelegate() OVERRIDE; | 50 virtual ExtensionInfoBarDelegate* AsExtensionInfoBarDelegate() OVERRIDE; |
51 | 51 |
52 // NotificationObserver: | 52 // NotificationObserver: |
53 virtual void Observe(NotificationType type, | 53 virtual void Observe(NotificationType type, |
54 const NotificationSource& source, | 54 const NotificationSource& source, |
55 const NotificationDetails& details) OVERRIDE; | 55 const NotificationDetails& details) OVERRIDE; |
56 | 56 |
(...skipping 11 matching lines...) Expand all Loading... |
68 NotificationRegistrar registrar_; | 68 NotificationRegistrar registrar_; |
69 | 69 |
70 // Whether we are currently animating to close. This is used to ignore | 70 // Whether we are currently animating to close. This is used to ignore |
71 // ExtensionView::PreferredSizeChanged notifications. | 71 // ExtensionView::PreferredSizeChanged notifications. |
72 bool closing_; | 72 bool closing_; |
73 | 73 |
74 DISALLOW_COPY_AND_ASSIGN(ExtensionInfoBarDelegate); | 74 DISALLOW_COPY_AND_ASSIGN(ExtensionInfoBarDelegate); |
75 }; | 75 }; |
76 | 76 |
77 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INFOBAR_DELEGATE_H_ | 77 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INFOBAR_DELEGATE_H_ |
OLD | NEW |