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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/android/infobars/reader_mode_infobar.h
diff --git a/chrome/browser/ui/android/infobars/reader_mode_infobar.h b/chrome/browser/ui/android/infobars/reader_mode_infobar.h
new file mode 100644
index 0000000000000000000000000000000000000000..22059e2b0b333f8b743605a247893be1507b19f9
--- /dev/null
+++ b/chrome/browser/ui/android/infobars/reader_mode_infobar.h
@@ -0,0 +1,37 @@
+// 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_READER_MODE_INFOBAR_H_
+#define CHROME_BROWSER_UI_ANDROID_INFOBARS_READER_MODE_INFOBAR_H_
+
+#include "base/android/jni_android.h"
+#include "base/android/scoped_java_ref.h"
+#include "base/macros.h"
+#include "chrome/browser/ui/android/infobars/infobar_android.h"
+#include "components/infobars/core/infobar_delegate.h"
+
+class ReaderModeInfoBarDelegate;
+
+class ReaderModeInfoBar : public InfoBarAndroid {
+ public:
+ explicit ReaderModeInfoBar(
+ std::unique_ptr<ReaderModeInfoBarDelegate> delegate);
+ ~ReaderModeInfoBar() override;
+
+ protected:
+ infobars::InfoBarDelegate* GetDelegate();
+
+ // InfoBarAndroid overrides.
+ void ProcessButton(int action) override;
+ base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar(
+ JNIEnv* env) override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ReaderModeInfoBar);
+};
+
+// Register native methods.
+bool RegisterReaderModeInfoBar(JNIEnv* env);
+
+#endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_READER_MODE_INFOBAR_H_
« 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