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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBar.java

Issue 2815653003: IPH - connect data saver previews (Closed)
Patch Set: Created 3 years, 8 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/android/java/src/org/chromium/chrome/browser/infobar/InfoBar.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBar.java b/chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBar.java
index e27ff5bf3b2e07c0de8954ebd0bfcc3831f94118..5d9e6b05339cd94b63aa7fc79397e4b59c93b6d4 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBar.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBar.java
@@ -164,6 +164,12 @@ public abstract class InfoBar implements InfoBarView {
mContainer = container;
}
+ @InfoBarIdentifier
+ int getInfoBarIdentifier() {
+ if (mNativeInfoBarPtr == 0) return InfoBarIdentifier.INVALID;
+ return nativeGetInfoBarIdentifier(mNativeInfoBarPtr);
David Trainor- moved to gerrit 2017/04/12 08:41:20 TODO(me): Figure out how frequent this is and if w
+ }
+
@Override
public boolean areControlsEnabled() {
return mControlsEnabled;
@@ -200,6 +206,8 @@ public abstract class InfoBar implements InfoBarView {
public void createContent(InfoBarLayout layout) {
}
+ @InfoBarIdentifier
+ private native int nativeGetInfoBarIdentifier(long nativeInfoBarAndroid);
David Trainor- moved to gerrit 2017/04/12 08:41:20 Oops! Make this actually talk to something :/.
private native void nativeOnLinkClicked(long nativeInfoBarAndroid);
private native void nativeOnButtonClicked(long nativeInfoBarAndroid, int action);
private native void nativeOnCloseButtonClicked(long nativeInfoBarAndroid);

Powered by Google App Engine
This is Rietveld 408576698