flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [5/6] git commit: [flex-asjs] [refs/heads/develop] - BrowserWindow class to open new browser windows
Date Fri, 08 May 2015 06:14:40 GMT
BrowserWindow class to open new browser windows


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/6592e3fd
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/6592e3fd
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/6592e3fd

Branch: refs/heads/develop
Commit: 6592e3fdc7212f7aa6705527c007e72f49f207c9
Parents: 5729bbe
Author: Alex Harui <aharui@apache.org>
Authored: Tue May 5 11:56:03 2015 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Thu May 7 17:36:08 2015 -0700

----------------------------------------------------------------------
 frameworks/projects/Core/as/src/CoreClasses.as  |  2 +
 .../src/org/apache/flex/core/BrowserWindow.as   | 51 ++++++++++++++++++++
 2 files changed, 53 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6592e3fd/frameworks/projects/Core/as/src/CoreClasses.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/as/src/CoreClasses.as b/frameworks/projects/Core/as/src/CoreClasses.as
index 5e8bafb..2a89966 100644
--- a/frameworks/projects/Core/as/src/CoreClasses.as
+++ b/frameworks/projects/Core/as/src/CoreClasses.as
@@ -28,6 +28,7 @@ package
 internal class CoreClasses
 {	
     import org.apache.flex.core.BeadViewBase; BeadViewBase;
+    import org.apache.flex.core.BrowserWindow; BrowserWindow;
     import org.apache.flex.core.CSSTextField; CSSTextField;
     import org.apache.flex.core.ItemRendererClassFactory; ItemRendererClassFactory;  
 	import org.apache.flex.core.FilledRectangle; FilledRectangle;
@@ -77,6 +78,7 @@ internal class CoreClasses
     import org.apache.flex.events.utils.MouseUtils; MouseUtils;
     import org.apache.flex.geom.Point; Point;
     import org.apache.flex.geom.Rectangle; Rectangle;
+    import org.apache.flex.utils.UIUtils; UIUtils;
     import org.apache.flex.utils.BinaryData; BinaryData;
     import org.apache.flex.utils.BeadMetrics; BeadMetrics;
     import org.apache.flex.utils.dbg.DOMPathUtil; DOMPathUtil;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6592e3fd/frameworks/projects/Core/as/src/org/apache/flex/core/BrowserWindow.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/as/src/org/apache/flex/core/BrowserWindow.as b/frameworks/projects/Core/as/src/org/apache/flex/core/BrowserWindow.as
new file mode 100644
index 0000000..52ff8af
--- /dev/null
+++ b/frameworks/projects/Core/as/src/org/apache/flex/core/BrowserWindow.as
@@ -0,0 +1,51 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package org.apache.flex.core
+{
+    import flash.net.navigateToURL;
+    import flash.net.URLRequest;
+    
+    /**
+     *  The BrowserWindow class opens a new browser window.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.6
+     *  @productversion FlexJS 0.0
+     */
+	public class BrowserWindow
+	{
+        /**
+         *  Constructor.
+         *  
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion FlexJS 0.0
+         */
+		public function BrowserWindow()
+		{
+		}
+		
+        public static function open(url:String, options:String):void
+        {
+            navigateToURL(new URLRequest(url), options);
+        }
+	}
+}
\ No newline at end of file


Mime
View raw message