| 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" |
| 11 | 11 |
| 12 class AutoLoginInfoBarDelegate; | 12 class AutoLoginInfoBarDelegate; |
| 13 class ConfirmInfoBarDelegate; | 13 class ConfirmInfoBarDelegate; |
| 14 class ExtensionInfoBarDelegate; | 14 class ExtensionInfoBarDelegate; |
| 15 class InsecureContentInfoBarDelegate; | 15 class InsecureContentInfoBarDelegate; |
| 16 class MediaStreamInfoBarDelegate; | 16 class MediaStreamInfoBarDelegate; |
| 17 class NativeAppInfoBarDelegate; |
| 17 class PopupBlockedInfoBarDelegate; | 18 class PopupBlockedInfoBarDelegate; |
| 18 class RegisterProtocolHandlerInfoBarDelegate; | 19 class RegisterProtocolHandlerInfoBarDelegate; |
| 19 class ScreenCaptureInfoBarDelegate; | 20 class ScreenCaptureInfoBarDelegate; |
| 20 class ThemeInstalledInfoBarDelegate; | 21 class ThemeInstalledInfoBarDelegate; |
| 21 class ThreeDAPIInfoBarDelegate; | 22 class ThreeDAPIInfoBarDelegate; |
| 22 | 23 |
| 23 namespace translate { | 24 namespace translate { |
| 24 class TranslateInfoBarDelegate; | 25 class TranslateInfoBarDelegate; |
| 25 } | 26 } |
| 26 | 27 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 // Returns the type of the infobar. The type determines the appearance (such | 103 // Returns the type of the infobar. The type determines the appearance (such |
| 103 // as background color) of the infobar. | 104 // as background color) of the infobar. |
| 104 virtual Type GetInfoBarType() const; | 105 virtual Type GetInfoBarType() const; |
| 105 | 106 |
| 106 // Type-checking downcast routines: | 107 // Type-checking downcast routines: |
| 107 virtual AutoLoginInfoBarDelegate* AsAutoLoginInfoBarDelegate(); | 108 virtual AutoLoginInfoBarDelegate* AsAutoLoginInfoBarDelegate(); |
| 108 virtual ConfirmInfoBarDelegate* AsConfirmInfoBarDelegate(); | 109 virtual ConfirmInfoBarDelegate* AsConfirmInfoBarDelegate(); |
| 109 virtual ExtensionInfoBarDelegate* AsExtensionInfoBarDelegate(); | 110 virtual ExtensionInfoBarDelegate* AsExtensionInfoBarDelegate(); |
| 110 virtual InsecureContentInfoBarDelegate* AsInsecureContentInfoBarDelegate(); | 111 virtual InsecureContentInfoBarDelegate* AsInsecureContentInfoBarDelegate(); |
| 111 virtual MediaStreamInfoBarDelegate* AsMediaStreamInfoBarDelegate(); | 112 virtual MediaStreamInfoBarDelegate* AsMediaStreamInfoBarDelegate(); |
| 113 virtual NativeAppInfoBarDelegate* AsNativeAppInfoBarDelegate(); |
| 112 virtual PopupBlockedInfoBarDelegate* AsPopupBlockedInfoBarDelegate(); | 114 virtual PopupBlockedInfoBarDelegate* AsPopupBlockedInfoBarDelegate(); |
| 113 virtual RegisterProtocolHandlerInfoBarDelegate* | 115 virtual RegisterProtocolHandlerInfoBarDelegate* |
| 114 AsRegisterProtocolHandlerInfoBarDelegate(); | 116 AsRegisterProtocolHandlerInfoBarDelegate(); |
| 115 virtual ScreenCaptureInfoBarDelegate* AsScreenCaptureInfoBarDelegate(); | 117 virtual ScreenCaptureInfoBarDelegate* AsScreenCaptureInfoBarDelegate(); |
| 116 virtual ThemeInstalledInfoBarDelegate* AsThemePreviewInfobarDelegate(); | 118 virtual ThemeInstalledInfoBarDelegate* AsThemePreviewInfobarDelegate(); |
| 117 virtual translate::TranslateInfoBarDelegate* AsTranslateInfoBarDelegate(); | 119 virtual translate::TranslateInfoBarDelegate* AsTranslateInfoBarDelegate(); |
| 118 | 120 |
| 119 void set_infobar(InfoBar* infobar) { infobar_ = infobar; } | 121 void set_infobar(InfoBar* infobar) { infobar_ = infobar; } |
| 120 | 122 |
| 121 // Store the unique id for the active entry, to be used later upon navigation | 123 // Store the unique id for the active entry, to be used later upon navigation |
| (...skipping 20 matching lines...) Expand all Loading... |
| 142 | 144 |
| 143 // The InfoBar associated with us. | 145 // The InfoBar associated with us. |
| 144 InfoBar* infobar_; | 146 InfoBar* infobar_; |
| 145 | 147 |
| 146 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate); | 148 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate); |
| 147 }; | 149 }; |
| 148 | 150 |
| 149 } // namespace infobars | 151 } // namespace infobars |
| 150 | 152 |
| 151 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ | 153 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ |
| OLD | NEW |