add x, y param for LiveboxPopup
[framework/osp/appwidget-service.git] / src / FShell_LiveboxPopupContext.cpp
index ad16a00..a0dd789 100644 (file)
@@ -45,6 +45,8 @@ const String LIVEBOX_TRAY_ON_CREATE(L"LiveboxTray='event=create'");
 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";
 
@@ -63,10 +65,10 @@ _LiveboxPopupContext::~_LiveboxPopupContext()
 
 
 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
@@ -77,10 +79,12 @@ _LiveboxPopupContext::OnPopupDestoyed()
 }
 
 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)));