#include <FUiLayout.h>
#include <FUiVerticalBoxLayout.h>
#include <FIo_DatabaseImpl.h>
+#include <FSys_SystemResource.h>
#include <FUi_ControlManager.h>
#include <FUi_ResourceManager.h>
#include "FWebCtrl_EflWebkit.h"
using namespace Tizen::Graphics;
using namespace Tizen::Io;
using namespace Tizen::Security::Cert;
+using namespace Tizen::System;
using namespace Tizen::Ui;
using namespace Tizen::Ui::Controls;
SysTryReturnResult(NID_WEB_CTRL, userConfirmMode >= USER_CONFIRM_USERMEDIA && userConfirmMode <= USER_CONFIRM_INDEXED_DB_QUOTA_EXCEDED, E_INVALID_ARG,
"Invalid userConfirmMode is used. [%d]", userConfirmMode);
+ _SystemResource* pSysResource = _SystemResource::GetInstance();
+ SysAssertf(pSysResource != null, "Failed to get _SystemResource instance");
+
_WebPopupData* pPopupData = _WebPopup::GetPopupData();
SysTryReturn(NID_WEB_CTRL, pPopupData, r = GetLastResult(), r, "[%s] Propagating.", GetErrorMessage(r));
if (userConfirmMode != USER_SCRIPT_ALERT)
{
- SetTitleText("Security Warning");
+ SetTitleText(pSysResource->GetString(_RESOURCE_DOMAIN_ID_OSP, "IDS_BR_HEADER_SECURITY_WARNING"));
}
Rectangle rect(0, 0, 0, 0);
std::unique_ptr<CheckButton> pCheckButton (new (std::nothrow) CheckButton());
SysTryReturnResult(NID_WEB_CTRL, pCheckButton.get(), E_OUT_OF_MEMORY, "Memory Allocation failed.");
- r = pCheckButton->Construct(Rectangle(0, 0, rect.width, rect.height), CHECK_BUTTON_STYLE_MARK, BACKGROUND_STYLE_NONE, false, L"Remember Preference");
+ r = pCheckButton->Construct(Rectangle(0, 0, rect.width, rect.height), CHECK_BUTTON_STYLE_MARK, BACKGROUND_STYLE_NONE, false, pSysResource->GetString(_RESOURCE_DOMAIN_ID_OSP, "IDS_BR_BODY_REMEMBER_PREFERENCE"));
SysTryReturn(NID_WEB_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
r = AddControl(*pCheckButton);
idList.Add(*(new Integer(ID_BUTTON_USER_ALLOW)));
if (userConfirmMode == USER_SCRIPT_ALERT)
{
- titleList.Add(*(new String(L"OK")));
+ titleList.Add(*(new String(pSysResource->GetString(_RESOURCE_DOMAIN_ID_OSP, "IDS_TPLATFORM_BUTTON_OK"))));
}
else
{
idList.Add(*(new Integer(ID_BUTTON_USER_CANCEL)));
- titleList.Add(*(new String(L"Allow")));
- titleList.Add(*(new String(L"Cancel")));
+ titleList.Add(*(new String(pSysResource->GetString(_RESOURCE_DOMAIN_ID_OSP, "IDS_BR_OPT_ALLOW"))));
+ titleList.Add(*(new String(pSysResource->GetString(_RESOURCE_DOMAIN_ID_OSP, "IDS_BR_OPT_CANCEL"))));
}
r = CreateAndAddButtons(idList, titleList, pButtonPanel);
String
_UserConfirmPopup::GetMessageFromPolicy(void)
{
+ _SystemResource* pSysResource = _SystemResource::GetInstance();
+ SysAssertf(pSysResource != null, "Failed to get _SystemResource instance");
+
String message;
switch(__userConfirmMode)
const Ewk_Security_Origin* pSecurityOrigin = ewk_geolocation_permission_request_origin_get(pGeoLocPermReq);
message = _Utility::CreateOrigin(pSecurityOrigin);
- message.Append(" Requests your Location");
+ message.Append(pSysResource->GetString(_RESOURCE_DOMAIN_ID_OSP, "IDS_BR_BODY_PS_REQUESTS_YOUR_LOCATION"));
break;
}
case USER_CONFIRM_NOTIFICATION: