X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=capi%2Fdali-toolkit%2Fpublic-api%2Fcontrols%2Fcontrol-impl.h;h=3fbcba9527395608570b2cae8a0254a2066eef95;hb=f9adfdbd2c44b9648726bb0a1d8db863407f84bd;hp=b2b687fd1b023efc148038f3fffe7acc08611993;hpb=d72610dbc3930e073808fce04bd5c9a37ef9666d;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/capi/dali-toolkit/public-api/controls/control-impl.h b/capi/dali-toolkit/public-api/controls/control-impl.h index b2b687f..3fbcba9 100644 --- a/capi/dali-toolkit/public-api/controls/control-impl.h +++ b/capi/dali-toolkit/public-api/controls/control-impl.h @@ -35,6 +35,7 @@ class StyleManager; namespace Internal DALI_INTERNAL { +class StyleChangeProcessor; class RelayoutControllerImpl; class KeyInputFocusManager; } @@ -98,6 +99,15 @@ public: virtual bool OnAccessibilityPan(PanGesture gesture); /** + * @brief This method should be overridden by deriving classes when they wish to respond the accessibility + * touch event. + * + * @param[in] touchEvent The touch event. + * @return true if the touch event has been consumed by this control + */ + virtual bool OnAccessibilityTouch(const TouchEvent& touchEvent); + + /** * @brief This method should be overridden by deriving classes when they wish to respond * the accessibility up and down action (i.e. value change of slider control). * @@ -290,9 +300,12 @@ private: // For derived classes to override virtual void OnInitialize() { } /** - * @brief Callback for when the theme changes. + * @brief This method should be overridden by deriving classes when + * they wish to be notified when the style changes. + * + * @param[in] change Information denoting what has changed. */ - virtual void OnThemeChange( Toolkit::StyleManager styleManager ); + virtual void OnStyleChange(StyleChange change) { } /** * @brief Called whenever a pinch gesture is detected on this control. @@ -511,29 +524,13 @@ private: protected: // Construction - // Flags for the constructor - enum ControlBehaviour - { - CONTROL_BEHAVIOUR_NONE = 0x0, - REQUIRES_TOUCH_EVENTS = 0x1, ///< True if the OnTouchEvent() callback is required. - REQUIRES_THEME_CHANGE_SIGNALS = 0x2 ///< True if this control should listen to theme change signals - }; - /** - * @deprecated Use the constructor taking flags instead * @brief Create a Control. * * @param[in] requiresTouchEvents True if the OnTouchEvent() callback is required. */ Control(bool requiresTouchEvents); - /** - * @brief Create a Control. - * - * @param[in] behaviourFlags Behavioural flags from ControlBehaviour enum - */ - Control(ControlBehaviour behaviourFlags); - public: // Size negotiation @@ -709,6 +706,7 @@ private: class Impl; Impl *mImpl; + friend class Internal::StyleChangeProcessor; friend class Internal::RelayoutControllerImpl; ///< Relayout controller needs to call Relayout() which is private. friend class Internal::KeyInputFocusManager; ///< KeyInputFocusManager needs to call which is private. };