X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=dali-toolkit%2Finternal%2Ffocus-manager%2Fkeyboard-focus-manager-impl.h;h=31b060150ee4c38db07d4bbb2e98d339b9e9c1d3;hb=43ff1980e2bbdac95026be086673db155737b305;hp=8212a79913dd86cfcca06547ff3d9758cf805dce;hpb=982261bb2c86fbe87afc89deb1e24d272de02ae6;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/focus-manager/keyboard-focus-manager-impl.h b/dali-toolkit/internal/focus-manager/keyboard-focus-manager-impl.h index 8212a79..31b0601 100644 --- a/dali-toolkit/internal/focus-manager/keyboard-focus-manager-impl.h +++ b/dali-toolkit/internal/focus-manager/keyboard-focus-manager-impl.h @@ -90,7 +90,7 @@ public: /** * @copydoc Toolkit::KeyboardFocusManager::MoveFocus */ - bool MoveFocus(Toolkit::Control::KeyboardFocus::Direction direction); + bool MoveFocus(Toolkit::Control::KeyboardFocus::Direction direction, const std::string& deviceName = ""); /** * @copydoc Toolkit::KeyboardFocusManager::ClearFocus @@ -162,6 +162,16 @@ public: */ bool IsDefaultAlgorithmEnabled() const; + /** + * @copydoc Toolkit::DevelKeyboardFocusManager::SetFocusFinderRootActor + */ + void SetFocusFinderRootActor(Actor actor); + + /** + * @copydoc Toolkit::DevelKeyboardFocusManager::ResetFocusFinderRootActor + */ + void ResetFocusFinderRootActor(); + public: /** * @copydoc Toolkit::KeyboardFocusManager::PreFocusChangeSignal() @@ -292,6 +302,18 @@ private: void OnTouch(const TouchEvent& touch); /** + * Callback for the wheel event when the custom wheel event occurs. + * @param[in] wheel The WheelEvent information + */ + bool OnCustomWheelEvent(const WheelEvent& wheel); + + /** + * Callback for the wheel event when the wheel event occurs. + * @param[in] wheel The WheelEvent information + */ + void OnWheelEvent(const WheelEvent& wheel); + + /** * Called when the window focus is changed. * @param[in] window The window whose focus is changed * @param[in] focusIn Whether the focus is in/out @@ -303,6 +325,19 @@ private: */ Actor GetFocusActorFromCurrentWindow(); + /** + * Recursively deliver events to the control and its parents, until the event is consumed or the stage is reached. + * @param[in] actor The actor got WheelEvent. + * @param[in] event The WheelEvent. + * @return True if WheelEvent is consumed. + */ + bool EmitCustomWheelSignals(Actor actor, const WheelEvent& event); + + /** + * Clear the focus indicator actor. + */ + void ClearFocusIndicator(); + private: // Undefined KeyboardFocusManager(const KeyboardFocusManager&); @@ -319,6 +354,8 @@ private: Actor mFocusIndicatorActor; ///< The focus indicator actor shared by all the keyboard focusable actors for highlight + WeakHandle mFocusFinderRootActor; /// mSlotDelegate; @@ -344,6 +381,7 @@ private: bool mClearFocusOnTouch : 1; ///< Whether clear focus on touch. bool mEnableDefaultAlgorithm : 1; ///< Whether use default algorithm focus + }; } // namespace Internal