*/
virtual void EmitSocketAvailable(Accessible* obj) = 0;
+ /**
+ * @brief Emits ScrollStarted event on at-spi bus.
+ *
+ * @param obj Accessible Object
+ */
+ virtual void EmitScrollStarted(Accessible *obj) = 0;
+
+ /**
+ * @brief Emits ScrollFinished event on at-spi bus.
+ *
+ * @param obj Accessible Object
+ */
+ virtual void EmitScrollFinished(Accessible *obj) = 0;
+
/**
* @brief Emits state-changed event on at-spi bus.
*
ATTRIBUTES_CHANGED,\r
MOVED_OUT,\r
WINDOW_CHANGED,\r
+ SCROLL_STARTED,\r
+ SCROLL_FINISHED,\r
MAX_COUNT\r
};\r
\r
// to spare a dynamic_cast if used like this: Accessible::Get()->Emit*(...)).
void EmitSocketAvailable();
+ /**
+ * @brief Emits "ScrollStarted" event.
+ *
+ */
+ void EmitScrollStarted();
+
+ /**
+ * @brief Emits "ScrollFinished" event.
+ *
+ */
+ void EmitScrollFinished();
+
/**
* @brief Emits "highlighted" event.
*
}
}
+void Accessible::EmitScrollStarted()
+{
+ if(auto bridgeData = GetBridgeData())
+ {
+ bridgeData->mBridge->EmitScrollStarted(this);
+ }
+}
+
+void Accessible::EmitScrollFinished()
+{
+ if(auto bridgeData = GetBridgeData())
+ {
+ bridgeData->mBridge->EmitScrollFinished(this);
+ }
+}
+
void Accessible::Emit(WindowEvent event, unsigned int detail)
{
if(auto bridgeData = GetBridgeData())
obj->GetAddress(),
{"", "root"});
}
+
+void BridgeObject::EmitScrollStarted(Accessible* obj)
+{
+ if(!IsUp() || obj->IsHidden() || obj->GetSuppressedEvents()[AtspiEvent::SCROLL_STARTED])
+ {
+ return;
+ }
+
+ mDbusServer.emit2<Address>(
+ GetAccessiblePath(obj),
+ Accessible::GetInterfaceName(AtspiInterface::EVENT_OBJECT),
+ "ScrollStarted",
+ {"", "root"});
+}
+
+void BridgeObject::EmitScrollFinished(Accessible* obj)
+{
+ if(!IsUp() || obj->IsHidden() || obj->GetSuppressedEvents()[AtspiEvent::SCROLL_FINISHED])
+ {
+ return;
+ }
+
+ mDbusServer.emit2<Address>(
+ GetAccessiblePath(obj),
+ Accessible::GetInterfaceName(AtspiInterface::EVENT_OBJECT),
+ "ScrollFinished",
+ {"", "root"});
+}
\ No newline at end of file
*/
void EmitSocketAvailable(Dali::Accessibility::Accessible* obj) override;
+ /**
+ * @copydoc Dali::Accessibility::Bridge::EmitScrollStarted()
+ */
+ void EmitScrollStarted(Dali::Accessibility::Accessible* obj) override;
+
+ /**
+ * @copydoc Dali::Accessibility::Bridge::EmitScrollFinished()
+ */
+ void EmitScrollFinished(Dali::Accessibility::Accessible* obj) override;
+
protected:
DBus::DBusInterfaceDescription::SignalId mStateChanged;
};
{
}
+void Accessibility::Accessible::EmitScrollStarted()
+{
+}
+
+void Accessibility::Accessible::EmitScrollFinished()
+{
+}
+
void Accessibility::Accessible::NotifyAccessibilityStateChange(Accessibility::States states, bool isRecursive)
{
}
{
}
+ void EmitScrollStarted(Accessibility::Accessible* obj) override
+ {
+ }
+
+ void EmitScrollFinished(Accessibility::Accessible* obj) override
+ {
+ }
+
void EmitStateChanged(Accessibility::Accessible* obj, Accessibility::State state, int newValue, int reserved) override
{
}