| 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);
|
|
|