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

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

Issue 2815653003: IPH - connect data saver previews (Closed)
Patch Set: Addressed comments 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..c91013a2d3a250f34444139a5731cb5d4e11afd7 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
@@ -140,6 +140,13 @@ public abstract class InfoBar implements InfoBarView {
return false;
}
+ @Override
+ @InfoBarIdentifier
+ public int getInfoBarIdentifier() {
+ if (mNativeInfoBarPtr == 0) return InfoBarIdentifier.INVALID;
+ return nativeGetInfoBarIdentifier(mNativeInfoBarPtr);
+ }
+
/**
* @return whether the infobar actually needed closing.
*/
@@ -200,6 +207,8 @@ public abstract class InfoBar implements InfoBarView {
public void createContent(InfoBarLayout layout) {
}
+ @InfoBarIdentifier
+ private native int nativeGetInfoBarIdentifier(long nativeInfoBarAndroid);
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