Change-Id: I0cdf52157b2c4633d0710b37666d1b714e816859
+Magnifier Magnifier::DownCast( BaseHandle handle )
+{
+ return Control::DownCast<Magnifier, Internal::Magnifier>(handle);
+}
+
void Magnifier::SetSourceActor(Actor actor)
{
GetImpl(*this).SetSourceActor( actor );
void Magnifier::SetSourceActor(Actor actor)
{
GetImpl(*this).SetSourceActor( actor );
if( control )
{
// if cast succeeds there is an implementation so no need to check
if( control )
{
// if cast succeeds there is an implementation so no need to check
- Internal::GetImplementation( control ).OnAccessibilityActivated();
+ ret = Internal::GetImplementation( control ).OnAccessibilityActivated();
controlImpl.EnableGestureDetection( Gesture::LongPress );
controlImpl.GetLongPressGestureDetector().DetectedSignal().Connect( tracker, functor );
}
controlImpl.EnableGestureDetection( Gesture::LongPress );
controlImpl.GetLongPressGestureDetector().DetectedSignal().Connect( tracker, functor );
}
- else
- {
- // signalName does not match any signal
- connected = false;
- }
OnAccessibilityActivated();
}
OnAccessibilityActivated();
}
-void Control::OnAccessibilityActivated()
+bool Control::OnAccessibilityActivated()
+ return false; // Accessibility activation is not handled by default
}
bool Control::OnAccessibilityPan(PanGesture gesture)
}
bool Control::OnAccessibilityPan(PanGesture gesture)
* @brief This method is called when the control is accessibility activated.
*
* Derived classes should override this to perform custom accessibility activation.
* @brief This method is called when the control is accessibility activated.
*
* Derived classes should override this to perform custom accessibility activation.
+ * @return true if this control can perform accessibility activation.
- virtual void OnAccessibilityActivated();
+ virtual bool OnAccessibilityActivated();
/**
* @brief This method should be overridden by deriving classes when they wish to respond the accessibility
/**
* @brief This method should be overridden by deriving classes when they wish to respond the accessibility