Follow formatting NUI
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / internal / BackKeyManager.cs
index 8633678..21cfbb9 100755 (executable)
@@ -41,7 +41,7 @@ namespace Tizen.NUI
         /// Subscriber.
         /// </summary>
         [EditorBrowsable(EditorBrowsableState.Never)]
-        public List<View> Subscriber{get; set;} = new List<View>();
+        public List<View> Subscriber { get; set; } = new List<View>();
 
         /// <summary>
         /// BackKeyManager static instance.
@@ -69,17 +69,17 @@ namespace Tizen.NUI
             Container parent1 = comparison1?.GetParent();
             Container parent2 = comparison2?.GetParent();
 
-            if((parent1 == null && parent2 != null) || (parent2 == null && parent1 != null))
+            if ((parent1 == null && parent2 != null) || (parent2 == null && parent1 != null))
             {
                 // One is in DefaultLayer but the other is not
-                if(parent2 == null)
+                if (parent2 == null)
                 {
                     // parent1 is in DefaultLayer.
                     Layer comparison2AsLayer = comparison2 as Layer;
-                    if(comparison2AsLayer != null)
+                    if (comparison2AsLayer != null)
                     {
                         result = comparison2AsLayer.Depth > NUIApplication.GetDefaultWindow().GetDefaultLayer().Depth;
-                    }   
+                    }
                 }
                 else
                 {
@@ -94,10 +94,10 @@ namespace Tizen.NUI
             else
             {
                 // If they have same parent, ready to compare!
-                if(parent1 == parent2)
+                if (parent1 == parent2)
                 {
 
-                    if(comparison1.GetType().FullName.Contains("Layer"))
+                    if (comparison1.GetType().FullName.Contains("Layer"))
                     {
                         // If comparison1 is Layer, comparison2 is also Layer because only window can have Layer as child in NUI.
                         // Compare Depth
@@ -106,7 +106,7 @@ namespace Tizen.NUI
                         if (comparison1AsLayer != null && comparison2AsLayer != null)
                         {
                             result = comparison1AsLayer.Depth < comparison2AsLayer.Depth;
-                        }          
+                        }
                     }
                     else
                     {
@@ -117,7 +117,7 @@ namespace Tizen.NUI
                         if (comparison1AsView != null && comparison2AsView != null)
                         {
                             result = comparison1AsView.SiblingOrder < comparison2AsView.SiblingOrder;
-                        }                    
+                        }
                     }
                 }
                 else
@@ -132,30 +132,30 @@ namespace Tizen.NUI
 
         private void OnWindowKeyEvent(object source, Window.KeyEventArgs args)
         {
-            if(args.Key.State == Key.StateType.Up && (args.Key.KeyPressedName == "Back" || args.Key.KeyPressedName == "XF86Back"))
+            if (args.Key.State == Key.StateType.Up && (args.Key.KeyPressedName == "Back" || args.Key.KeyPressedName == "XF86Back"))
             {
                 View top = null;
 
                 for (int i = 0; i < Subscriber.Count; i++)
                 {
                     // Check visibility
-                    if(Subscriber[i].Visibility && Subscriber[i].IsOnWindow)
+                    if (Subscriber[i].Visibility && Subscriber[i].IsOnWindow)
                     {
                         // Initialize first top
-                        if(top == null)
+                        if (top == null)
                         {
                             top = Subscriber[i];
                             continue;
                         }
                         else
                         {
-                            if(top.HierarchyDepth != Subscriber[i].HierarchyDepth)
+                            if (top.HierarchyDepth != Subscriber[i].HierarchyDepth)
                             {
                                 Container compare1 = top;
                                 Container compare2 = Subscriber[i];
 
                                 // If their depth is different, sync.
-                                if(top.HierarchyDepth > Subscriber[i].HierarchyDepth)
+                                if (top.HierarchyDepth > Subscriber[i].HierarchyDepth)
                                 {
                                     compare1 = FindParent(compare1, top.HierarchyDepth - Subscriber[i].HierarchyDepth);
                                 }
@@ -164,10 +164,10 @@ namespace Tizen.NUI
                                     compare2 = FindParent(compare2, Subscriber[i].HierarchyDepth - top.HierarchyDepth);
                                 }
 
-                                if(compare1 == compare2)
+                                if (compare1 == compare2)
                                 {
                                     // One is descendant of the other. Descendant is above ancestor.
-                                    top = top.HierarchyDepth > Subscriber[i].HierarchyDepth? top : Subscriber[i];
+                                    top = top.HierarchyDepth > Subscriber[i].HierarchyDepth ? top : Subscriber[i];
                                 }
                                 else
                                 {