Chromium Code Reviews| 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 AccountChooserInfoBarDelegateAndroid; | |
| 12 class AutoLoginInfoBarDelegate; | 13 class AutoLoginInfoBarDelegate; |
| 13 class ConfirmInfoBarDelegate; | 14 class ConfirmInfoBarDelegate; |
| 14 class InsecureContentInfoBarDelegate; | 15 class InsecureContentInfoBarDelegate; |
| 15 class MediaStreamInfoBarDelegate; | 16 class MediaStreamInfoBarDelegate; |
| 16 class NativeAppInfoBarDelegate; | 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; |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 97 | 98 |
| 98 // Return the resource ID of the icon to be shown for this InfoBar. If the | 99 // Return the resource ID of the icon to be shown for this InfoBar. If the |
| 99 // value is equal to |kNoIconID|, no icon is shown. | 100 // value is equal to |kNoIconID|, no icon is shown. |
| 100 virtual int GetIconID() const; | 101 virtual int GetIconID() const; |
| 101 | 102 |
| 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: |
| 108 virtual AccountChooserInfoBarDelegateAndroid* | |
| 109 AsAccountChooserInfoBarDelegateAndroid(); | |
|
Peter Kasting
2015/02/16 20:37:07
You don't need this method.
You only use it in Ac
melandory
2015/02/17 16:16:58
Done.
| |
| 107 virtual AutoLoginInfoBarDelegate* AsAutoLoginInfoBarDelegate(); | 110 virtual AutoLoginInfoBarDelegate* AsAutoLoginInfoBarDelegate(); |
| 108 virtual ConfirmInfoBarDelegate* AsConfirmInfoBarDelegate(); | 111 virtual ConfirmInfoBarDelegate* AsConfirmInfoBarDelegate(); |
| 109 virtual InsecureContentInfoBarDelegate* AsInsecureContentInfoBarDelegate(); | 112 virtual InsecureContentInfoBarDelegate* AsInsecureContentInfoBarDelegate(); |
| 110 virtual MediaStreamInfoBarDelegate* AsMediaStreamInfoBarDelegate(); | 113 virtual MediaStreamInfoBarDelegate* AsMediaStreamInfoBarDelegate(); |
| 111 virtual NativeAppInfoBarDelegate* AsNativeAppInfoBarDelegate(); | 114 virtual NativeAppInfoBarDelegate* AsNativeAppInfoBarDelegate(); |
| 112 virtual PopupBlockedInfoBarDelegate* AsPopupBlockedInfoBarDelegate(); | 115 virtual PopupBlockedInfoBarDelegate* AsPopupBlockedInfoBarDelegate(); |
| 113 virtual RegisterProtocolHandlerInfoBarDelegate* | 116 virtual RegisterProtocolHandlerInfoBarDelegate* |
| 114 AsRegisterProtocolHandlerInfoBarDelegate(); | 117 AsRegisterProtocolHandlerInfoBarDelegate(); |
| 115 virtual ScreenCaptureInfoBarDelegate* AsScreenCaptureInfoBarDelegate(); | 118 virtual ScreenCaptureInfoBarDelegate* AsScreenCaptureInfoBarDelegate(); |
| 116 virtual ThemeInstalledInfoBarDelegate* AsThemePreviewInfobarDelegate(); | 119 virtual ThemeInstalledInfoBarDelegate* AsThemePreviewInfobarDelegate(); |
| (...skipping 25 matching lines...) Expand all Loading... | |
| 142 | 145 |
| 143 // The InfoBar associated with us. | 146 // The InfoBar associated with us. |
| 144 InfoBar* infobar_; | 147 InfoBar* infobar_; |
| 145 | 148 |
| 146 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate); | 149 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate); |
| 147 }; | 150 }; |
| 148 | 151 |
| 149 } // namespace infobars | 152 } // namespace infobars |
| 150 | 153 |
| 151 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ | 154 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ |
| OLD | NEW |