Chromium Code Reviews| 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); |