78 lines
4.2 KiB
Diff
78 lines
4.2 KiB
Diff
From: Ryan Archer <ryan.bradley.archer@gmail.com>
|
||
Date: Wed, 2 Aug 2017 01:41:28 -0400
|
||
Subject: Add an INeedSnackbarManager
|
||
|
||
* Taken from the "Add an always-incognito mode" patch
|
||
|
||
Change-Id: Ib3e64c121d62fb50ade2015514a007aa2d4694d0
|
||
---
|
||
.../strings/android_chrome_strings.grd | 6 +++++
|
||
chrome/browser/ui/messages/android/BUILD.gn | 1 +
|
||
.../snackbar/INeedSnackbarManager.java | 27 +++++++++++++++++++
|
||
3 files changed, 34 insertions(+)
|
||
create mode 100644 chrome/browser/ui/messages/android/java/src/org/chromium/chrome/browser/ui/messages/snackbar/INeedSnackbarManager.java
|
||
|
||
diff --git a/chrome/browser/ui/android/strings/android_chrome_strings.grd b/chrome/browser/ui/android/strings/android_chrome_strings.grd
|
||
--- a/chrome/browser/ui/android/strings/android_chrome_strings.grd
|
||
+++ b/chrome/browser/ui/android/strings/android_chrome_strings.grd
|
||
@@ -1335,6 +1335,12 @@ Your Google account may have other forms of browsing history like searches and a
|
||
<message name="IDS_CLEAR_BROWSING_HISTORY_SUMMARY_SYNCED_NO_LINK" desc="A text for the basic tab explaining browsing history for users with history sync. This version is shown when the link to MyActivity is displayed separately.">
|
||
Clears history from all synced devices.
|
||
</message>
|
||
+ <message name="IDS_RELAUNCH" desc="Summary for always incognito mode">
|
||
+ Relaunch
|
||
+ </message>
|
||
+ <message name="IDS_UI_RELAUNCH_NOTICE" desc="Summary for always incognito mode">
|
||
+ Your changes will take effect the next time you relaunch Bromite.
|
||
+ </message>
|
||
<message name="IDS_CLEAR_SEARCH_HISTORY_LINK" desc="Text informing the user that they can clear search history and other data using MyActivity.">
|
||
<ph name="BEGIN_LINK1"><link1></ph>Search history<ph name="END_LINK1"></link1></ph> and <ph name="BEGIN_LINK2"><link2></ph>other forms of activity<ph name="END_LINK2"></link2></ph> may be saved in your Google Account when you’re signed in. You can delete them anytime.
|
||
</message>
|
||
diff --git a/chrome/browser/ui/messages/android/BUILD.gn b/chrome/browser/ui/messages/android/BUILD.gn
|
||
--- a/chrome/browser/ui/messages/android/BUILD.gn
|
||
+++ b/chrome/browser/ui/messages/android/BUILD.gn
|
||
@@ -23,6 +23,7 @@ android_resources("java_resources") {
|
||
android_library("java") {
|
||
sources = [
|
||
"java/src/org/chromium/chrome/browser/ui/messages/infobar/SimpleConfirmInfoBarBuilder.java",
|
||
+ "java/src/org/chromium/chrome/browser/ui/messages/snackbar/INeedSnackbarManager.java",
|
||
"java/src/org/chromium/chrome/browser/ui/messages/snackbar/Snackbar.java",
|
||
"java/src/org/chromium/chrome/browser/ui/messages/snackbar/SnackbarCollection.java",
|
||
"java/src/org/chromium/chrome/browser/ui/messages/snackbar/SnackbarManager.java",
|
||
diff --git a/chrome/browser/ui/messages/android/java/src/org/chromium/chrome/browser/ui/messages/snackbar/INeedSnackbarManager.java b/chrome/browser/ui/messages/android/java/src/org/chromium/chrome/browser/ui/messages/snackbar/INeedSnackbarManager.java
|
||
new file mode 100644
|
||
index 0000000000000000000000000000000000000000..18703fa8bf83a8948e0f046b7dc69f713a272035
|
||
--- /dev/null
|
||
+++ b/chrome/browser/ui/messages/android/java/src/org/chromium/chrome/browser/ui/messages/snackbar/INeedSnackbarManager.java
|
||
@@ -0,0 +1,27 @@
|
||
+/*
|
||
+ This file is part of Bromite.
|
||
+
|
||
+ Bromite is free software: you can redistribute it and/or modify
|
||
+ it under the terms of the GNU General Public License as published by
|
||
+ the Free Software Foundation, either version 3 of the License, or
|
||
+ (at your option) any later version.
|
||
+
|
||
+ Bromite is distributed in the hope that it will be useful,
|
||
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
+ GNU General Public License for more details.
|
||
+
|
||
+ You should have received a copy of the GNU General Public License
|
||
+ along with Bromite. If not, see <https://www.gnu.org/licenses/>.
|
||
+*/
|
||
+
|
||
+package org.chromium.chrome.browser.ui.messages.snackbar;
|
||
+
|
||
+import org.chromium.chrome.browser.ui.messages.snackbar.SnackbarManager;
|
||
+
|
||
+/**
|
||
+ * An interface that allows using snackbars in the settings
|
||
+ */
|
||
+public interface INeedSnackbarManager {
|
||
+ void setSnackbarManager(SnackbarManager manager);
|
||
+}
|
||
--
|
||
2.40.1
|
||
|