{
return ForceUpResult::ALREADY_UP;
}
- mData = std::make_shared<Data>();
+ mData = std::make_shared<Data>();
mData->mBridge = this;
return ForceUpResult::JUST_STARTED;
}
* @param[in] obj Accessible object
* @param[in] type Direction type when an Accessible object moves out of screen
**/
- virtual void EmitMovedOutOfScreen(Accessible* obj, MovedOutOfScreenType type) = 0;
+ virtual void EmitMovedOutOfScreen(Accessible* obj, ScreenRelativeMoveType type) = 0;
/**
* @brief Emits state-changed event on at-spi bus.
*
* @param[in] type moved out of screen type
*/
- void EmitMovedOutOfScreen(MovedOutOfScreenType type);
+ void EmitMovedOutOfScreen(ScreenRelativeMoveType type);
/**
* @brief Emits "highlighted" event.
namespace Accessibility\r
{\r
/**\r
- * @brief Enumeration describing signal that occurs when object moves out of screen.\r
+ * @brief Enumeration describing type of object move relative to the screen. Only outgoing moves are signalled to AT-clients.\r
*/\r
-enum class MovedOutOfScreenType\r
+enum class ScreenRelativeMoveType\r
{\r
- NONE,\r
- TOP_LEFT, ///< Object moves out of top(or left) side of screen\r
- BOTTOM_RIGHT ///< Object moves out of bottom(or right) side of screen\r
+ OUTSIDE = 0, ///< Object moves outside of the screen\r
+ OUTGOING_TOP_LEFT = 1, ///< Object moves out through the top(or left) side of the screen. Maps to: ATSPI_MOVE_OUTED_TOP_LEFT\r
+ OUTGOING_BOTTOM_RIGHT = 2, ///< Object moves out through the bottom(or right) side of the screen. Maps to: ATSPI_MOVE_OUTED_BOTTOM_RIGHT\r
+ INSIDE ///< Object moves into the screen or moves inside the screen\r
};\r
\r
/**\r
}
}
-void Accessible::EmitMovedOutOfScreen(MovedOutOfScreenType type)
+void Accessible::EmitMovedOutOfScreen(ScreenRelativeMoveType type)
{
if(auto bridgeData = GetBridgeData())
{
if(!handle)
{
auto bridge = Bridge::GetCurrentBridge();
- handle = bridge->mData;
+ handle = bridge->mData;
}
return handle;
}
}
}
-void BridgeObject::EmitMovedOutOfScreen(Accessible* obj, MovedOutOfScreenType type)
+void BridgeObject::EmitMovedOutOfScreen(Accessible* obj, ScreenRelativeMoveType type)
{
auto addr = obj->GetAddress();
std::string p = addr ? ATSPI_PREFIX_PATH + addr.GetPath() : ATSPI_NULL_PATH;
void Emit(Dali::Accessibility::Accessible* obj, Dali::Accessibility::WindowEvent event, unsigned int detail) override;
void Emit(Dali::Accessibility::Accessible* obj, Dali::Accessibility::ObjectPropertyChangeEvent we) override;
void EmitBoundsChanged(Dali::Accessibility::Accessible* obj, Dali::Rect<> rect) override;
- void EmitMovedOutOfScreen(Dali::Accessibility::Accessible* obj, Dali::Accessibility::MovedOutOfScreenType type) override;
+ void EmitMovedOutOfScreen(Dali::Accessibility::Accessible* obj, Dali::Accessibility::ScreenRelativeMoveType type) override;
};
#endif // DALI_INTERNAL_ACCESSIBILITY_BRIDGE_OBJECT_H
{
}
-void Accessibility::Accessible::EmitMovedOutOfScreen(Accessibility::MovedOutOfScreenType type)
+void Accessibility::Accessible::EmitMovedOutOfScreen(Accessibility::ScreenRelativeMoveType type)
{
}
{
}
- void EmitMovedOutOfScreen(Accessibility::Accessible* obj, MovedOutOfScreenType type) override
+ void EmitMovedOutOfScreen(Accessibility::Accessible* obj, ScreenRelativeMoveType type) override
{
}