#include <FSys_SystemResource.h>
#include <FUi_ResourceManager.h>
#include "FWebCtrl_SelectBox.h"
+#include "FWebCtrl_WebImpl.h"
using namespace Tizen::Base;
, __pWebView(null)
, __pToggledArray(null)
, __url(L"")
+ , __pImpl(null)
{
}
result
-_SelectBox::Construct(bool isMultiSelect, const String& title, int listCount, Evas_Object* pWebView, const String& url)
+_SelectBox::Construct(Tizen::Web::Controls::_WebImpl* pImpl, bool isMultiSelect, const String& title, int listCount, Evas_Object* pWebView, const String& url)
{
result r = E_SUCCESS;
Rectangle rect;
__pWebView = pWebView;
__url = const_cast< String& >(url);
+ __pImpl = pImpl;
GET_SHAPE_CONFIG(CONTEXTMENU::LIST_ITEM_HEIGHT, __orientation, listItemHeight);
result r = HidePopup();
SysTryReturnVoidResult(NID_WEB_CTRL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
+
+ __pImpl->SendUserEvent(ID_USER_SCRIPT_SELECTBOX_CLOSE, null);
}
}
SysAssertf(false, "Invalid Action ID");
}
}
+ __pImpl->SendUserEvent(ID_USER_SCRIPT_SELECTBOX_CLOSE, null);
}
bool
#include <FUiIPropagatedKeyEventListener.h>
#include <FUi_ControlManager.h>
#include "FWebCtrl_WebPopup.h"
+#include "FWebCtrl_WebImpl.h"
namespace Tizen { namespace Graphics
{
*/
virtual ~_SelectBox(void);
- result Construct(bool isMultiSelect, const Tizen::Base::String& title, int listItemCnt, Evas_Object* pWebView = null, const Tizen::Base::String& url = L"");
+ result Construct(Tizen::Web::Controls::_WebImpl* pImpl, bool isMultiSelect, const Tizen::Base::String& title, int listItemCnt, Evas_Object* pWebView = null, const Tizen::Base::String& url = L"");
Tizen::Base::Collection::IList* GetSelectedListN(void) const;
//IListViewItemProvider
private:
Tizen::Base::Collection::ArrayList __listElementArray;
Tizen::Ui::Controls::ListView* __pListView;
+ Tizen::Web::Controls::_WebImpl* __pImpl;
bool __multiSelection;
int __SelectedIndex;
int __prevIndex;
std::unique_ptr<_SelectBox> pSelectBox(new (std::nothrow) _SelectBox());
SysTryReturnResult(NID_WEB_CTRL, pSelectBox.get(), E_OUT_OF_MEMORY, "Memory allocation failed.");
- r = pSelectBox->Construct(isMultiSelect, title, DEFAULT_LIST_ITEM_COUNT, pWebView);
+ r = pSelectBox->Construct(this, isMultiSelect, title, DEFAULT_LIST_ITEM_COUNT, pWebView);
SysTryReturn(NID_WEB_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
r = pSelectBox->UpdateList(pItems, selectedIndex, false, false);
case ID_USER_CONFIRM_SAVE_PASSWORD_CLOSE:
__pSavePasswordConfirmPopup.reset();
break;
+ case ID_USER_SCRIPT_SELECTBOX_CLOSE:
+ __pSelectBox.reset();
+ break;
default:
break;
}
ID_USER_CONFIRM_NOTIFICATION_CLOSE,
ID_USER_SCRIPT_ALERT_CLOSE,
ID_USER_SCRIPT_CONFIRM_CLOSE,
- ID_USER_CONFIRM_SAVE_PASSWORD_CLOSE
+ ID_USER_CONFIRM_SAVE_PASSWORD_CLOSE,
+ ID_USER_SCRIPT_SELECTBOX_CLOSE
};
class _OSP_EXPORT_ _WebImpl