result
-_InputPickerPopup::Construct(const String& strDate, Ewk_Input_Type inputType)
+_InputPickerPopup::Construct(const String& strDate, Ewk_Input_Type inputType, Tizen::Web::Controls::_WebImpl* pImpl)
{
result r = E_SUCCESS;
r = AddButton(ID_BUTTON_INPUT_DATE_SELECTION);
SysTryReturn(NID_WEB_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ __pPopup->SetOwner(&pImpl->GetPublic());
+
std::unique_ptr<VerticalBoxLayout> pLayout(dynamic_cast< VerticalBoxLayout* >(__pPopup->GetLayoutN()));
SysTryReturnResult(NID_WEB_CTRL, pLayout.get(), E_OUT_OF_MEMORY, "Memory Allocation Failed.");
result
-_InputPickerPopup::Construct(const Color& color)
+_InputPickerPopup::Construct(const Color& color, Tizen::Web::Controls::_WebImpl* pImpl)
{
result r = E_SUCCESS;
pColorPicker->SetColor(color);
+ __pPopup->SetOwner(&pImpl->GetPublic());
r = __pPopup->AddControl(*pColorPicker);
SysTryReturn(NID_WEB_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
SysLog(NID_WEB_CTRL, "The current value of message is %s", pMessage);
result r = E_SUCCESS;
-
+ _WebImpl* pImpl = reinterpret_cast< _WebImpl* >(pUserData);
String msg(pMessage);
MessageBox messageBox;
SysTryReturn(NID_WEB_CTRL, r == E_SUCCESS, EINA_FALSE, r, "[%s] Propagating.", GetErrorMessage(r));
int modalResult = 0;
+
+ messageBox.SetOwner(&pImpl->GetPublic());
+
r = messageBox.ShowAndWait(modalResult);
SysTryReturn(NID_WEB_CTRL, r == E_SUCCESS, EINA_FALSE, r, "[%s] Propagating.", GetErrorMessage(r));
SysLog(NID_WEB_CTRL, "The current value of message is %s", pMessage);
result r = E_SUCCESS;
-
+ _WebImpl* pImpl = reinterpret_cast< _WebImpl* >(pUserData);
String msg(pMessage);
MessageBox messageBox;
SysTryReturn(NID_WEB_CTRL, r == E_SUCCESS, EINA_FALSE, r, "[%s] Propagating.", GetErrorMessage(r));
int modalResult = 0;
+
+ messageBox.SetOwner(&pImpl->GetPublic());
+
r = messageBox.ShowAndWait(modalResult);
SysTryReturn(NID_WEB_CTRL, r == E_SUCCESS, EINA_FALSE, r, "[%s] Propagating.", GetErrorMessage(r));
SysLog(NID_WEB_CTRL, "The current value of message is %s, defaulValue is %s", pMessage, pDefaultValue);
result r = E_SUCCESS;
-
+ _WebImpl* pImpl = reinterpret_cast< _WebImpl* >(pUserData);
String msg(pMessage);
String defVal(pDefaultValue);
r = pPromptPopup->Construct(msg, defVal, pView);
SysTryCatch(NID_WEB_CTRL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
+ pPromptPopup->SetOwner(&pImpl->GetPublic());
+
r = pPromptPopup->ShowPopup();
SysTryCatch(NID_WEB_CTRL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
SysTryReturnVoidResult(NID_WEB_CTRL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
int modalResult = 0;
+
+ messageBox.SetOwner(&pImpl->GetPublic());
+
r = messageBox.ShowAndWait(modalResult);
SysTryReturnVoidResult(NID_WEB_CTRL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
std::unique_ptr<_WebNotification> pNotificationWindow( new (std::nothrow) _WebNotification());
SysTryReturnVoidResult(NID_WEB_CTRL, pNotificationWindow.get(), E_OUT_OF_MEMORY, "[%s] Memory allocation failed.", GetErrorMessage(E_OUT_OF_MEMORY));
- r = pNotificationWindow->Construct(pContext, notificationId);
+ r = pNotificationWindow->Construct(pContext, notificationId, pImpl);
SysTryReturnVoidResult(NID_WEB_CTRL, r == E_SUCCESS, r, "[%s] Error propogated.", GetErrorMessage(r));
pNotificationWindow->SetText(String(text));
__pSelectBox = std::move(pSelectBox);
+ __pSelectBox->SetOwner(&GetPublic());
+
return __pSelectBox->ShowPopup();
}
__pAuthPopup = std::move(pAuthPopup);
int modalResult = 0;
+
+ __pAuthPopup->SetOwner(&GetPublic());
+
r = __pAuthPopup->ShowAndWait(modalResult);
SysTryCatch(NID_WEB_CTRL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
__pCertConfirmPopup = std::move(pCertConfirmPopup);
int modalResult = 0;
+
+ __pCertConfirmPopup->SetOwner(&GetPublic());
+
r = __pCertConfirmPopup->ShowAndWait(modalResult);
SysTryCatch(NID_WEB_CTRL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
__pUserConfirmPopup = std::move(pUserConfirmPopup);
int modalResult = 0;
+
+ __pUserConfirmPopup->SetOwner(&GetPublic());
+
r = __pUserConfirmPopup->ShowAndWait(modalResult);
SysTryCatch(NID_WEB_CTRL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
__pUserConfirmPopup = std::move(pUserConfirmPopup);
+ __pUserConfirmPopup->SetOwner(&GetPublic());
+
r = __pUserConfirmPopup->ShowPopup();
SysTryCatch(NID_WEB_CTRL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
Tizen::Graphics::Color colorVal(static_cast< byte >(red), static_cast< byte >(green), static_cast< byte >(blue), static_cast< byte >(alpha));
- r = pColorHadler->Construct(colorVal);
+ r = pColorHadler->Construct(colorVal, this);
SysTryReturn(NID_WEB_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
__pColorPicker = std::move(pColorHadler);
std::unique_ptr<_InputPickerPopup> pInputPicker(new (std::nothrow) _InputPickerPopup());
SysTryReturnResult(NID_WEB_CTRL, pInputPicker.get(), E_OUT_OF_MEMORY, "Memory allocation failed.");
- r = pInputPicker->Construct(String(inputValue), inputType);
+ r = pInputPicker->Construct(String(inputValue), inputType, this);
SysTryReturn(NID_WEB_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
__pDatePicker = std::move(pInputPicker);
#include <FBaseRtTimer.h>
#include <FBaseSysLog.h>
+#include <FSysVibrator.h>
+#include <FSys_VibratorImpl.h>
#include <FUiAnimControlAnimator.h>
#include <FUiAnimPointAnimation.h>
#include <FUiAnimFloatAnimation.h>
#include <FUiAnimAnimationTransaction.h>
#include <FUiCtrlButton.h>
+
+#include "FWebCtrl_WebImpl.h"
#include "FWebCtrl_WebNotificationHandler.h"
#include "FWebCtrl_WebNotification.h"
}
result
-_WebNotification::Construct(Ewk_Context *pContext, uint64_t notificationId)
+_WebNotification::Construct(Ewk_Context *pContext, uint64_t notificationId, Tizen::Web::Controls::_WebImpl* pImpl)
{
// _ControlOrientation orientation = _ControlManager::GetInstance()->GetOrientation();
SysTryReturn(NID_WEB_CTRL, r == E_SUCCESS, r, r, "[%s] Error Propogating.", GetErrorMessage(r));
SetBounds(rect);
+ Window::SetOwner(&pImpl->GetPublic());
__pNotificationHandler = std::unique_ptr<_WebNotificationHandler>(new (std::nothrow) _WebNotificationHandler());
SysTryReturnResult(NID_WEB_CTRL, __pNotificationHandler.get(), E_OUT_OF_MEMORY, "Memory allocation failed.");