| OLD | NEW |
| 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_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/infobar_delegate.h" | 9 #include "chrome/browser/tab_contents/infobar_delegate.h" |
| 10 | 10 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 ExtensionInfoBarDelegate(Browser* browser, TabContents* contents, | 30 ExtensionInfoBarDelegate(Browser* browser, TabContents* contents, |
| 31 const Extension* extension, const GURL& url); | 31 const Extension* extension, const GURL& url); |
| 32 ~ExtensionInfoBarDelegate(); | 32 ~ExtensionInfoBarDelegate(); |
| 33 | 33 |
| 34 const Extension* extension() { return extension_; } | 34 const Extension* extension() { return extension_; } |
| 35 ExtensionHost* extension_host() { return extension_host_.get(); } | 35 ExtensionHost* extension_host() { return extension_host_.get(); } |
| 36 | 36 |
| 37 void set_observer(DelegateObserver* observer) { observer_ = observer; } | 37 void set_observer(DelegateObserver* observer) { observer_ = observer; } |
| 38 | 38 |
| 39 // Overridden from InfoBarDelegate: | 39 // Overridden from InfoBarDelegate: |
| 40 virtual void InfoBarDismissed() { closing_ = true; } | 40 virtual void InfoBarDismissed(); |
| 41 virtual bool EqualsDelegate(InfoBarDelegate* delegate) const; | 41 virtual bool EqualsDelegate(InfoBarDelegate* delegate) const; |
| 42 virtual void InfoBarClosed(); | 42 virtual void InfoBarClosed(); |
| 43 virtual InfoBar* CreateInfoBar(); | 43 virtual InfoBar* CreateInfoBar(); |
| 44 virtual ExtensionInfoBarDelegate* AsExtensionInfoBarDelegate(); | 44 virtual ExtensionInfoBarDelegate* AsExtensionInfoBarDelegate(); |
| 45 virtual Type GetInfoBarType(); | 45 virtual Type GetInfoBarType(); |
| 46 | 46 |
| 47 // Overridden from NotificationObserver: | 47 // Overridden from NotificationObserver: |
| 48 virtual void Observe(NotificationType type, | 48 virtual void Observe(NotificationType type, |
| 49 const NotificationSource& source, | 49 const NotificationSource& source, |
| 50 const NotificationDetails& details); | 50 const NotificationDetails& details); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 67 NotificationRegistrar registrar_; | 67 NotificationRegistrar registrar_; |
| 68 | 68 |
| 69 // Whether we are currently animating to close. This is used to ignore | 69 // Whether we are currently animating to close. This is used to ignore |
| 70 // ExtensionView::PreferredSizeChanged notifications. | 70 // ExtensionView::PreferredSizeChanged notifications. |
| 71 bool closing_; | 71 bool closing_; |
| 72 | 72 |
| 73 DISALLOW_COPY_AND_ASSIGN(ExtensionInfoBarDelegate); | 73 DISALLOW_COPY_AND_ASSIGN(ExtensionInfoBarDelegate); |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INFOBAR_DELEGATE_H_ | 76 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INFOBAR_DELEGATE_H_ |
| OLD | NEW |