From: Karthik Subas Chandra Bose Date: Mon, 16 Dec 2013 06:36:57 +0000 (+0900) Subject: Added screenReaderText param for Sync() X-Git-Tag: accepted/tizen/mobile/20140227.031601~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=afe77a327b4355ea73c64ff327990e0ecb6deec2;p=platform%2Fframework%2Fnative%2Fshell.git Added screenReaderText param for Sync() Change-Id: Ib7a0f61b7f835489d03d1be158526321e9f3a76e Signed-off-by: Karthik Subas Chandra Bose --- diff --git a/src/FShell_AppWidgetManagerProxy.cpp b/src/FShell_AppWidgetManagerProxy.cpp index dc27c6f..6aada1a 100644 --- a/src/FShell_AppWidgetManagerProxy.cpp +++ b/src/FShell_AppWidgetManagerProxy.cpp @@ -195,13 +195,13 @@ _AppWidgetManagerProxy::AcquireRemoteBufferForPD(const Tizen::Base::String& inst } result -_AppWidgetManagerProxy::SyncRemoteBuffer(const Tizen::Base::String& instanceId, int width, int height) +_AppWidgetManagerProxy::SyncRemoteBuffer(const Tizen::Base::String& instanceId, int width, int height, const Tizen::Base::String& screenReaderText) { SysTryReturnResult(NID_SHELL, __pIpcClient != null, E_SYSTEM, "__pIpcClient instance must not be null."); SysLog(NID_SHELL, ""); result ret = E_FAILURE; - std::auto_ptr pMsg (new (std::nothrow) AppWidgetManager_SyncRemoteBuffer(instanceId, width, height, &ret)); + std::auto_ptr pMsg (new (std::nothrow) AppWidgetManager_SyncRemoteBuffer(instanceId, width, height, screenReaderText, &ret)); result r = __pIpcClient->SendRequest(*pMsg.get()); SysTryReturn(NID_SHELL, !IsFailed(r), r, r, "SendRequest failed."); diff --git a/src/FShell_AppWidgetProviderManagerImpl.cpp b/src/FShell_AppWidgetProviderManagerImpl.cpp index d5a0051..c21e5d6 100644 --- a/src/FShell_AppWidgetProviderManagerImpl.cpp +++ b/src/FShell_AppWidgetProviderManagerImpl.cpp @@ -514,7 +514,16 @@ _AppWidgetProviderManagerImpl::SyncRemoteBuffer(const String& instanceId, int wi _AppWidgetManagerProxy* pProxy = _AppWidgetManagerProxy::GetInstance(); SysTryReturnResult(NID_SHELL, pProxy, E_SYSTEM, "Failed to get proxy instance!"); - return pProxy->SyncRemoteBuffer(instanceId, width, height); + 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); } result diff --git a/src/inc/FShell_AppWidgetManagerIpcMessage.h b/src/inc/FShell_AppWidgetManagerIpcMessage.h index de8e962..f23f558 100644 --- a/src/inc/FShell_AppWidgetManagerIpcMessage.h +++ b/src/inc/FShell_AppWidgetManagerIpcMessage.h @@ -35,7 +35,7 @@ IPC_SYNC_MESSAGE_CONTROL2_1(AppWidgetManager_RequestUpdateInstance, Tizen::Base: 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_CONTROL3_1(AppWidgetManager_SyncRemoteBuffer, Tizen::Base::String, int, int, result) +IPC_SYNC_MESSAGE_CONTROL4_1(AppWidgetManager_SyncRemoteBuffer, Tizen::Base::String, int, int, 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) diff --git a/src/inc/FShell_AppWidgetManagerProxy.h b/src/inc/FShell_AppWidgetManagerProxy.h index 11b793c..96ef43d 100644 --- a/src/inc/FShell_AppWidgetManagerProxy.h +++ b/src/inc/FShell_AppWidgetManagerProxy.h @@ -64,7 +64,7 @@ public: 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); + result SyncRemoteBuffer(const Tizen::Base::String& instanceId, int width, int height, const Tizen::Base::String& screenReaderText); result SyncRemoteBufferForPD(const Tizen::Base::String& instanceId); result ReleaseRemoteBuffer(const Tizen::Base::String& instanceId); result ReleaseRemoteBufferForPD(const Tizen::Base::String& instanceId); diff --git a/src/inc/FShell_AppWidgetProviderManagerImpl.h b/src/inc/FShell_AppWidgetProviderManagerImpl.h index e38ea2d..dd8a393 100644 --- a/src/inc/FShell_AppWidgetProviderManagerImpl.h +++ b/src/inc/FShell_AppWidgetProviderManagerImpl.h @@ -85,6 +85,7 @@ public: 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 SyncRemoteBufferForPD(const Tizen::Base::String& instanceId); result ReleaseRemoteBuffer(const Tizen::Base::String& instanceId); result ReleaseRemoteBufferForPD(const Tizen::Base::String& instanceId);