Revert "[Tizen] ApplicationHandle in NUIApplication added"
authorminho.sun <minho.sun@samsung.com>
Tue, 1 Aug 2017 01:19:22 +0000 (10:19 +0900)
committerminho.sun <minho.sun@samsung.com>
Tue, 1 Aug 2017 01:19:24 +0000 (10:19 +0900)
This reverts commit 03df2285b533e4f5ea43ffc59b589d21dc84dceb.

Change-Id: Ic250ba63ef8bfadadcd621ded73be94f2fd27edc

src/Tizen.NUI/src/internal/NUICoreBackend.cs
src/Tizen.NUI/src/public/BaseHandle.cs
src/Tizen.NUI/src/public/NUIApplication.cs

index 20dff95..35a855d 100755 (executable)
@@ -234,14 +234,5 @@ namespace Tizen.NUI
             handler?.Invoke();
         }
 
-
-       internal Application ApplicationHandle
-       {
-               get
-               {
-                       return _application;
-               }
-       }
-
     }
 }
index c692895..0f03701 100755 (executable)
@@ -55,6 +55,15 @@ namespace Tizen.NUI
             }
         }
 
+        internal BaseHandle(global::System.IntPtr cPtr)
+        {
+            _registerMe = swigCMemOwn = true;
+            swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+
+            // Register this instance of BaseHandle in the registry.
+            Registry.Register(this);
+        }
+
         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(BaseHandle obj)
         {
             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
index b5bdacb..10a75ea 100755 (executable)
@@ -176,12 +176,22 @@ namespace Tizen.NUI
             Transparent = 1
         }
 
+        /// <summary>
+        /// Get the window instance.
+        /// </summary>
+        public Window Window
+        {
+            get
+            {
+                return _application.GetWindow();
+            }
+        }
 
         internal Application ApplicationHandle
         {
             get
             {
-                return ((NUICoreBackend)this.Backend).ApplicationHandle;
+                return _application;
             }
         }