| 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/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| 11 #include "ui/base/window_open_disposition.h" | 11 #include "ui/base/window_open_disposition.h" |
| 12 | 12 |
| 13 class ConfirmInfoBarDelegate; | 13 class ConfirmInfoBarDelegate; |
| 14 class HungRendererInfoBarDelegate; | 14 class HungRendererInfoBarDelegate; |
| 15 class InsecureContentInfoBarDelegate; | 15 class InsecureContentInfoBarDelegate; |
| 16 class NativeAppInfoBarDelegate; | 16 class NativeAppInfoBarDelegate; |
| 17 class PermissionInfobarDelegate; | 17 class PermissionInfoBarDelegate; |
| 18 class PopupBlockedInfoBarDelegate; | 18 class PopupBlockedInfoBarDelegate; |
| 19 class RegisterProtocolHandlerInfoBarDelegate; | 19 class RegisterProtocolHandlerInfoBarDelegate; |
| 20 class ScreenCaptureInfoBarDelegate; | 20 class ScreenCaptureInfoBarDelegate; |
| 21 class ThemeInstalledInfoBarDelegate; | 21 class ThemeInstalledInfoBarDelegate; |
| 22 class ThreeDAPIInfoBarDelegate; | 22 class ThreeDAPIInfoBarDelegate; |
| 23 | 23 |
| 24 #if defined(OS_ANDROID) | 24 #if defined(OS_ANDROID) |
| 25 class MediaStreamInfoBarDelegateAndroid; | 25 class MediaStreamInfoBarDelegateAndroid; |
| 26 class MediaThrottleInfoBarDelegate; | 26 class MediaThrottleInfoBarDelegate; |
| 27 #endif | 27 #endif |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 virtual bool ShouldExpire(const NavigationDetails& details) const; | 199 virtual bool ShouldExpire(const NavigationDetails& details) const; |
| 200 | 200 |
| 201 // Called when the user clicks on the close button to dismiss the infobar. | 201 // Called when the user clicks on the close button to dismiss the infobar. |
| 202 virtual void InfoBarDismissed(); | 202 virtual void InfoBarDismissed(); |
| 203 | 203 |
| 204 // Type-checking downcast routines: | 204 // Type-checking downcast routines: |
| 205 virtual ConfirmInfoBarDelegate* AsConfirmInfoBarDelegate(); | 205 virtual ConfirmInfoBarDelegate* AsConfirmInfoBarDelegate(); |
| 206 virtual HungRendererInfoBarDelegate* AsHungRendererInfoBarDelegate(); | 206 virtual HungRendererInfoBarDelegate* AsHungRendererInfoBarDelegate(); |
| 207 virtual InsecureContentInfoBarDelegate* AsInsecureContentInfoBarDelegate(); | 207 virtual InsecureContentInfoBarDelegate* AsInsecureContentInfoBarDelegate(); |
| 208 virtual NativeAppInfoBarDelegate* AsNativeAppInfoBarDelegate(); | 208 virtual NativeAppInfoBarDelegate* AsNativeAppInfoBarDelegate(); |
| 209 virtual PermissionInfobarDelegate* AsPermissionInfobarDelegate(); | 209 virtual PermissionInfoBarDelegate* AsPermissionInfoBarDelegate(); |
| 210 virtual PopupBlockedInfoBarDelegate* AsPopupBlockedInfoBarDelegate(); | 210 virtual PopupBlockedInfoBarDelegate* AsPopupBlockedInfoBarDelegate(); |
| 211 virtual RegisterProtocolHandlerInfoBarDelegate* | 211 virtual RegisterProtocolHandlerInfoBarDelegate* |
| 212 AsRegisterProtocolHandlerInfoBarDelegate(); | 212 AsRegisterProtocolHandlerInfoBarDelegate(); |
| 213 virtual ScreenCaptureInfoBarDelegate* AsScreenCaptureInfoBarDelegate(); | 213 virtual ScreenCaptureInfoBarDelegate* AsScreenCaptureInfoBarDelegate(); |
| 214 virtual ThemeInstalledInfoBarDelegate* AsThemePreviewInfobarDelegate(); | 214 virtual ThemeInstalledInfoBarDelegate* AsThemePreviewInfobarDelegate(); |
| 215 virtual ThreeDAPIInfoBarDelegate* AsThreeDAPIInfoBarDelegate(); | 215 virtual ThreeDAPIInfoBarDelegate* AsThreeDAPIInfoBarDelegate(); |
| 216 virtual translate::TranslateInfoBarDelegate* AsTranslateInfoBarDelegate(); | 216 virtual translate::TranslateInfoBarDelegate* AsTranslateInfoBarDelegate(); |
| 217 #if defined(OS_ANDROID) | 217 #if defined(OS_ANDROID) |
| 218 virtual MediaStreamInfoBarDelegateAndroid* | 218 virtual MediaStreamInfoBarDelegateAndroid* |
| 219 AsMediaStreamInfoBarDelegateAndroid(); | 219 AsMediaStreamInfoBarDelegateAndroid(); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 234 | 234 |
| 235 // The ID of the active navigation entry at the time we became owned. | 235 // The ID of the active navigation entry at the time we became owned. |
| 236 int nav_entry_id_; | 236 int nav_entry_id_; |
| 237 | 237 |
| 238 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate); | 238 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate); |
| 239 }; | 239 }; |
| 240 | 240 |
| 241 } // namespace infobars | 241 } // namespace infobars |
| 242 | 242 |
| 243 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ | 243 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ |
| OLD | NEW |