| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ | 5 #ifndef COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ |
| 6 #define COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ | 6 #define COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
| 10 #include "ui/base/window_open_disposition.h" | 10 #include "ui/base/window_open_disposition.h" |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 virtual int GetIconID() const; | 97 virtual int GetIconID() const; |
| 98 | 98 |
| 99 // Returns the type of the infobar. The type determines the appearance (such | 99 // Returns the type of the infobar. The type determines the appearance (such |
| 100 // as background color) of the infobar. | 100 // as background color) of the infobar. |
| 101 virtual Type GetInfoBarType() const; | 101 virtual Type GetInfoBarType() const; |
| 102 | 102 |
| 103 // Type-checking downcast routines: | 103 // Type-checking downcast routines: |
| 104 virtual AutoLoginInfoBarDelegate* AsAutoLoginInfoBarDelegate(); | 104 virtual AutoLoginInfoBarDelegate* AsAutoLoginInfoBarDelegate(); |
| 105 virtual ConfirmInfoBarDelegate* AsConfirmInfoBarDelegate(); | 105 virtual ConfirmInfoBarDelegate* AsConfirmInfoBarDelegate(); |
| 106 virtual ExtensionInfoBarDelegate* AsExtensionInfoBarDelegate(); | 106 virtual ExtensionInfoBarDelegate* AsExtensionInfoBarDelegate(); |
| 107 virtual const ExtensionInfoBarDelegate* AsExtensionInfoBarDelegate() const; |
| 107 virtual InsecureContentInfoBarDelegate* AsInsecureContentInfoBarDelegate(); | 108 virtual InsecureContentInfoBarDelegate* AsInsecureContentInfoBarDelegate(); |
| 108 virtual MediaStreamInfoBarDelegate* AsMediaStreamInfoBarDelegate(); | 109 virtual MediaStreamInfoBarDelegate* AsMediaStreamInfoBarDelegate(); |
| 109 virtual PopupBlockedInfoBarDelegate* AsPopupBlockedInfoBarDelegate(); | 110 virtual PopupBlockedInfoBarDelegate* AsPopupBlockedInfoBarDelegate(); |
| 110 virtual RegisterProtocolHandlerInfoBarDelegate* | 111 virtual RegisterProtocolHandlerInfoBarDelegate* |
| 111 AsRegisterProtocolHandlerInfoBarDelegate(); | 112 AsRegisterProtocolHandlerInfoBarDelegate(); |
| 112 virtual ScreenCaptureInfoBarDelegate* AsScreenCaptureInfoBarDelegate(); | 113 virtual ScreenCaptureInfoBarDelegate* AsScreenCaptureInfoBarDelegate(); |
| 113 virtual ThemeInstalledInfoBarDelegate* AsThemePreviewInfobarDelegate(); | 114 virtual ThemeInstalledInfoBarDelegate* AsThemePreviewInfobarDelegate(); |
| 114 virtual TranslateInfoBarDelegate* AsTranslateInfoBarDelegate(); | 115 virtual TranslateInfoBarDelegate* AsTranslateInfoBarDelegate(); |
| 115 | 116 |
| 116 void set_infobar(InfoBar* infobar) { infobar_ = infobar; } | 117 void set_infobar(InfoBar* infobar) { infobar_ = infobar; } |
| (...skipping 22 matching lines...) Expand all Loading... |
| 139 | 140 |
| 140 // The InfoBar associated with us. | 141 // The InfoBar associated with us. |
| 141 InfoBar* infobar_; | 142 InfoBar* infobar_; |
| 142 | 143 |
| 143 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate); | 144 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate); |
| 144 }; | 145 }; |
| 145 | 146 |
| 146 } // namespace infobars | 147 } // namespace infobars |
| 147 | 148 |
| 148 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ | 149 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ |
| OLD | NEW |