X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fbuttons%2Fbutton-impl.h;h=ebe34e0bd0a2af7a32975ffdcf32f1e558481720;hp=0915d3e35eb28f94f7c85041cec0e7e894aa5afb;hb=e3d6a0a27fd980a4ced6e7257abdc32bc192e871;hpb=6510379ea0355c08dfe00ad9221b8fb404418702 diff --git a/dali-toolkit/internal/controls/buttons/button-impl.h b/dali-toolkit/internal/controls/buttons/button-impl.h index 0915d3e..ebe34e0 100644 --- a/dali-toolkit/internal/controls/buttons/button-impl.h +++ b/dali-toolkit/internal/controls/buttons/button-impl.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_INTERNAL_BUTTON_H /* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. + * Copyright (c) 2020 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. @@ -26,6 +26,7 @@ #include #include #include +#include namespace Dali { @@ -316,43 +317,43 @@ protected: // From Control * @copydoc Toolkit::Control::OnInitialize() * @note If overridden by deriving button classes, then an up-call to Button::OnInitialize MUST be made at the start. */ - virtual void OnInitialize(); + void OnInitialize() override; /** * @copydoc Toolkit::Control::OnAccessibilityActivated() */ - virtual bool OnAccessibilityActivated(); + bool OnAccessibilityActivated() override; /** * @copydoc Toolkit::Control::OnKeyboardEnter() */ - virtual bool OnKeyboardEnter(); + bool OnKeyboardEnter() override; /** - * @copydoc Toolkit::Control::OnStageDisconnection() - * @note If overridden by deriving button classes, then an up-call to Button::OnStageDisconnection MUST be made at the end. + * @copydoc Toolkit::Control::OnSceneDisconnection() + * @note If overridden by deriving button classes, then an up-call to Button::OnSceneDisconnection MUST be made at the end. */ - virtual void OnStageDisconnection(); + void OnSceneDisconnection() override; /** - * @copydoc Toolkit::Control::OnStageConnnection() + * @copydoc Toolkit::Control::OnSceneConnection() */ - virtual void OnStageConnection( int depth ); + void OnSceneConnection( int depth ) override; /** * @copydoc Toolkit::Control::GetNaturalSize */ - virtual Vector3 GetNaturalSize(); + Vector3 GetNaturalSize() override; /** * @copydoc Toolkit::Control::OnSetResizePolicy */ - virtual void OnSetResizePolicy( ResizePolicy::Type policy, Dimension::Type dimension ); + void OnSetResizePolicy( ResizePolicy::Type policy, Dimension::Type dimension ) override; /** * @copydoc Toolkit::Control::OnRelayout */ - virtual void OnRelayout( const Vector2& size, RelayoutContainer& container ); + void OnRelayout( const Vector2& size, RelayoutContainer& container ) override; private: @@ -362,7 +363,7 @@ private: * @param[in] touch The touch info. * @return true, if consumed, false otherwise. */ - bool OnTouch( Actor actor, const TouchData& touch ); + bool OnTouch( Actor actor, const TouchEvent& touch ); /** * Handler for tap events. @@ -540,6 +541,16 @@ private: // Actions bool mClickActionPerforming; ///< Used to manage signal emissions during action + +protected: + struct AccessibleImpl : public Control::Impl::AccessibleImpl + { + using Control::Impl::AccessibleImpl::AccessibleImpl; + + Dali::Accessibility::States CalculateStates() override; + std::string GetNameRaw() override; + Property::Index GetNamePropertyIndex() override; + }; }; } // namespace Internal