blob: 5a724870b7d05002db5adb3fe8d49771d12f1550 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
package NET.worlds.console;
import NET.worlds.scape.CDAudio;
import NET.worlds.scape.WavSoundPlayer;
import java.io.IOException;
public class InternetExplorer extends IUnknown implements MainCallback, MainTerminalCallback {
WebBrowser _parent;
public InternetExplorer(WebBrowser parent) throws IOException {
ActiveX.init(this);
this._parent = parent;
this._refs = 1;
Main.register(this);
}
@Override
public synchronized void Release() throws OLEInvalidObjectException {
if (this._refs > 0) {
this._refs--;
if (this._parent != null) {
this._parent.close();
}
ActiveX.uninit(this);
}
}
@Override
public String toString() {
return "InternetExplorer(" + this.internalData() + ")";
}
@Override
public void mainCallback() {
boolean justActivated = Window.getActivated();
if (justActivated) {
WebBrowser killMe = WebBrowser.findTag("sound:");
if (killMe != null) {
killMe.close();
}
killMe = WebBrowser.findTag("videoMap:");
if (killMe != null) {
killMe.close();
}
killMe = WebBrowser.findTag("videoAd:");
if (killMe != null) {
killMe.close();
}
killMe = WebBrowser.findTag("zoom:");
if (killMe != null) {
killMe.close();
}
killMe = WebBrowser.findTag("zoomLeft:");
if (killMe != null) {
killMe.close();
}
killMe = WebBrowser.findTag("outside:");
if (killMe != null) {
killMe.close();
}
try {
Thread.sleep(1L);
} catch (InterruptedException var4) {
}
WavSoundPlayer.resumeSystem();
CDAudio.get().setEnabled(true);
}
}
@Override
public void terminalCallback() {
Main.unregister(this);
}
}
|