This commit is contained in:
Yuan Xulei 2015-01-21 21:41:08 +08:00
Родитель 41b9e89be3
Коммит 157a8a0421
3 изменённых файлов: 19 добавлений и 5 удалений

Просмотреть файл

@ -534,3 +534,7 @@ DumbPipe.registerOpener("windowOpen", function(message, sender) {
DumbPipe.registerOpener("reload", function(message, sender) {
window.location.reload();
});
DumbPipe.registerOpener("exit", function(message, sender) {
window.close();
});

Просмотреть файл

@ -31,7 +31,6 @@ module J2ME {
"com/nokia/mid/impl/jms/core/Launcher.handleContent.(Ljava/lang/String;)V": YieldReason.Root,
"com/sun/midp/util/isolate/InterIsolateMutex.lock0.(I)V": YieldReason.Root,
"com/sun/midp/events/NativeEventMonitor.waitForNativeEvent.(Lcom/sun/midp/events/NativeEvent;)I": YieldReason.Root,
"com/sun/midp/main/CommandState.exitInternal.(I)V": YieldReason.Root,
"com/sun/midp/io/j2me/push/ConnectionRegistry.poll0.(J)I": YieldReason.Root,
"com/sun/midp/rms/RecordStoreUtil.exists.(Ljava/lang/String;Ljava/lang/String;I)Z": YieldReason.Root,
"com/sun/midp/rms/RecordStoreUtil.deleteFile.(Ljava/lang/String;Ljava/lang/String;I)V": YieldReason.Root,

Просмотреть файл

@ -1046,7 +1046,7 @@ Native["com/sun/midp/main/CommandState.saveCommandState.(Lcom/sun/midp/main/Comm
Native["com/sun/midp/main/CommandState.exitInternal.(I)V"] = function(exit) {
console.info("Exit: " + exit);
asyncImpl("V", new Promise(function(){}));
DumbPipe.open("exit", null, function(message) {});
};
Native["com/sun/midp/suspend/SuspendSystem$MIDPSystem.allMidletsKilled.()Z"] = function() {
@ -1326,6 +1326,17 @@ Native["com/sun/j2me/content/AppProxy.isInSvmMode.()Z"] = function() {
return 0;
};
Native["com/sun/j2me/content/InvocationStore.setCleanup0.(ILjava/lang/String;Z)V"] = function(suiteID, className, cleanup) {
console.warn("com/sun/j2me/content/InvocationStore.setCleanup0.(ILjava/lang/String;Z)V not implemented");
};
Native["com/sun/j2me/content/InvocationStore.setCleanup0.(ILjava/lang/String;Z)V"] =
UnimplementedNative("com/sun/j2me/content/InvocationStore.setCleanup0.(ILjava/lang/String;Z)V");
Native["com/sun/j2me/content/InvocationStore.get0.(Lcom/sun/j2me/content/InvocationImpl;ILjava/lang/String;IZ)I"] =
UnimplementedNative("com/sun/j2me/content/InvocationStore.get0.(Lcom/sun/j2me/content/InvocationImpl;ILjava/lang/String;IZ)I", 0);
Native["com/sun/j2me/content/InvocationStore.getByTid0.(Lcom/sun/j2me/content/InvocationImpl;II)I"] =
UnimplementedNative("com/sun/j2me/content/InvocationStore.getByTid0.(Lcom/sun/j2me/content/InvocationImpl;II)I", 0);
Native["com/sun/j2me/content/InvocationStore.resetFlags0.(I)V"] =
UnimplementedNative("com/sun/j2me/content/InvocationStore.resetFlags0.(I)V");
Native["com/sun/j2me/content/AppProxy.midletIsRemoved.(ILjava/lang/String;)V"] =
UnimplementedNative("com/sun/j2me/content/AppProxy.midletIsRemoved.(ILjava/lang/String;)V");