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

Unified Diff: chrome/browser/ui/android/infobars/previews_infobar.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/ui/android/infobars/previews_infobar.h
diff --git a/chrome/browser/ui/android/infobars/previews_infobar.h b/chrome/browser/ui/android/infobars/previews_infobar.h
new file mode 100644
index 0000000000000000000000000000000000000000..8c71ca8353468440fe535afcdb30514881a9f351
--- /dev/null
+++ b/chrome/browser/ui/android/infobars/previews_infobar.h
@@ -0,0 +1,32 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_ANDROID_INFOBARS_PREVIEWS_INFOBAR_H_
+#define CHROME_BROWSER_UI_ANDROID_INFOBARS_PREVIEWS_INFOBAR_H_
+
+#include "base/android/scoped_java_ref.h"
+#include "base/macros.h"
+#include "chrome/browser/previews/previews_infobar_delegate.h"
+#include "chrome/browser/ui/android/infobars/confirm_infobar.h"
+
+class PreviewsInfoBar : public ConfirmInfoBar {
+ public:
+ explicit PreviewsInfoBar(std::unique_ptr<PreviewsInfoBarDelegate> delegate);
+
+ ~PreviewsInfoBar() override;
+
+ // Returns a Previews infobar that owns |delegate|.
+ static std::unique_ptr<infobars::InfoBar> CreateInfoBar(
+ infobars::InfoBarManager* infobar_manager,
+ std::unique_ptr<PreviewsInfoBarDelegate> delegate);
+
+ private:
+ // ConfirmInfoBar:
+ base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar(
+ JNIEnv* env) override;
+
+ DISALLOW_COPY_AND_ASSIGN(PreviewsInfoBar);
+};
+
+#endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_PREVIEWS_INFOBAR_H_

Powered by Google App Engine
This is Rietveld 408576698