harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apetre...@apache.org
Subject svn commit: r629811 - in /harmony/enhanced/sandbox/mozillaplugin/src/main/java/org/apache/harmony/applet: Factory.java Launcher.java PluginCallback.java
Date Thu, 21 Feb 2008 14:51:32 GMT
Author: apetrenko
Date: Thu Feb 21 06:51:31 2008
New Revision: 629811

URL: http://svn.apache.org/viewvc?rev=629811&view=rev
Log:
Callback interface is renamed to BrowserCallback

Modified:
    harmony/enhanced/sandbox/mozillaplugin/src/main/java/org/apache/harmony/applet/Factory.java
    harmony/enhanced/sandbox/mozillaplugin/src/main/java/org/apache/harmony/applet/Launcher.java
    harmony/enhanced/sandbox/mozillaplugin/src/main/java/org/apache/harmony/applet/PluginCallback.java

Modified: harmony/enhanced/sandbox/mozillaplugin/src/main/java/org/apache/harmony/applet/Factory.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/sandbox/mozillaplugin/src/main/java/org/apache/harmony/applet/Factory.java?rev=629811&r1=629810&r2=629811&view=diff
==============================================================================
--- harmony/enhanced/sandbox/mozillaplugin/src/main/java/org/apache/harmony/applet/Factory.java
(original)
+++ harmony/enhanced/sandbox/mozillaplugin/src/main/java/org/apache/harmony/applet/Factory.java
Thu Feb 21 06:51:31 2008
@@ -25,18 +25,20 @@
 import java.util.HashMap;
 import java.util.Map;
 
+import org.apache.harmony.applet.callbacks.BrowserCallback;
+
 /**
  * Applet context factory
  */
 final class Factory {
     
-    private final Callback callback;
+    private final BrowserCallback browserCallback;
     private final Map<URL, CodeBase> codeBases = Collections.synchronizedMap(new HashMap<URL,
CodeBase>());
     private final Map<Integer, Proxy> allProxies = Collections.synchronizedMap(new
HashMap<Integer, Proxy>());
     private final Map<Integer, Document> documents = Collections.synchronizedMap(new
HashMap<Integer, Document>());
     
-    Factory(Callback callback) {
-        this.callback = callback;
+    Factory(BrowserCallback browserCallback) {
+        this.browserCallback = browserCallback;
     }
     
     CodeBase getCodeBase(URL url) {
@@ -128,15 +130,15 @@
     }
     
     void appletResize(Proxy p, int width, int height) {
-        callback.appletResize(p.params.id, width, height);
+    	browserCallback.appletResize(p.params.id, width, height);
     }
     
     void showStatus(DocumentSlice ds, String status) {
-        callback.showStatus(ds.document.id, status);
+    	browserCallback.showStatus(ds.document.id, status);
     }
     
     void showDocument(DocumentSlice ds, URL url, String target) {
-        callback.showDocument(ds.document.id, url, target);
+    	browserCallback.showDocument(ds.document.id, url, target);
     }
 
     void add(Proxy p) {

Modified: harmony/enhanced/sandbox/mozillaplugin/src/main/java/org/apache/harmony/applet/Launcher.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/sandbox/mozillaplugin/src/main/java/org/apache/harmony/applet/Launcher.java?rev=629811&r1=629810&r2=629811&view=diff
==============================================================================
--- harmony/enhanced/sandbox/mozillaplugin/src/main/java/org/apache/harmony/applet/Launcher.java
(original)
+++ harmony/enhanced/sandbox/mozillaplugin/src/main/java/org/apache/harmony/applet/Launcher.java
Thu Feb 21 06:51:31 2008
@@ -29,10 +29,12 @@
 import java.net.URL;
 import java.util.HashMap;
 
+import org.apache.harmony.applet.callbacks.BrowserCallback;
+
 /**
  * Standalone applet launcher
  */
-public final class Launcher implements Callback {
+public final class Launcher implements BrowserCallback {
     
     private final Factory factory;
     

Modified: harmony/enhanced/sandbox/mozillaplugin/src/main/java/org/apache/harmony/applet/PluginCallback.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/sandbox/mozillaplugin/src/main/java/org/apache/harmony/applet/PluginCallback.java?rev=629811&r1=629810&r2=629811&view=diff
==============================================================================
--- harmony/enhanced/sandbox/mozillaplugin/src/main/java/org/apache/harmony/applet/PluginCallback.java
(original)
+++ harmony/enhanced/sandbox/mozillaplugin/src/main/java/org/apache/harmony/applet/PluginCallback.java
Thu Feb 21 06:51:31 2008
@@ -19,7 +19,9 @@
 
 import java.net.URL;
 
-public class PluginCallback implements Callback {
+import org.apache.harmony.applet.callbacks.BrowserCallback;
+
+public class PluginCallback implements BrowserCallback {
     private final long pluginInstance;
     
     public PluginCallback(long pluginInstance) {



Mime
View raw message