You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by al...@apache.org on 2021/01/15 10:18:03 UTC

[royale-asjs] branch develop updated: changes in Mouse and Emulation for Security API added

This is an automated email from the ASF dual-hosted git repository.

alinakazi pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new 3e25560  changes in Mouse and Emulation for Security API added
     new 758fa97  Merge branch 'develop' of https://github.com/apache/royale-asjs into develop
3e25560 is described below

commit 3e25560bbf55ec3399534b01625c1dde989e0e01
Author: alinakazi <al...@gmail.com>
AuthorDate: Fri Jan 15 15:15:04 2021 +0500

    changes in Mouse and Emulation for Security API added
---
 .../MXRoyale/src/main/royale/MXRoyaleClasses.as    |  1 +
 .../src/main/royale/mx/system/Security.as}         | 46 +++++++++++++++++++---
 .../org/apache/royale/textLayout/dummy/Mouse.as    |  9 +++++
 3 files changed, 50 insertions(+), 6 deletions(-)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as b/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
index c926d97..23f3d61 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
@@ -92,6 +92,7 @@ internal class MXRoyaleClasses
 
 	import mx.system.ApplicationDomain; ApplicationDomain;
 	import mx.system.System; System;
+	import mx.system.Security; Security;
 	import mx.rpc.http.HTTPService; mx.rpc.http.HTTPService;
 	import mx.rpc.remoting.RemoteObject; mx.rpc.remoting.RemoteObject;
 	import mx.rpc.remoting.CompressedRemoteObject; mx.rpc.remoting.CompressedRemoteObject;
diff --git a/frameworks/projects/TLF/src/main/royale/org/apache/royale/textLayout/dummy/Mouse.as b/frameworks/projects/MXRoyale/src/main/royale/mx/system/Security.as
similarity index 59%
copy from frameworks/projects/TLF/src/main/royale/org/apache/royale/textLayout/dummy/Mouse.as
copy to frameworks/projects/MXRoyale/src/main/royale/mx/system/Security.as
index a614aa9..43c4280 100644
--- a/frameworks/projects/TLF/src/main/royale/org/apache/royale/textLayout/dummy/Mouse.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/system/Security.as
@@ -16,14 +16,48 @@
 //  limitations under the License.
 //
 ////////////////////////////////////////////////////////////////////////////////
-package org.apache.royale.textLayout.dummy {
-	public class Mouse {
-		public static var cursor : String;
 
-		public static function registerCursor(name : String, cursor : MouseCursorData) : void {
-			
+package mx.system
+{
+	COMPILE::SWF
+	{
+		import flash.system.Security;
+	}
+
+	/**
+	 *  
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.0
+	 *  @productversion Royale 0.9.8
+	 */
+
+	public class Security
+	{
+		/**
+		 *  Constructor.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.0
+		 *  @productversion Royale 0.9.8
+		 */
+
+		public function Security()
+		{
 		}
+		
+		/**
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.0
+		 *  @productversion Royale 0.9.8
+		 */
 
+		public static function allowDomain(domains:String):void
+		{
+			trace("Security::allowDomain is not implemented");
+		}
 	}
-
 }
diff --git a/frameworks/projects/TLF/src/main/royale/org/apache/royale/textLayout/dummy/Mouse.as b/frameworks/projects/TLF/src/main/royale/org/apache/royale/textLayout/dummy/Mouse.as
index a614aa9..a57420f 100644
--- a/frameworks/projects/TLF/src/main/royale/org/apache/royale/textLayout/dummy/Mouse.as
+++ b/frameworks/projects/TLF/src/main/royale/org/apache/royale/textLayout/dummy/Mouse.as
@@ -23,6 +23,15 @@ package org.apache.royale.textLayout.dummy {
 		public static function registerCursor(name : String, cursor : MouseCursorData) : void {
 			
 		}
+		
+		public static function show() : void {
+			trace("Mouse::show not implemented");
+		}
+		
+		public static function hide() : void {
+			trace("Mouse::hide not implemented");
+
+		}
 
 	}