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 PreviewsInfoBarDelegate; |
19 class RegisterProtocolHandlerInfoBarDelegate; | 20 class RegisterProtocolHandlerInfoBarDelegate; |
20 class ScreenCaptureInfoBarDelegate; | 21 class ScreenCaptureInfoBarDelegate; |
21 class ThemeInstalledInfoBarDelegate; | 22 class ThemeInstalledInfoBarDelegate; |
22 class ThreeDAPIInfoBarDelegate; | 23 class ThreeDAPIInfoBarDelegate; |
23 | 24 |
24 #if defined(OS_ANDROID) | 25 #if defined(OS_ANDROID) |
25 class MediaStreamInfoBarDelegateAndroid; | 26 class MediaStreamInfoBarDelegateAndroid; |
26 | 27 |
27 namespace offline_pages { | 28 namespace offline_pages { |
28 class OfflinePageInfoBarDelegate; | 29 class OfflinePageInfoBarDelegate; |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 // Called when the user clicks on the close button to dismiss the infobar. | 213 // Called when the user clicks on the close button to dismiss the infobar. |
213 virtual void InfoBarDismissed(); | 214 virtual void InfoBarDismissed(); |
214 | 215 |
215 // Type-checking downcast routines: | 216 // Type-checking downcast routines: |
216 virtual ConfirmInfoBarDelegate* AsConfirmInfoBarDelegate(); | 217 virtual ConfirmInfoBarDelegate* AsConfirmInfoBarDelegate(); |
217 virtual HungRendererInfoBarDelegate* AsHungRendererInfoBarDelegate(); | 218 virtual HungRendererInfoBarDelegate* AsHungRendererInfoBarDelegate(); |
218 virtual InsecureContentInfoBarDelegate* AsInsecureContentInfoBarDelegate(); | 219 virtual InsecureContentInfoBarDelegate* AsInsecureContentInfoBarDelegate(); |
219 virtual NativeAppInfoBarDelegate* AsNativeAppInfoBarDelegate(); | 220 virtual NativeAppInfoBarDelegate* AsNativeAppInfoBarDelegate(); |
220 virtual PermissionInfoBarDelegate* AsPermissionInfoBarDelegate(); | 221 virtual PermissionInfoBarDelegate* AsPermissionInfoBarDelegate(); |
221 virtual PopupBlockedInfoBarDelegate* AsPopupBlockedInfoBarDelegate(); | 222 virtual PopupBlockedInfoBarDelegate* AsPopupBlockedInfoBarDelegate(); |
| 223 virtual PreviewsInfoBarDelegate* AsPreviewsInfoBarDelegate(); |
222 virtual RegisterProtocolHandlerInfoBarDelegate* | 224 virtual RegisterProtocolHandlerInfoBarDelegate* |
223 AsRegisterProtocolHandlerInfoBarDelegate(); | 225 AsRegisterProtocolHandlerInfoBarDelegate(); |
224 virtual ScreenCaptureInfoBarDelegate* AsScreenCaptureInfoBarDelegate(); | 226 virtual ScreenCaptureInfoBarDelegate* AsScreenCaptureInfoBarDelegate(); |
225 virtual ThemeInstalledInfoBarDelegate* AsThemePreviewInfobarDelegate(); | 227 virtual ThemeInstalledInfoBarDelegate* AsThemePreviewInfobarDelegate(); |
226 virtual ThreeDAPIInfoBarDelegate* AsThreeDAPIInfoBarDelegate(); | 228 virtual ThreeDAPIInfoBarDelegate* AsThreeDAPIInfoBarDelegate(); |
227 virtual translate::TranslateInfoBarDelegate* AsTranslateInfoBarDelegate(); | 229 virtual translate::TranslateInfoBarDelegate* AsTranslateInfoBarDelegate(); |
228 #if defined(OS_ANDROID) | 230 #if defined(OS_ANDROID) |
229 virtual MediaStreamInfoBarDelegateAndroid* | 231 virtual MediaStreamInfoBarDelegateAndroid* |
230 AsMediaStreamInfoBarDelegateAndroid(); | 232 AsMediaStreamInfoBarDelegateAndroid(); |
231 virtual offline_pages::OfflinePageInfoBarDelegate* | 233 virtual offline_pages::OfflinePageInfoBarDelegate* |
(...skipping 14 matching lines...) Expand all Loading... |
246 | 248 |
247 // The ID of the active navigation entry at the time we became owned. | 249 // The ID of the active navigation entry at the time we became owned. |
248 int nav_entry_id_; | 250 int nav_entry_id_; |
249 | 251 |
250 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate); | 252 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate); |
251 }; | 253 }; |
252 | 254 |
253 } // namespace infobars | 255 } // namespace infobars |
254 | 256 |
255 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ | 257 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ |
OLD | NEW |