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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_ANDROID_INFOBARS_PREVIEWS_INFOBAR_H_
6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_PREVIEWS_INFOBAR_H_
7
8 #include "base/android/scoped_java_ref.h"
9 #include "base/macros.h"
10 #include "chrome/browser/previews/previews_infobar_delegate.h"
11 #include "chrome/browser/ui/android/infobars/confirm_infobar.h"
12
13 class PreviewsInfoBar : public ConfirmInfoBar {
14 public:
15 explicit PreviewsInfoBar(std::unique_ptr<PreviewsInfoBarDelegate> delegate);
16
17 ~PreviewsInfoBar() override;
18
19 // Returns a Previews infobar that owns |delegate|.
20 static std::unique_ptr<infobars::InfoBar> CreateInfoBar(
21 infobars::InfoBarManager* infobar_manager,
22 std::unique_ptr<PreviewsInfoBarDelegate> delegate);
23
24 private:
25 // ConfirmInfoBar:
26 base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar(
27 JNIEnv* env) override;
28
29 DISALLOW_COPY_AND_ASSIGN(PreviewsInfoBar);
30 };
31
32 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_PREVIEWS_INFOBAR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698