Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Side by Side Diff: components/infobars/core/infobar_delegate.h

Issue 2860083003: Add timestamp support to the Previews infobar (Closed)
Patch Set: ryansturm comments Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698