void OnRemoved();
void OnForeground();
void OnBackground();
- virtual void OnPopupCreated(int width, int height);
+ virtual void OnPopupCreated(int x, int y, int width, int height);
virtual void OnPopupDestoyed(void);
result RequestUpdateRemote(int width, int height);
_LiveboxContextBase(target_type type, const Tizen::Base::String& userInfo, const Tizen::Base::String& providerId, const Tizen::Base::String& instanceId, int width, int height, int priority);
virtual ~_LiveboxContextBase();
- virtual void OnPopupCreated(int width, int height) = 0;
+ virtual void OnPopupCreated(int x, int y, int width, int height) = 0;
virtual void OnPopupDestoyed(void) = 0;
virtual result SendTouchEvent(buffer_event event, double timestamp, double x, double y) = 0;
virtual ~_LiveboxPopupContext();
// event handler
- void OnPopupCreated(int width, int height);
+ void OnPopupCreated(int x, int y, int width, int height);
void OnPopupDestoyed(void);
// request to app
- result SendPopupCreateRequest(int width, int height);
+ result SendPopupCreateRequest(int x, int y, int width, int height);
result SendPopupDestroyRequest();
virtual result SendTouchEvent(buffer_event event, double timestamp, double x, double y);
}
void
-_LiveboxContext::OnPopupCreated(int width, int height)
+_LiveboxContext::OnPopupCreated(int x, int y, int width, int height)
{
__pLiveboxPopup = new (std::nothrow) _LiveboxPopupContext(__userInfo, __providerId, __instanceId, width, height, __priority);
__pLiveboxPopup->SetClientId(__ipcClientId);
- __pLiveboxPopup->OnPopupCreated(width, height);
+ __pLiveboxPopup->OnPopupCreated(x, y, width, height);
__lifeDurationTimer.Cancel();
}
{
pLiveboxContext->OnPopupDestoyed();
}*/
- pLiveboxContext->OnPopupCreated(arg->info.pd_create.w, arg->info.pd_create.h);
+ pLiveboxContext->OnPopupCreated(arg->info.pd_create.x, arg->info.pd_create.y, arg->info.pd_create.w, arg->info.pd_create.h);
return 0;
}
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)));