/* */ 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 /* */ { /* 29 */ ActiveX.init(this); /* 30 */ this._parent = parent; /* 31 */ this._refs = 1; /* 32 */ Main.register(this); /* */ } /* */ /* */ public synchronized void Release() throws OLEInvalidObjectException /* */ { /* 37 */ if (this._refs <= 0) /* 38 */ return; /* 39 */ this._refs -= 1; /* 40 */ if (this._parent != null) /* 41 */ this._parent.close(); /* 42 */ ActiveX.uninit(this); /* */ } /* */ /* */ public String toString() /* */ { /* 47 */ return "InternetExplorer(" + internalData() + ")"; /* */ } /* */ /* */ public void mainCallback() { /* 51 */ boolean justActivated = Window.getActivated(); /* 52 */ if (justActivated) /* */ { /* */ /* */ /* 56 */ WebBrowser killMe = WebBrowser.findTag("sound:"); /* 57 */ if (killMe != null) /* 58 */ killMe.close(); /* 59 */ killMe = WebBrowser.findTag("videoMap:"); /* 60 */ if (killMe != null) /* 61 */ killMe.close(); /* 62 */ killMe = WebBrowser.findTag("videoAd:"); /* 63 */ if (killMe != null) /* 64 */ killMe.close(); /* 65 */ killMe = WebBrowser.findTag("zoom:"); /* 66 */ if (killMe != null) /* 67 */ killMe.close(); /* 68 */ killMe = WebBrowser.findTag("zoomLeft:"); /* 69 */ if (killMe != null) /* 70 */ killMe.close(); /* 71 */ killMe = WebBrowser.findTag("outside:"); /* 72 */ if (killMe != null) { /* 73 */ killMe.close(); /* */ } /* */ try { /* 76 */ Thread.sleep(1L); /* */ } /* */ catch (InterruptedException localInterruptedException) {} /* */ /* */ /* 81 */ WavSoundPlayer.resumeSystem(); /* 82 */ CDAudio.get().setEnabled(true); /* */ } /* */ } /* */ /* */ public void terminalCallback() { /* 87 */ Main.unregister(this); /* */ } /* */ } /* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\console\InternetExplorer.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */