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

Unified Diff: chrome/browser/previews/previews_infobar_delegate.h

Issue 2860083003: Add timestamp support to the Previews infobar (Closed)
Patch Set: sync and rebase 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
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/previews/previews_infobar_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 61085575c685719d7339a42987fb000e4fab8c61..a7342285914b4783b75ecc380f121516c73cb241 100644
--- a/chrome/browser/previews/previews_infobar_delegate.h
+++ b/chrome/browser/previews/previews_infobar_delegate.h
@@ -53,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,
@@ -65,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_;
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/previews/previews_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698