summaryrefslogtreecommitdiff
path: root/NET/worlds/console/InternetExplorer.java
blob: 8d8e71b8ef161dbd4a413ea5aaec6468dbf839d0 (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
83
84
85
86
87
88
89
90
91
92
93
94
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
 */