X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=staging%2FHomeScreen.git;a=blobdiff_plain;f=HomeScreen%2Fsrc%2Flayouthandler.cpp;h=35304e6733529d18543db0cd6216b823094dc969;hp=5f52cd5a4f32d3d8b91bf84a276b5f01bc6f309f;hb=ef35ccbf522a2aaaece7625e9886bd910e3bd8b8;hpb=5f64524d072abe75f4abb0730d37c0380f148fc1 diff --git a/HomeScreen/src/layouthandler.cpp b/HomeScreen/src/layouthandler.cpp index 5f52cd5..35304e6 100644 --- a/HomeScreen/src/layouthandler.cpp +++ b/HomeScreen/src/layouthandler.cpp @@ -175,6 +175,33 @@ void LayoutHandler::makeMeVisible(int pid) } } +QList LayoutHandler::requestGetAllSurfacesOfProcess(int pid) +{ + qDebug("requestGetAllSurfacesOfProcess %d", pid); + + return mp_dBusWindowManagerProxy->getAllSurfacesOfProcess(pid); +} + +int LayoutHandler::requestGetSurfaceStatus(int surfaceId) +{ + int result = -1; + + if (-1 != m_visibleSurfaces.indexOf(surfaceId)) + { + result = 0; + } + if (-1 != m_invisibleSurfaces.indexOf(surfaceId)) + { + result = 1; + } + if (-1 != m_requestsToBeVisibleSurfaces.indexOf(surfaceId)) + { + result = 1; + } + + return result; +} + void LayoutHandler::requestRenderSurfaceToArea(int surfaceId, const QRect &renderArea) { qDebug("requestRenderSurfaceToArea %d %d,%d,%d,%d", surfaceId, renderArea.x(), renderArea.y(), renderArea.width(), renderArea.height());