You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2018/08/09 06:54:05 UTC

[GitHub] alinakazi closed pull request #268: Changes in IBrowserManager, ResultEvent, Spark Application

alinakazi closed pull request #268: Changes in IBrowserManager,ResultEvent,Spark Application
URL: https://github.com/apache/royale-asjs/pull/268
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/frameworks/js/projects/MXRoyaleJS/src/main/config/compile-js-config.xml b/frameworks/js/projects/MXRoyaleJS/src/main/config/compile-js-config.xml
index 61c8ac2d2..f4b51c860 100644
--- a/frameworks/js/projects/MXRoyaleJS/src/main/config/compile-js-config.xml
+++ b/frameworks/js/projects/MXRoyaleJS/src/main/config/compile-js-config.xml
@@ -69,6 +69,7 @@
             <path-element>../../../../../libs/ExpressJS.swc</path-element>
             <path-element>../../../../../libs/GraphicsJS.swc</path-element>
             <path-element>../../../../../libs/ChartsJS.swc</path-element>
+	          <path-element>../../../../../libs/NetworkJS.swc</path-element>
             <path-element>../../../../../libs/ReflectionJS.swc</path-element>
             <path-element>../../../../../libs/XMLJS.swc</path-element>
         </library-path>
diff --git a/frameworks/js/projects/SparkRoyaleJS/src/main/config/compile-js-config.xml b/frameworks/js/projects/SparkRoyaleJS/src/main/config/compile-js-config.xml
index 2d24e9143..5efdd15d1 100644
--- a/frameworks/js/projects/SparkRoyaleJS/src/main/config/compile-js-config.xml
+++ b/frameworks/js/projects/SparkRoyaleJS/src/main/config/compile-js-config.xml
@@ -71,6 +71,7 @@
             <path-element>../../../../../libs/ChartsJS.swc</path-element>
             <path-element>../../../../../libs/MXRoyaleJS.swc</path-element>
             <path-element>../../../../../libs/XMLJS.swc</path-element>
+	    <path-element>../../../../../libs/NetworkJS.swc</path-element>
         </library-path>
         
         <namespaces>
diff --git a/frameworks/projects/MXRoyale/src/main/config/compile-swf-config.xml b/frameworks/projects/MXRoyale/src/main/config/compile-swf-config.xml
index f1ecd69a2..4208f05ff 100644
--- a/frameworks/projects/MXRoyale/src/main/config/compile-swf-config.xml
+++ b/frameworks/projects/MXRoyale/src/main/config/compile-swf-config.xml
@@ -39,6 +39,7 @@
             <path-element>../../../../../libs/Effects.swc</path-element>
             <path-element>../../../../../libs/Express.swc</path-element>
             <path-element>../../../../../libs/Charts.swc</path-element>
+	          <path-element>../../../../../libs/Network.swc</path-element>
             <path-element>../../../../../libs/Reflection.swc</path-element>
         </external-library-path>
         
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/managers/IBrowserManager.as b/frameworks/projects/MXRoyale/src/main/royale/mx/managers/IBrowserManager.as
index a84fec6c9..fc35ac403 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/managers/IBrowserManager.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/managers/IBrowserManager.as
@@ -77,6 +77,10 @@ import org.apache.royale.events.IEventDispatcher;
  */
 public interface IBrowserManager extends org.apache.royale.events.IEventDispatcher
 {
+ 
+ function setTitle(value:String):void;
+ 
+ 
 
    
 }
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/rpc/events/ResultEvent.as b/frameworks/projects/MXRoyale/src/main/royale/mx/rpc/events/ResultEvent.as
index b00094055..37fea3732 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/rpc/events/ResultEvent.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/rpc/events/ResultEvent.as
@@ -27,6 +27,7 @@ COMPILE::JS {
 import org.apache.royale.events.Event;
 
 import mx.core.mx_internal;
+import org.apache.royale.net.remoting.messages.IMessage;
 /* import mx.messaging.messages.IMessage;
 import mx.messaging.messages.AbstractMessage; */
 import mx.rpc.AsyncToken;
@@ -124,6 +125,18 @@ public class ResultEvent extends Event
     //  Properties
     //
     //--------------------------------------------------------------------------
+    
+    public function get message():IMessage
+      {
+          return null;
+      }
+      
+    public function set message(value:IMessage):void
+      { 
+      }
+
+
+
 
     /**
      * In certain circumstances, headers may also be returned with a result to
diff --git a/frameworks/projects/SparkRoyale/src/main/config/compile-swf-config.xml b/frameworks/projects/SparkRoyale/src/main/config/compile-swf-config.xml
index 75367da57..9aff8c4a5 100644
--- a/frameworks/projects/SparkRoyale/src/main/config/compile-swf-config.xml
+++ b/frameworks/projects/SparkRoyale/src/main/config/compile-swf-config.xml
@@ -36,6 +36,7 @@
             <path-element>../../../../../libs/Graphics.swc</path-element>
             <path-element>../../../../../libs/MXRoyale.swc</path-element>
             <path-element>../../../../../libs/XML.swc</path-element>
+	    <path-element>../../../../../libs/Network.swc</path-element>
         </external-library-path>
         
         <allow-subclass-overrides>true</allow-subclass-overrides>
diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Application.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Application.as
index 03533222a..2e6226897 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Application.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Application.as
@@ -45,7 +45,6 @@ import mx.core.IInvalidating;
 import mx.core.InteractionMode;
 import mx.core.Singleton;
 import mx.core.UIComponentGlobals;
-import mx.core.mx_internal;
 import mx.managers.FocusManager;
 import mx.managers.IActiveWindowManager;
 import mx.managers.ILayoutManager;
@@ -56,10 +55,10 @@ import mx.utils.BitFlagUtil;
 import mx.utils.DensityUtil;
 import mx.utils.LoaderUtil;
 import mx.utils.Platform; 
+import spark.layouts.supportClasses.LayoutBase; */
 
-import spark.layouts.supportClasses.LayoutBase;
-
-use namespace mx_internal; */
+import mx.core.mx_internal;
+use namespace mx_internal; 
 
 //--------------------------------------
 //  Events
@@ -1258,7 +1257,7 @@ public class Application extends SkinnableContainer
      *  Storage for the url property.
      *  This variable is set in the initialize().
      */
-    // mx_internal var _url:String;
+     mx_internal var _url:String;
 
     /**
      *  The URL from which this Application's SWF file was loaded.
@@ -1268,10 +1267,10 @@ public class Application extends SkinnableContainer
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    /* public function get url():String
+     public function get url():String
     {
         return _url;
-    } */
+    } 
 
     //----------------------------------
     //  viewSourceURL


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services