X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ffocus-manager%2Fkeyinput-focus-manager-impl.h;h=5974b884539f8d89f3333c8a11509f05dfeedf5a;hb=398e85f5ac996be3fe2888232993f8debdaf4edb;hp=0f066c5b7e2eefe634e3c6cbb84b653bbaa99474;hpb=d7cef550d3627f3a161913ab1805a7faf0a15f36;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/focus-manager/keyinput-focus-manager-impl.h b/dali-toolkit/internal/focus-manager/keyinput-focus-manager-impl.h index 0f066c5..5974b88 100644 --- a/dali-toolkit/internal/focus-manager/keyinput-focus-manager-impl.h +++ b/dali-toolkit/internal/focus-manager/keyinput-focus-manager-impl.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_INTERNAL_KEYINPUT_FOCUS_MANAGER_H /* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. + * Copyright (c) 2021 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. @@ -19,9 +19,9 @@ */ // EXTERNAL INCLUDES -#include #include #include +#include // INTERNAL INCLUDES #include @@ -29,15 +29,16 @@ namespace Dali { +namespace Integration +{ +class SceneHolder; -class Window; +} // namespace Integration namespace Toolkit { - namespace Internal { - class KeyInputFocusManager; /** @@ -67,7 +68,6 @@ public: Toolkit::Control GetCurrentFocusControl() const; public: - /** * @copydoc Toolkit::KeyInputFocusManager::KeyInputFocusChangedSignal() */ @@ -82,10 +82,9 @@ public: * @return True if the signal was connected. * @post If a signal was connected, ownership of functor was passed to CallbackBase. Otherwise the caller is responsible for deleting the unused functor. */ - static bool DoConnectSignal( BaseObject* object, ConnectionTrackerInterface* tracker, const std::string& signalName, FunctorDelegate* functor ); + static bool DoConnectSignal(BaseObject* object, ConnectionTrackerInterface* tracker, const std::string& signalName, FunctorDelegate* functor); protected: - /** * Destructor */ @@ -93,10 +92,10 @@ protected: private: /** - * This will be called when a new window is created - * @param window The new window + * This will be called when a new scene holder is created + * @param sceneHolder The new scene holder */ - void OnWindowCreated( Dali::Window& window ); + void OnSceneHolderCreated(Dali::Integration::SceneHolder& sceneHolder); /** * Callback for the key event when no actor in the stage has gained the key input focus @@ -105,10 +104,10 @@ private: bool OnKeyEvent(const KeyEvent& event); /** - * Signal handler called when a focused Control is removed from Stage. - * @param[in] control The control removed from stage. + * Signal handler called when a focused Control is removed from Scene. + * @param[in] control The control removed from the scene. */ - void OnFocusControlStageDisconnection( Dali::Actor control ); + void OnFocusControlSceneDisconnection(Dali::Actor control); /** * Recursively deliver events to the control and its parents, until the event is consumed or the stage is reached. @@ -116,21 +115,19 @@ private: * @param[in] event The KeyEvent. * @return True if KeyEvent is consumed. */ - bool EmitKeyEventSignal( Toolkit::Control control, const KeyEvent& event ); + bool EmitKeyEventSignal(Toolkit::Control control, const KeyEvent& event); private: - // Undefined KeyInputFocusManager(const KeyInputFocusManager&); KeyInputFocusManager& operator=(const KeyInputFocusManager& rhs); private: - // The key input focus change signal Toolkit::KeyInputFocusManager::KeyInputFocusChangedSignalType mKeyInputFocusChangedSignal; - SlotDelegate< KeyInputFocusManager > mSlotDelegate; + SlotDelegate mSlotDelegate; Toolkit::Control mCurrentFocusControl; ///< The current focused control };