X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2FAglShellGrpcClient.cpp;fp=src%2FAglShellGrpcClient.cpp;h=804ab79a58c0d12060f3ba25518859657fd21d74;hb=cb43847cd07ba3d2b3e1f34aff3d6c98325c1c20;hp=058c051f68553a198c6e6a5ed1928d8299237f46;hpb=21772bfc2d482248e2df5438039a70d5231bc993;p=src%2Fwindow-management-client-grpc.git diff --git a/src/AglShellGrpcClient.cpp b/src/AglShellGrpcClient.cpp index 058c051..804ab79 100644 --- a/src/AglShellGrpcClient.cpp +++ b/src/AglShellGrpcClient.cpp @@ -120,6 +120,22 @@ GrpcClient::SetAppPosition(const std::string& app_id, int32_t x, int32_t y) 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) {