_PromptPopup::_PromptPopup(void)
: __pEditField(null)
, __pWebView(null)
+ , __pImpl(null)
{
}
// Prompt popup
result
-_PromptPopup::Construct(const String& message, const String& defaultVale, Evas_Object* pView)
+_PromptPopup::Construct(const String& message, const String& defaultVale, Evas_Object* pView, _WebImpl* pImpl)
{
result r = E_SUCCESS;
Rectangle rect(0, 0, 0, 0);
int popupHeight = 0;
+ __pImpl = pImpl;
__pWebView = pView;
_WebPopupData* pPopupData = _WebPopup::GetPopupData();
ArrayList idList;
r = idList.Construct();
SysTryReturn(NID_WEB_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
- idList.Add(*(new Integer(ID_BUTTON_PROMPT_OK)));
idList.Add(*(new Integer(ID_BUTTON_PROMPT_CANCEL)));
+ idList.Add(*(new Integer(ID_BUTTON_PROMPT_OK)));
ArrayList titleList;
r = titleList.Construct();
SysTryReturn(NID_WEB_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
- titleList.Add(*(new String(pSysResource->GetString("sys_string", "IDS_COM_SK_OK"))));
- titleList.Add(*(new String(pSysResource->GetString("sys_string", "IDS_COM_POP_CANCEL"))));
+ titleList.Add(*(new String(pSysResource->GetString("sys_string", "IDS_TPLATFORM_BUTTON_CANCEL_ABB"))));
+ titleList.Add(*(new String(pSysResource->GetString("sys_string", "IDS_TPLATFORM_BUTTON_OK"))));
r = CreateAndAddButtons(idList, titleList, pButtonPanel);
SysTryReturn(NID_WEB_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
SysAssertf(false, "unknown action ID used");
break;
}
- GetOwner()->SendUserEvent(ID_PROMPT_POPUP_CLOSE, null);
+ __pImpl->SendUserEvent(ID_PROMPT_POPUP_CLOSE, null);
}
bool
_PromptPopup::OnKeyPressed(Control& source, const KeyEventInfo& keyEventInfo)
{
- return true;
+ return false;
}
bool
{
HidePopup(ID_BUTTON_PROMPT_CANCEL);
ewk_view_javascript_prompt_reply(__pWebView, null);
- GetOwner()->SendUserEvent(ID_PROMPT_POPUP_CLOSE, null);
+ __pImpl->SendUserEvent(ID_PROMPT_POPUP_CLOSE, null);
}
- return true;
+ return false;
}
bool