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

Side by Side Diff: chrome/browser/ui/android/infobars/reader_mode_infobar.h

Issue 2812753003: 🏠 Reader Mode info bar implementation (Closed)
Patch Set: address 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
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/android/infobars/reader_mode_infobar.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_READER_MODE_INFOBAR_H_
6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_READER_MODE_INFOBAR_H_
7
8 #include "base/android/jni_android.h"
9 #include "base/android/scoped_java_ref.h"
10 #include "base/macros.h"
11 #include "chrome/browser/ui/android/infobars/infobar_android.h"
12 #include "components/infobars/core/infobar_delegate.h"
13
14 class ReaderModeInfoBarDelegate;
15
16 class ReaderModeInfoBar : public InfoBarAndroid {
17 public:
18 explicit ReaderModeInfoBar(
19 std::unique_ptr<ReaderModeInfoBarDelegate> delegate);
20 ~ReaderModeInfoBar() override;
21
22 protected:
23 infobars::InfoBarDelegate* GetDelegate();
24
25 // InfoBarAndroid overrides.
26 void ProcessButton(int action) override;
27 base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar(
28 JNIEnv* env) override;
29
30 private:
31 DISALLOW_COPY_AND_ASSIGN(ReaderModeInfoBar);
32 };
33
34 // Register native methods.
35 bool RegisterReaderModeInfoBar(JNIEnv* env);
36
37 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_READER_MODE_INFOBAR_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/android/infobars/reader_mode_infobar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698