X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2FAglShellGrpcClient.cpp;h=804ab79a58c0d12060f3ba25518859657fd21d74;hb=cb43847cd07ba3d2b3e1f34aff3d6c98325c1c20;hp=ee2fe486584bad377f8dee215a7f934d9db2540f;hpb=c625714c4adce04c34ab406bdd444b13773760e2;p=src%2Fwindow-management-client-grpc.git diff --git a/src/AglShellGrpcClient.cpp b/src/AglShellGrpcClient.cpp index ee2fe48..804ab79 100644 --- a/src/AglShellGrpcClient.cpp +++ b/src/AglShellGrpcClient.cpp @@ -104,6 +104,38 @@ GrpcClient::SetAppOnOutput(const std::string& app_id, const std::string& output_ return status.ok(); } +bool +GrpcClient::SetAppPosition(const std::string& app_id, int32_t x, int32_t y) +{ + agl_shell_ipc::AppPositionRequest request; + + request.set_app_id(app_id); + request.set_x(x); + request.set_y(y); + + grpc::ClientContext context; + ::agl_shell_ipc::AppPositionResponse reply; + + grpc::Status status = m_stub->SetAppPosition(&context, request, &reply); + return status.ok(); +} + +bool +GrpcClient::SetAppScale(const std::string& app_id, int32_t width, int32_t height) +{ + agl_shell_ipc::AppScaleRequest request; + + request.set_app_id(app_id); + request.set_width(width); + request.set_height(height); + + grpc::ClientContext context; + ::agl_shell_ipc::AppScaleResponse reply; + + grpc::Status status = m_stub->SetAppScale(&context, request, &reply); + return status.ok(); +} + grpc::Status GrpcClient::Wait(void) {