@Override
public boolean onCreateWindow(boolean isDialog, boolean isUserGesture) {
if (isDialog) return false;
-
+
XWalkUIClientInternal.InitiateByInternal initiator =
XWalkUIClientInternal.InitiateByInternal.BY_JAVASCRIPT;
if (isUserGesture) {
}
@CalledByNative
- private void updateNotificationIcon(int notificationId, Bitmap icon) {
- mNotificationService.updateNotificationIcon(notificationId, icon);
- }
-
- @CalledByNative
private void showNotification(String title, String message, String replaceId,
- int notificationId) {
+ Bitmap icon, int notificationId) {
mNotificationService.showNotification(
- title, message, replaceId, notificationId);
+ title, message, replaceId, icon, notificationId);
}
@CalledByNative
nativeNotificationDisplayed(mNativeContentsClientBridge, id);
}
- public void notificationError(int id) {
- if (mNativeContentsClientBridge == 0) return;
- nativeNotificationError(mNativeContentsClientBridge, id);
- }
-
public void notificationClicked(int id) {
if (mNativeContentsClientBridge == 0) return;
nativeNotificationClicked(mNativeContentsClientBridge, id);
private native void nativeCancelJsResult(long nativeXWalkContentsClientBridge, int id);
private native void nativeExitFullscreen(long nativeXWalkContentsClientBridge, long nativeWebContents);
private native void nativeNotificationDisplayed(long nativeXWalkContentsClientBridge, int id);
- private native void nativeNotificationError(long nativeXWalkContentsClientBridge, int id);
private native void nativeNotificationClicked(long nativeXWalkContentsClientBridge, int id);
private native void nativeNotificationClosed(long nativeXWalkContentsClientBridge, int id, boolean byUser);
private native void nativeOnFilesSelected(long nativeXWalkContentsClientBridge,