_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();
SysAssertf(false, "unknown action ID used");
break;
}
- GetOwner()->SendUserEvent(ID_PROMPT_POPUP_CLOSE, null);
+ __pImpl->SendUserEvent(ID_PROMPT_POPUP_CLOSE, null);
}
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;
namespace Tizen { namespace Web { namespace Controls
{
+class _WebImpl;
+}}} // Tizen::Web::Controls
+
+namespace Tizen { namespace Web { namespace Controls
+{
enum _PromptPopupButtonId
{
*/
virtual ~_PromptPopup(void);
- result Construct(const Tizen::Base::String& message, const Tizen::Base::String& defaultValue, Evas_Object* pView);
+ result Construct(const Tizen::Base::String& message, const Tizen::Base::String& defaultValue, Evas_Object* pView, _WebImpl* pImpl);
const Tizen::Base::String GetPromptText(void);
Tizen::Ui::Controls::EditField* __pEditField;
Evas_Object* __pWebView;
+ _WebImpl* __pImpl;
}; // _PromptPopup
}}} // Tizen::Web::Controls
std::unique_ptr< _PromptPopup > pPromptPopup(new (std::nothrow) _PromptPopup());
SysTryReturnResult(NID_WEB_CTRL, pPromptPopup.get(), E_OUT_OF_MEMORY, "Memory Allocation failed.");
- r = pPromptPopup->Construct(msg, defVal, __pWebCore->GetWebNativeNode());
+ r = pPromptPopup->Construct(msg, defVal, __pWebCore->GetWebNativeNode(), this);
SysTryReturn(NID_WEB_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
__pPromptPopup = std::move(pPromptPopup);