| 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; | |
| 15 class InsecureContentInfoBarDelegate; | 14 class InsecureContentInfoBarDelegate; |
| 16 class MediaStreamInfoBarDelegate; | 15 class MediaStreamInfoBarDelegate; |
| 17 class NativeAppInfoBarDelegate; | 16 class NativeAppInfoBarDelegate; |
| 18 class PopupBlockedInfoBarDelegate; | 17 class PopupBlockedInfoBarDelegate; |
| 19 class RegisterProtocolHandlerInfoBarDelegate; | 18 class RegisterProtocolHandlerInfoBarDelegate; |
| 20 class ScreenCaptureInfoBarDelegate; | 19 class ScreenCaptureInfoBarDelegate; |
| 21 class ThemeInstalledInfoBarDelegate; | 20 class ThemeInstalledInfoBarDelegate; |
| 22 class ThreeDAPIInfoBarDelegate; | 21 class ThreeDAPIInfoBarDelegate; |
| 23 | 22 |
| 24 namespace translate { | 23 namespace translate { |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 // value is equal to |kNoIconID|, no icon is shown. | 99 // value is equal to |kNoIconID|, no icon is shown. |
| 101 virtual int GetIconID() const; | 100 virtual int GetIconID() const; |
| 102 | 101 |
| 103 // Returns the type of the infobar. The type determines the appearance (such | 102 // Returns the type of the infobar. The type determines the appearance (such |
| 104 // as background color) of the infobar. | 103 // as background color) of the infobar. |
| 105 virtual Type GetInfoBarType() const; | 104 virtual Type GetInfoBarType() const; |
| 106 | 105 |
| 107 // Type-checking downcast routines: | 106 // Type-checking downcast routines: |
| 108 virtual AutoLoginInfoBarDelegate* AsAutoLoginInfoBarDelegate(); | 107 virtual AutoLoginInfoBarDelegate* AsAutoLoginInfoBarDelegate(); |
| 109 virtual ConfirmInfoBarDelegate* AsConfirmInfoBarDelegate(); | 108 virtual ConfirmInfoBarDelegate* AsConfirmInfoBarDelegate(); |
| 110 virtual ExtensionInfoBarDelegate* AsExtensionInfoBarDelegate(); | |
| 111 virtual InsecureContentInfoBarDelegate* AsInsecureContentInfoBarDelegate(); | 109 virtual InsecureContentInfoBarDelegate* AsInsecureContentInfoBarDelegate(); |
| 112 virtual MediaStreamInfoBarDelegate* AsMediaStreamInfoBarDelegate(); | 110 virtual MediaStreamInfoBarDelegate* AsMediaStreamInfoBarDelegate(); |
| 113 virtual NativeAppInfoBarDelegate* AsNativeAppInfoBarDelegate(); | 111 virtual NativeAppInfoBarDelegate* AsNativeAppInfoBarDelegate(); |
| 114 virtual PopupBlockedInfoBarDelegate* AsPopupBlockedInfoBarDelegate(); | 112 virtual PopupBlockedInfoBarDelegate* AsPopupBlockedInfoBarDelegate(); |
| 115 virtual RegisterProtocolHandlerInfoBarDelegate* | 113 virtual RegisterProtocolHandlerInfoBarDelegate* |
| 116 AsRegisterProtocolHandlerInfoBarDelegate(); | 114 AsRegisterProtocolHandlerInfoBarDelegate(); |
| 117 virtual ScreenCaptureInfoBarDelegate* AsScreenCaptureInfoBarDelegate(); | 115 virtual ScreenCaptureInfoBarDelegate* AsScreenCaptureInfoBarDelegate(); |
| 118 virtual ThemeInstalledInfoBarDelegate* AsThemePreviewInfobarDelegate(); | 116 virtual ThemeInstalledInfoBarDelegate* AsThemePreviewInfobarDelegate(); |
| 119 virtual translate::TranslateInfoBarDelegate* AsTranslateInfoBarDelegate(); | 117 virtual translate::TranslateInfoBarDelegate* AsTranslateInfoBarDelegate(); |
| 120 | 118 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 144 | 142 |
| 145 // The InfoBar associated with us. | 143 // The InfoBar associated with us. |
| 146 InfoBar* infobar_; | 144 InfoBar* infobar_; |
| 147 | 145 |
| 148 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate); | 146 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate); |
| 149 }; | 147 }; |
| 150 | 148 |
| 151 } // namespace infobars | 149 } // namespace infobars |
| 152 | 150 |
| 153 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ | 151 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ |
| OLD | NEW |