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

Unified Diff: chrome/browser/previews/previews_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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/previews/previews_infobar_delegate.h
diff --git a/chrome/browser/previews/previews_infobar_delegate.h b/chrome/browser/previews/previews_infobar_delegate.h
index f362be5c2a58d71a574dda0d2228860e1cc085b7..f43383433fbf9747e3568ecfb36d28614edb53f7 100644
--- a/chrome/browser/previews/previews_infobar_delegate.h
+++ b/chrome/browser/previews/previews_infobar_delegate.h
@@ -43,6 +43,8 @@ class PreviewsInfoBarDelegate : public ConfirmInfoBarDelegate {
~PreviewsInfoBarDelegate() override;
+ PreviewsInfoBarDelegate* AsPreviewsInfoBarDelegate() override;
+
// Creates a preview infobar and corresponding delegate and adds the infobar
// to InfoBarService.
static void Create(
@@ -51,6 +53,12 @@ class PreviewsInfoBarDelegate : public ConfirmInfoBarDelegate {
bool is_data_saver_user,
const OnDismissPreviewsInfobarCallback& on_dismiss_callback);
+ // ConfirmInfoBarDelegate overrides:
+ base::string16 GetMessageText() const override;
+ base::string16 GetLinkText() const override;
+
+ base::string16 GetTimestampText() const;
+
private:
PreviewsInfoBarDelegate(
content::WebContents* web_contents,
@@ -63,9 +71,7 @@ class PreviewsInfoBarDelegate : public ConfirmInfoBarDelegate {
int GetIconId() const override;
bool ShouldExpire(const NavigationDetails& details) const override;
void InfoBarDismissed() override;
- base::string16 GetMessageText() const override;
int GetButtons() const override;
- base::string16 GetLinkText() const override;
bool LinkClicked(WindowOpenDisposition disposition) override;
PreviewsInfoBarType infobar_type_;

Powered by Google App Engine
This is Rietveld 408576698