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

harbs pushed a commit to branch feature/sanitize
in repository https://gitbox.apache.org/repos/asf/royale-typedefs.git


The following commit(s) were added to refs/heads/feature/sanitize by this push:
     new c0bd854  not native
c0bd854 is described below

commit c0bd854acda74a8841166ff25222634c003d1035
Author: Harbs <[email protected]>
AuthorDate: Mon Dec 13 12:48:29 2021 +0200

    not native
---
 GCL/src/main/royale/goog/html/SafeHtml.as                |  7 ++-----
 GCL/src/main/royale/goog/html/SafeUrl.as                 | 13 ++++++-------
 GCL/src/main/royale/goog/html/sanitizer/HtmlSanitizer.as |  9 ++++-----
 3 files changed, 12 insertions(+), 17 deletions(-)

diff --git a/GCL/src/main/royale/goog/html/SafeHtml.as 
b/GCL/src/main/royale/goog/html/SafeHtml.as
index cad4501..9c0b053 100644
--- a/GCL/src/main/royale/goog/html/SafeHtml.as
+++ b/GCL/src/main/royale/goog/html/SafeHtml.as
@@ -13,13 +13,10 @@
 // limitations under the License.
 package goog.html
 {
-       /**
-        * @externs
-        */
        public class SafeHtml
        {
-               public native function SafeHtml();
-               public native static function unwrap(safeHtml:SafeHtml):String;
+               public function SafeHtml(){}
+               public static function unwrap(safeHtml:SafeHtml):String{return 
""}
 
        }
 }
\ No newline at end of file
diff --git a/GCL/src/main/royale/goog/html/SafeUrl.as 
b/GCL/src/main/royale/goog/html/SafeUrl.as
index affa599..036d49a 100644
--- a/GCL/src/main/royale/goog/html/SafeUrl.as
+++ b/GCL/src/main/royale/goog/html/SafeUrl.as
@@ -47,7 +47,6 @@ package goog.html
  * @see goog.html.SafeUrl#fromConstant
  * @see goog.html.SafeUrl#from
  * @see goog.html.SafeUrl#sanitize
- * @externs
  * @final
  * @struct
  * @implements {goog.i18n.bidi.DirectionalString}
@@ -55,11 +54,11 @@ package goog.html
  */
        public class SafeUrl
        {
-               public native function SafeUrl(value:String, token:Object);
-               public native static function unwrap(safeUrl:SafeUrl):String;
-               public native static function sanitize(url:String):SafeUrl;
-               public native static function 
isSafeMimeType(mimeType:String):Boolean;
-               public native static function fromBlob(blob:Blob):SafeUrl;
-               public native static function 
fromMediaSource(mediaSource:MediaSource):SafeUrl;
+               public function SafeUrl(value:String, token:Object){}
+               public static function unwrap(safeUrl:SafeUrl):String{return ""}
+               public static function sanitize(url:String):SafeUrl{return null}
+               public static function 
isSafeMimeType(mimeType:String):Boolean{return true}
+               public static function fromBlob(blob:Blob):SafeUrl{return null}
+               public static function 
fromMediaSource(mediaSource:MediaSource):SafeUrl{return null}
        }
 }
\ No newline at end of file
diff --git a/GCL/src/main/royale/goog/html/sanitizer/HtmlSanitizer.as 
b/GCL/src/main/royale/goog/html/sanitizer/HtmlSanitizer.as
index 72bf37e..cfcf1b4 100644
--- a/GCL/src/main/royale/goog/html/sanitizer/HtmlSanitizer.as
+++ b/GCL/src/main/royale/goog/html/sanitizer/HtmlSanitizer.as
@@ -13,13 +13,12 @@
 // limitations under the License.
 package goog.html.sanitizer
 {
-       /**
-        * @externs
-        */
+       import goog.html.SafeHtml;
+
        public class HtmlSanitizer
        {
-               public native function HtmlSanitizer();
-               public native static function sanitize(html:String):SafeUrl;
+               public function HtmlSanitizer(){}
+               public static function sanitize(html:String):SafeHtml{return 
null}
 
        }
 }
\ No newline at end of file

Reply via email to