[Tizen] Revert "Basic support of keyboard focus for multiple windows" 95/207895/2 accepted/tizen/unified/20190617.061715 submit/tizen/20190614.010449
authorSunghyun kim <scholb.kim@samsung.com>
Fri, 14 Jun 2019 00:56:29 +0000 (09:56 +0900)
committerSunghyun kim <scholb.kim@samsung.com>
Fri, 14 Jun 2019 00:58:18 +0000 (09:58 +0900)
This reverts commit 8ae521ab64a3922f3419fbbfb83dde57e6135cf5.

Change-Id: Ia98ba8b2209ed155c2b1ad69eab3e6900bc1e9f5

12 files changed:
automated-tests/src/dali-toolkit-internal/CMakeLists.txt
automated-tests/src/dali-toolkit-styling/CMakeLists.txt
automated-tests/src/dali-toolkit/CMakeLists.txt
automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-adaptor-impl.h
automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-adaptor.cpp
automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-lifecycle-controller.cpp [deleted file]
automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-lifecycle-controller.h [deleted file]
automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-test-application.h
automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-window.cpp [deleted file]
automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-window.h [deleted file]
dali-toolkit/internal/focus-manager/keyboard-focus-manager-impl.cpp
dali-toolkit/internal/focus-manager/keyboard-focus-manager-impl.h

index 1754324..bd7def3 100755 (executable)
@@ -41,7 +41,6 @@ LIST(APPEND TC_SOURCES
    ../dali-toolkit/dali-toolkit-test-utils/toolkit-event-thread-callback.cpp
    ../dali-toolkit/dali-toolkit-test-utils/toolkit-environment-variable.cpp
    ../dali-toolkit/dali-toolkit-test-utils/toolkit-input-method-context.cpp
-   ../dali-toolkit/dali-toolkit-test-utils/toolkit-lifecycle-controller.cpp
    ../dali-toolkit/dali-toolkit-test-utils/toolkit-orientation.cpp
    ../dali-toolkit/dali-toolkit-test-utils/toolkit-physical-keyboard.cpp
    ../dali-toolkit/dali-toolkit-test-utils/toolkit-style-monitor.cpp
@@ -49,7 +48,6 @@ LIST(APPEND TC_SOURCES
    ../dali-toolkit/dali-toolkit-test-utils/toolkit-timer.cpp
    ../dali-toolkit/dali-toolkit-test-utils/toolkit-tts-player.cpp
    ../dali-toolkit/dali-toolkit-test-utils/toolkit-vector-animation-renderer.cpp
-   ../dali-toolkit/dali-toolkit-test-utils/toolkit-window.cpp
    ../dali-toolkit/dali-toolkit-test-utils/dali-test-suite-utils.cpp
    ../dali-toolkit/dali-toolkit-test-utils/dali-toolkit-test-suite-utils.cpp
    ../dali-toolkit/dali-toolkit-test-utils/dummy-control.cpp
index 58225f0..f956e18 100644 (file)
@@ -23,7 +23,6 @@ LIST(APPEND TC_SOURCES
    ../dali-toolkit/dali-toolkit-test-utils/toolkit-feedback-player.cpp
    ../dali-toolkit/dali-toolkit-test-utils/toolkit-file-loader.cpp
    ../dali-toolkit/dali-toolkit-test-utils/toolkit-input-method-context.cpp
-   ../dali-toolkit/dali-toolkit-test-utils/toolkit-lifecycle-controller.cpp
    ../dali-toolkit/dali-toolkit-test-utils/toolkit-native-image-source.cpp
    ../dali-toolkit/dali-toolkit-test-utils/toolkit-orientation.cpp
    ../dali-toolkit/dali-toolkit-test-utils/toolkit-physical-keyboard.cpp
@@ -36,7 +35,6 @@ LIST(APPEND TC_SOURCES
    ../dali-toolkit/dali-toolkit-test-utils/toolkit-tts-player.cpp
    ../dali-toolkit/dali-toolkit-test-utils/toolkit-video-player.cpp
    ../dali-toolkit/dali-toolkit-test-utils/toolkit-virtual-keyboard.cpp
-   ../dali-toolkit/dali-toolkit-test-utils/toolkit-window.cpp
    ../dali-toolkit/dali-toolkit-test-utils/dummy-control.cpp
    ../dali-toolkit/dali-toolkit-test-utils/dali-test-suite-utils.cpp
    ../dali-toolkit/dali-toolkit-test-utils/dali-toolkit-test-suite-utils.cpp
index 2e0a4f9..993601c 100755 (executable)
@@ -82,7 +82,6 @@ LIST(APPEND TC_SOURCES
   dali-toolkit-test-utils/toolkit-event-thread-callback.cpp
   dali-toolkit-test-utils/toolkit-environment-variable.cpp
   dali-toolkit-test-utils/toolkit-input-method-context.cpp
-  dali-toolkit-test-utils/toolkit-lifecycle-controller.cpp
   dali-toolkit-test-utils/toolkit-orientation.cpp
   dali-toolkit-test-utils/toolkit-physical-keyboard.cpp
   dali-toolkit-test-utils/toolkit-style-monitor.cpp
@@ -93,7 +92,6 @@ LIST(APPEND TC_SOURCES
   dali-toolkit-test-utils/toolkit-vector-animation-renderer.cpp
   dali-toolkit-test-utils/toolkit-video-player.cpp
   dali-toolkit-test-utils/toolkit-web-engine.cpp
-  dali-toolkit-test-utils/toolkit-window.cpp
   dali-toolkit-test-utils/toolkit-trigger-event-factory.cpp
   dali-toolkit-test-utils/dali-test-suite-utils.cpp
   dali-toolkit-test-utils/dali-toolkit-test-suite-utils.cpp
index e49b358..b5bab83 100644 (file)
@@ -25,9 +25,6 @@ namespace Dali
 class EglInterface;
 class DisplayConnection;
 class ThreadSynchronizationInterface;
-class Window;
-
-using WindowContainer = std::vector<Window>;
 
 namespace Internal
 {
@@ -62,13 +59,9 @@ public:
 
 public:
   static Dali::RenderSurfaceInterface& GetSurface();
-  static Dali::WindowContainer GetWindows();
   static Dali::Adaptor::AdaptorSignalType& AdaptorSignal();
-  static Dali::Adaptor::WindowCreatedSignalType& WindowCreatedSignal();
   static bool mAvailable;
   static Vector<CallbackBase*> mCallbacks;
-  static Dali::WindowContainer mWindows;
-  static Dali::Adaptor::WindowCreatedSignalType* mWindowCreatedSignal;
 };
 
 } // namespace Adaptor
index 522537c..c980501 100644 (file)
  *
  */
 
-#include <toolkit-window.h>
-
-// Don't want to include the actual window.h which otherwise will be indirectly included by adaptor.h.
-#define DALI_WINDOW_H
+// CLASS HEADER
 #include <dali/integration-api/adaptors/adaptor.h>
-
 #include <dali/integration-api/adaptors/scene-holder.h>
 
 #include <dali/public-api/object/base-object.h>
@@ -40,8 +36,6 @@ namespace Adaptor
 
 bool Adaptor::mAvailable = false;
 Vector<CallbackBase*> Adaptor::mCallbacks = Vector<CallbackBase*>();
-Dali::WindowContainer Adaptor::mWindows;
-Dali::Adaptor::WindowCreatedSignalType* Adaptor::mWindowCreatedSignal = nullptr;
 
 Dali::Adaptor& Adaptor::Get()
 {
@@ -56,27 +50,12 @@ Dali::RenderSurfaceInterface& Adaptor::GetSurface()
   return *renderSurface;
 }
 
-Dali::WindowContainer Adaptor::GetWindows()
-{
-  return Adaptor::mWindows;
-}
-
 Dali::Adaptor::AdaptorSignalType& Adaptor::AdaptorSignal()
 {
   Dali::Adaptor::AdaptorSignalType* signal = new Dali::Adaptor::AdaptorSignalType;
   return *signal;
 }
 
-Dali::Adaptor::WindowCreatedSignalType& Adaptor::WindowCreatedSignal()
-{
-  if ( !Adaptor::mWindowCreatedSignal )
-  {
-    Adaptor::mWindowCreatedSignal = new Dali::Adaptor::WindowCreatedSignalType;
-  }
-
-  return *Adaptor::mWindowCreatedSignal;
-}
-
 } // namespace Adaptor
 } // namespace Internal
 
@@ -190,21 +169,11 @@ Adaptor::AdaptorSignalType& Adaptor::LanguageChangedSignal()
   return Internal::Adaptor::Adaptor::AdaptorSignal();
 }
 
-Adaptor::WindowCreatedSignalType& Adaptor::WindowCreatedSignal()
-{
-  return Internal::Adaptor::Adaptor::WindowCreatedSignal();
-}
-
 Dali::RenderSurfaceInterface& Adaptor::GetSurface()
 {
   return Internal::Adaptor::Adaptor::GetSurface();
 }
 
-Dali::WindowContainer Adaptor::GetWindows() const
-{
-  return Internal::Adaptor::Adaptor::GetWindows();
-}
-
 Any Adaptor::GetNativeWindowHandle()
 {
   Any window;
@@ -287,12 +256,6 @@ const LogFactoryInterface& Adaptor::GetLogFactory()
 Adaptor::Adaptor()
 : mImpl( NULL )
 {
-  Dali::PositionSize win_size;
-  win_size.width = 640;
-  win_size.height = 800;
-
-  Dali::Window window = Dali::Window::New( win_size, "" );
-  Internal::Adaptor::Adaptor::mWindows.push_back( window );
 }
 
 } // namespace Dali
diff --git a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-lifecycle-controller.cpp b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-lifecycle-controller.cpp
deleted file mode 100644 (file)
index 1e29a1c..0000000
+++ /dev/null
@@ -1,105 +0,0 @@
-/*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd.
- *
- * Licensed 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.
- *
- */
-
-#include "toolkit-lifecycle-controller.h"
-
-#include <dali-toolkit/public-api/dali-toolkit-common.h>
-#include <dali/public-api/object/base-object.h>
-#include <dali/public-api/signals/dali-signal.h>
-
-namespace Dali
-{
-
-/********************************************************************************
- * Stub for Dali::Internal::Adaptor::LifecycleController
- ********************************************************************************/
-namespace Internal
-{
-namespace Adaptor
-{
-class LifecycleController : public BaseObject
-{
-public: // Creation & Destruction
-
-  LifecycleController();
-  ~LifecycleController();
-  static Dali::LifecycleController Get();
-
-
-public: // Signals
-  Dali::LifecycleController::LifecycleSignalType& InitSignal();
-
-private:
-  Dali::LifecycleController::LifecycleSignalType mInitSignal;
-  static Dali::LifecycleController mLifecycleController;
-};
-
-Dali::LifecycleController LifecycleController::mLifecycleController;
-
-LifecycleController::LifecycleController()
-{
-}
-
-LifecycleController::~LifecycleController()
-{
-}
-
-Dali::LifecycleController LifecycleController::Get()
-{
-  if( ! mLifecycleController )
-  {
-    mLifecycleController = Dali::LifecycleController(new Internal::Adaptor::LifecycleController());
-  }
-  return mLifecycleController;
-}
-
-Dali::LifecycleController::LifecycleSignalType& LifecycleController::InitSignal()
-{
-  return mInitSignal;
-}
-
-} // namespace Adaptor
-} // namespace Internal
-
-
-/********************************************************************************
- * Stub for Dali::LifecycleController
- ********************************************************************************/
-
-LifecycleController::LifecycleController(){}
-LifecycleController::~LifecycleController(){}
-
-LifecycleController LifecycleController::Get()
-{
-  // Get the physical keyboard handle
-  LifecycleController handle = Internal::Adaptor::LifecycleController::Get();
-  return handle;
-}
-
-LifecycleController::LifecycleSignalType& LifecycleController::InitSignal()
-{
-  BaseObject& object = GetBaseObject();
-  Internal::Adaptor::LifecycleController& controller = static_cast< Internal::Adaptor::LifecycleController& >( object );
-  return controller.InitSignal();
-}
-
-LifecycleController::LifecycleController( Internal::Adaptor::LifecycleController *impl )
-: BaseHandle(impl)
-{
-}
-
-} // namespace Dali
diff --git a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-lifecycle-controller.h b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-lifecycle-controller.h
deleted file mode 100644 (file)
index 3069b15..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-#ifndef TOOLKIT_LIFECYCLE_CONTROLLER_H
-#define TOOLKIT_LIFECYCLE_CONTROLLER_H
-
-/*
- * Copyright (c) 2019 Samsung Electronics Co., Ltd.
- *
- * Licensed 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.
- *
- */
-
-// EXTERNAL INCLUDES
-#include <string>
-#include <dali/public-api/object/base-handle.h>
-#include <dali/public-api/signals/dali-signal.h>
-
-namespace Dali
-{
-namespace Internal
-{
-namespace Adaptor
-{
-class LifecycleController;
-}
-}
-
-class LifecycleController : public BaseHandle
-{
-public:
-  typedef Signal< void (void) > LifecycleSignalType;
-  LifecycleController();
-  ~LifecycleController();
-  static LifecycleController Get();
-  LifecycleSignalType& InitSignal();
-  LifecycleController( Internal::Adaptor::LifecycleController* impl );
-};
-
-
-} // namespace Dali
-
-#endif // TOOLKIT_LIFECYCLE_CONTROLLER_H
index de2d0c4..1b576bc 100644 (file)
@@ -24,7 +24,6 @@
 #include <dali/integration-api/adaptors/adaptor.h>
 #include <toolkit-adaptor-impl.h>
 #include <toolkit-singleton-service.h>
-#include <toolkit-lifecycle-controller.h>
 
 namespace Dali
 {
@@ -51,19 +50,6 @@ public:
     {
       fontClient.SetDpi( mDpi.x, mDpi.y );
     }
-
-    bool isAdaptorAvailable = Dali::Internal::Adaptor::Adaptor::Get().IsAvailable();
-    if ( isAdaptorAvailable )
-    {
-      Dali::LifecycleController lifecycleController = Dali::LifecycleController::Get();
-      lifecycleController.InitSignal().Emit();
-
-      Dali::Window window = Dali::Internal::Adaptor::Adaptor::mWindows.front();
-      if ( window )
-      {
-        Dali::Internal::Adaptor::Adaptor::WindowCreatedSignal().Emit( window );
-      }
-    }
   }
 
   ~ToolkitTestApplication()
diff --git a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-window.cpp b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-window.cpp
deleted file mode 100644 (file)
index 05c4836..0000000
+++ /dev/null
@@ -1,117 +0,0 @@
-/*
- * Copyright (c) 2019 Samsung Electronics Co., Ltd.
- *
- * Licensed 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.
- *
- */
-
-// EXTERNAL INCLUDES
-#include <dali/public-api/actors/actor.h>
-#include <dali/public-api/actors/layer.h>
-#include <dali/public-api/common/stage.h>
-#include <dali/public-api/object/base-object.h>
-
-// INTERNAL INCLUDES
-#include "toolkit-window.h"
-
-namespace Dali
-{
-
-class Window;
-
-/********************************************************************************
- * Stub for Dali::Internal::Adaptor::Window
- ********************************************************************************/
-
-namespace Internal
-{
-namespace Adaptor
-{
-
-class Window : public Dali::BaseObject
-{
-public:
-
-  Window()
-  {
-  }
-
-  virtual ~Window()
-  {
-  }
-
-  static Window* New(const PositionSize& positionSize, const std::string& name, const std::string& className, bool isTransparent)
-  {
-    return new Window();
-  }
-
-  static Dali::Window Get( Dali::Actor actor )
-  {
-    return Dali::Window();
-  }
-};
-
-} // Adaptor
-} // Internal
-
-Window::Window()
-{
-}
-
-Window::~Window()
-{
-}
-
-Dali::Window Window::New( PositionSize windowPosition, const std::string& name, bool isTransparent )
-{
-  Internal::Adaptor::Window* window = Internal::Adaptor::Window::New( windowPosition, name, "", isTransparent );
-  return Window( window );
-}
-
-Dali::Window Window::New(PositionSize windowPosition, const std::string& name, const std::string& className, bool isTransparent )
-{
-  Internal::Adaptor::Window* window = Internal::Adaptor::Window::New( windowPosition, name, className, isTransparent );
-  return Window( window );
-}
-
-Dali::Layer Window::GetRootLayer() const
-{
-  return Dali::Stage::GetCurrent().GetRootLayer();
-}
-
-Window::Window( Internal::Adaptor::Window* window )
-: BaseHandle( window )
-{
-}
-
-namespace DevelWindow
-{
-
-Window Get( Actor actor )
-{
-  return Internal::Adaptor::Window::Get( actor );
-}
-
-KeyEventSignalType& KeyEventSignal( Window window )
-{
-  return Dali::Stage::GetCurrent().KeyEventSignal();
-}
-
-TouchSignalType& TouchSignal( Window window )
-{
-  return Dali::Stage::GetCurrent().TouchSignal();
-}
-
-} // namespace DevelWindow
-
-} // Dali
diff --git a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-window.h b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-window.h
deleted file mode 100644 (file)
index 4c95ad7..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-#ifndef TOOLKIT_WINDOW_H
-#define TOOLKIT_WINDOW_H
-
-/*
- * Copyright (c) 2019 Samsung Electronics Co., Ltd.
- *
- * Licensed 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.
- *
- */
-
-//EXTERNAL INCLUDES
-#include <string>
-#include <dali/public-api/math/rect.h>
-#include <dali/public-api/object/base-handle.h>
-#include <dali/public-api/signals/dali-signal.h>
-
-namespace Dali
-{
-
-class Actor;
-class Layer;
-class KeyEvent;
-class TouchData;
-
-typedef Dali::Rect<int> PositionSize;
-
-namespace Internal
-{
-namespace Adaptor
-{
-class Window;
-}
-}
-
-class Window : public BaseHandle
-{
-public:
-
-  static Window New(PositionSize windowPosition, const std::string& name, bool isTransparent = false);
-  static Window New(PositionSize windowPosition, const std::string& name, const std::string& className, bool isTransparent = false);
-  Window();
-  ~Window();
-  Window(const Window& handle);
-  Window& operator=(const Window& rhs);
-  Layer GetRootLayer() const;
-
-public:
-  explicit Window( Internal::Adaptor::Window* window );
-};
-
-namespace DevelWindow
-{
-
-typedef Signal< void (const KeyEvent&) > KeyEventSignalType;
-typedef Signal< void (const TouchData&) > TouchSignalType;
-
-Dali::Window Get( Actor actor );
-KeyEventSignalType& KeyEventSignal( Dali::Window window );
-TouchSignalType& TouchSignal( Dali::Window window );
-
-}
-
-} // namespace Dali
-
-#endif // TOOLKIT_WINDOW_H
index 5e447c4..3653f5f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2019 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -23,8 +23,6 @@
 #include <dali/public-api/actors/layer.h>
 #include <dali/devel-api/adaptor-framework/accessibility-adaptor.h>
 #include <dali/devel-api/adaptor-framework/singleton-service.h>
-#include <dali/devel-api/adaptor-framework/window-devel.h>
-#include <dali/devel-api/adaptor-framework/lifecycle-controller.h>
 #include <dali/public-api/animation/constraints.h>
 #include <dali/public-api/common/stage.h>
 #include <dali/public-api/events/key-event.h>
@@ -33,7 +31,6 @@
 #include <dali/public-api/object/type-registry-helper.h>
 #include <dali/public-api/object/property-map.h>
 #include <dali/public-api/images/resource-image.h>
-#include <dali/integration-api/adaptors/adaptor.h>
 #include <dali/integration-api/debug.h>
 
 // INTERNAL INCLUDES
@@ -133,31 +130,8 @@ KeyboardFocusManager::KeyboardFocusManager()
   mCustomAlgorithmInterface(NULL)
 {
   // TODO: Get FocusIndicatorEnable constant from stylesheet to set mIsFocusIndicatorShown.
-
-  LifecycleController::Get().InitSignal().Connect( mSlotDelegate, &KeyboardFocusManager::OnAdaptorInit );
-}
-
-void KeyboardFocusManager::OnAdaptorInit()
-{
-  if( Adaptor::IsAvailable() )
-  {
-    // Retrieve all the existing widnows
-    Dali::WindowContainer windows = Adaptor::Get().GetWindows();
-    for ( auto iter = windows.begin(); iter != windows.end(); ++iter )
-    {
-      DevelWindow::KeyEventSignal( *iter ).Connect( mSlotDelegate, &KeyboardFocusManager::OnKeyEvent);
-      DevelWindow::TouchSignal( *iter ).Connect( mSlotDelegate, &KeyboardFocusManager::OnTouch);
-    }
-
-    // Get notified when any new window is created afterwards
-    Adaptor::Get().WindowCreatedSignal().Connect( mSlotDelegate, &KeyboardFocusManager::OnWindowCreated);
-  }
-}
-
-void KeyboardFocusManager::OnWindowCreated( Dali::Window& window )
-{
-  DevelWindow::KeyEventSignal( window ).Connect( mSlotDelegate, &KeyboardFocusManager::OnKeyEvent);
-  DevelWindow::TouchSignal( window ).Connect( mSlotDelegate, &KeyboardFocusManager::OnTouch);
+  Stage::GetCurrent().KeyEventSignal().Connect( mSlotDelegate, &KeyboardFocusManager::OnKeyEvent);
+  Stage::GetCurrent().TouchSignal().Connect( mSlotDelegate, &KeyboardFocusManager::OnTouch );
 }
 
 KeyboardFocusManager::~KeyboardFocusManager()
@@ -324,11 +298,10 @@ bool KeyboardFocusManager::IsLayoutControl(Actor actor) const
 Toolkit::Control KeyboardFocusManager::GetParentLayoutControl(Actor actor) const
 {
   // Get the actor's parent layout control that supports two dimensional keyboard navigation
-  Actor rootActor;
+  Actor rootActor = Stage::GetCurrent().GetRootLayer();
   Actor parent;
   if(actor)
   {
-    rootActor = DevelWindow::Get( actor ).GetRootLayer();
     parent = actor.GetParent();
   }
 
@@ -410,7 +383,7 @@ bool KeyboardFocusManager::MoveFocus(Toolkit::Control::KeyboardFocus::Direction
 
           if( !nextFocusableActor )
           {
-            nextFocusableActor = DevelWindow::Get( currentFocusActor ).GetRootLayer().FindChildById( actorId );
+            nextFocusableActor = Stage::GetCurrent().GetRootLayer().FindChildById( actorId );
           }
         }
       }
index 967e9e1..0e0f867 100644 (file)
@@ -30,8 +30,6 @@
 namespace Dali
 {
 
-class Window;
-
 namespace Toolkit
 {
 
@@ -41,7 +39,7 @@ namespace Internal
 /**
  * @copydoc Toolkit::KeyboardFocusManager
  */
-class KeyboardFocusManager : public Dali::BaseObject, public ConnectionTracker
+class KeyboardFocusManager : public Dali::BaseObject
 {
 public:
 
@@ -178,17 +176,6 @@ private:
   typedef FocusStack::iterator FocusStackIterator; ///< Define FocusStack::Iterator as FocusStackIterator to navigate FocusStack
 
   /**
-   * This will be called when the adaptor is initialized
-   */
-  void OnAdaptorInit();
-
-  /**
-   * This will be called when a new wndow is created
-   * @param window The new window
-   */
-  void OnWindowCreated( Dali::Window& window );
-
-  /**
    * Get configuration from StyleManager.
    */
   void GetConfigurationFromStyleManger();