static const char kKeyError[] = "error";
static const char kKeyErrorDesc[] = "kErrorDescription";
-WMClient::WMClient(const string &appid, unsigned layerID, unsigned surfaceID, const string &role)
- : id(appid), layer(layerID),
+WMClient::WMClient(const string &appid, unsigned layer, unsigned surface, const string &role)
+ : id(appid), layer(layer),
role2surface(0)
{
- role2surface[role] = surfaceID;
+ role2surface[role] = surface;
for (auto x : kWMEvents)
{
#if GTEST_ENABLED
return this->layer;
}
-void WMClient::registerLayer(unsigned layerID)
+void WMClient::registerLayer(unsigned layer)
{
- this->layer = layerID;
+ this->layer = layer;
}
bool WMClient::addSurface(const string &role, unsigned surface)
return true;
}
-bool WMClient::removeSurfaceIfExist(unsigned surfaceID)
+bool WMClient::removeSurfaceIfExist(unsigned surface)
{
bool ret = false;
for (auto &x : this->role2surface)
{
- if (surfaceID == x.second)
+ if (surface == x.second)
{
this->role2surface.erase(x.first);
ret = true;