SysTryReturn(NID_SHELL, !__providerId.IsEmpty(), E_INVALID_ARG, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
String screenReaderText(L"");
+ String alternativeText(L"");
if (__pWindow)
{
screenReaderText = pAccessibilityElement->GetTraitString();
}
}
+ alternativeText = __pWindow->GetName();
}
bool isEmpty = screenReaderText.IsEmpty();
SysLog(NID_SHELL, "IsEmpty(%d) %ls", isEmpty, screenReaderText.GetPointer());
- result r = _AppWidgetProviderManagerImpl::GetInstance()->SyncRemoteBuffer(__providerId, size.width, size.height, screenReaderText);
+ result r = _AppWidgetProviderManagerImpl::GetInstance()->SyncRemoteBuffer(__providerId, size.width, size.height, screenReaderText, alternativeText);
SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
return r;
}
result
-_AppWidgetManagerProxy::SyncRemoteBuffer(const Tizen::Base::String& instanceId, int width, int height, const Tizen::Base::String& screenReaderText)
+_AppWidgetManagerProxy::SyncRemoteBuffer(const Tizen::Base::String& instanceId, int width, int height,
+ const Tizen::Base::String& screenReaderText, const Tizen::Base::String& alternativeText)
{
SysTryReturnResult(NID_SHELL, __pIpcClient != null, E_SYSTEM, "__pIpcClient instance must not be null.");
SysLog(NID_SHELL, "");
result ret = E_FAILURE;
- std::auto_ptr<IPC::Message> pMsg (new (std::nothrow) AppWidgetManager_SyncRemoteBuffer(instanceId, width, height, screenReaderText, &ret));
+ std::auto_ptr<IPC::Message> pMsg (new (std::nothrow) AppWidgetManager_SyncRemoteBuffer(instanceId, width, height, screenReaderText, alternativeText, &ret));
result r = __pIpcClient->SendRequest(*pMsg.get());
SysTryReturn(NID_SHELL, !IsFailed(r), r, r, "SendRequest failed.");
}
result
-_AppWidgetProviderManagerImpl::SyncRemoteBuffer(const String& instanceId, int width, int height)
+_AppWidgetProviderManagerImpl::SyncRemoteBuffer(const String& instanceId, int width, int height,
+ const String& screenReaderText, const String& alternativeText)
{
_AppWidgetManagerProxy* pProxy = _AppWidgetManagerProxy::GetInstance();
SysTryReturnResult(NID_SHELL, pProxy, E_SYSTEM, "Failed to get proxy instance!");
- return pProxy->SyncRemoteBuffer(instanceId, width, height, L"");
-}
-
-result
-_AppWidgetProviderManagerImpl::SyncRemoteBuffer(const String& instanceId, int width, int height, const String& screenReaderText)
-{
- _AppWidgetManagerProxy* pProxy = _AppWidgetManagerProxy::GetInstance();
- SysTryReturnResult(NID_SHELL, pProxy, E_SYSTEM, "Failed to get proxy instance!");
-
- return pProxy->SyncRemoteBuffer(instanceId, width, height, screenReaderText);
+ return pProxy->SyncRemoteBuffer(instanceId, width, height, screenReaderText, alternativeText);
}
result
IPC_SYNC_MESSAGE_CONTROL3_1(AppWidgetManager_AcquireRemoteBuffer, Tizen::Base::String, int, int, int)
IPC_SYNC_MESSAGE_CONTROL3_1(AppWidgetManager_AcquireRemoteBufferForPD, Tizen::Base::String, int, int, int)
-IPC_SYNC_MESSAGE_CONTROL4_1(AppWidgetManager_SyncRemoteBuffer, Tizen::Base::String, int, int, Tizen::Base::String, result)
+IPC_SYNC_MESSAGE_CONTROL5_1(AppWidgetManager_SyncRemoteBuffer, Tizen::Base::String, int, int, Tizen::Base::String, Tizen::Base::String, result)
IPC_SYNC_MESSAGE_CONTROL1_1(AppWidgetManager_SyncRemoteBufferForPD, Tizen::Base::String, result)
IPC_SYNC_MESSAGE_CONTROL1_1(AppWidgetManager_ReleaseRemoteBuffer, Tizen::Base::String, result)
IPC_SYNC_MESSAGE_CONTROL1_1(AppWidgetManager_ReleaseRemoteBufferForPD, Tizen::Base::String, result)
result RequestUpdateInstance(const Tizen::Base::String& instanceId, const Tizen::Base::String& argument);
result AcquireRemoteBuffer(const Tizen::Base::String& instanceId, int w, int h, int& bufferId);
result AcquireRemoteBufferForPD(const Tizen::Base::String& instanceId, int w, int h, int& bufferId);
- result SyncRemoteBuffer(const Tizen::Base::String& instanceId, int width, int height, const Tizen::Base::String& screenReaderText);
+ result SyncRemoteBuffer(const Tizen::Base::String& instanceId, int width, int height, const Tizen::Base::String& screenReaderText, const Tizen::Base::String& alternativeText);
result SyncRemoteBufferForPD(const Tizen::Base::String& instanceId);
result ReleaseRemoteBuffer(const Tizen::Base::String& instanceId);
result ReleaseRemoteBufferForPD(const Tizen::Base::String& instanceId);
result RequestUpdateInstance(const Tizen::Base::String& instanceId, const Tizen::Base::String& argument = L"");
result AcquireRemoteBuffer(const Tizen::Base::String& instanceId, int width, int height, int& bufferId);
result AcquireRemoteBufferForPD(const Tizen::Base::String& instanceId, int width, int height, int& bufferId);
- result SyncRemoteBuffer(const Tizen::Base::String& instanceId, int width, int height);
- result SyncRemoteBuffer(const Tizen::Base::String& instanceId, int width, int height, const Tizen::Base::String& screenReaderText);
+ result SyncRemoteBuffer(const Tizen::Base::String& instanceId, int width, int height, const Tizen::Base::String& screenReaderText, const Tizen::Base::String& alternativeText);
result SyncRemoteBufferForPD(const Tizen::Base::String& instanceId);
result ReleaseRemoteBuffer(const Tizen::Base::String& instanceId);
result ReleaseRemoteBufferForPD(const Tizen::Base::String& instanceId);