const String LIVEBOX_TRAY_ON_DESTROY(L"LiveboxTray='event=destroy'");
const String LIVEBOX_TRAY_ON_TOUCH(L"LiveboxTray='event=touch'");
+const String ARG_KEY_X = L"_X";
+const String ARG_KEY_Y = L"_Y";
const String ARG_KEY_WIDTH = L"_Width";
const String ARG_KEY_HEIGHT = L"_Height";
void
-_LiveboxPopupContext::OnPopupCreated(int width, int height)
+_LiveboxPopupContext::OnPopupCreated(int x, int y, int width, int height)
{
SysLog(NID_APP, "width(%d), height(%d)", width, height);
- SendPopupCreateRequest(width, height);
+ SendPopupCreateRequest(x, y, width, height);
}
void
}
result
-_LiveboxPopupContext::SendPopupCreateRequest(int width, int height)
+_LiveboxPopupContext::SendPopupCreateRequest(int x, int y, int width, int height)
{
std::unique_ptr<HashMap, AllElementsDeleter> pArgs (CreateRequestArgs() );
+ pArgs->Add(new String(ARG_KEY_X), new String(Integer::ToString(x)));
+ pArgs->Add(new String(ARG_KEY_Y), new String(Integer::ToString(y)));
pArgs->Add(new String(ARG_KEY_WIDTH), new String(Integer::ToString(width)));
pArgs->Add(new String(ARG_KEY_HEIGHT), new String(Integer::ToString(height)));