X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2FAglShellGrpcClient.cpp;h=5f1b447e4abac4c85d8ea0e469cd190ed7a59b4e;hb=HEAD;hp=804ab79a58c0d12060f3ba25518859657fd21d74;hpb=5a1dc65ef626bbf487c5ed33a7ffe62cbe45c72a;p=src%2Fwindow-management-client-grpc.git diff --git a/src/AglShellGrpcClient.cpp b/src/AglShellGrpcClient.cpp index 804ab79..5f1b447 100644 --- a/src/AglShellGrpcClient.cpp +++ b/src/AglShellGrpcClient.cpp @@ -75,6 +75,20 @@ GrpcClient::SetAppFloat(const std::string& app_id, int32_t x_pos, int32_t y_pos) return status.ok(); } +bool +GrpcClient::SetAppNormal(const std::string& app_id) +{ + agl_shell_ipc::NormalRequest request; + + request.set_app_id(app_id); + + grpc::ClientContext context; + ::agl_shell_ipc::NormalResponse reply; + + grpc::Status status = m_stub->SetAppNormal(&context, request, &reply); + return status.ok(); +} + bool GrpcClient::SetAppFullscreen(const std::string& app_id) { @@ -90,12 +104,12 @@ GrpcClient::SetAppFullscreen(const std::string& app_id) } bool -GrpcClient::SetAppOnOutput(const std::string& app_id, const std::string& output_name) +GrpcClient::SetAppOnOutput(const std::string& app_id, const std::string &output) { agl_shell_ipc::AppOnOutputRequest request; request.set_app_id(app_id); - request.set_output(output_name); + request.set_output(output); grpc::ClientContext context; ::agl_shell_ipc::AppOnOutputResponse reply; @@ -136,6 +150,26 @@ GrpcClient::SetAppScale(const std::string& app_id, int32_t width, int32_t height return status.ok(); } + +bool +GrpcClient::SetAppSplit(const std::string& app_id, uint32_t orientation, + int32_t width, int32_t sticky, const std::string& output_name) +{ + agl_shell_ipc::SplitRequest request; + + request.set_app_id(app_id); + request.set_output_name(output_name); + request.set_tile_orientation(orientation); + request.set_width(width); + request.set_sticky(sticky); + + grpc::ClientContext context; + ::agl_shell_ipc::SplitResponse reply; + + grpc::Status status = m_stub->SetAppSplit(&context, request, &reply); + return status.ok(); +} + grpc::Status GrpcClient::Wait(void) {