diff options
| author | Fuwn <[email protected]> | 2021-05-03 16:38:41 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-05-03 16:38:41 -0700 |
| commit | e1e781bb2135ef78592226f1a3eaba4925702f1f (patch) | |
| tree | 8a5b590463ed413e1c6eabb719130e701b95ca63 /NET/worlds/console/InternetExplorer.java | |
| download | worlds.jar-e1e781bb2135ef78592226f1a3eaba4925702f1f.tar.xz worlds.jar-e1e781bb2135ef78592226f1a3eaba4925702f1f.zip | |
Diffstat (limited to 'NET/worlds/console/InternetExplorer.java')
| -rw-r--r-- | NET/worlds/console/InternetExplorer.java | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/NET/worlds/console/InternetExplorer.java b/NET/worlds/console/InternetExplorer.java new file mode 100644 index 0000000..8d8e71b --- /dev/null +++ b/NET/worlds/console/InternetExplorer.java @@ -0,0 +1,95 @@ +/* */ 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 + */
\ No newline at end of file |