From: bg.chun Date: Wed, 4 May 2016 08:05:59 +0000 (+0900) Subject: [systeminfo] add kPlatformTv, kProfileTv for tv profile X-Git-Tag: submit/tizen/20160504.100625^2~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3bef0c1e2d9d1e171cca13eff38d291f083f4d90;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [systeminfo] add kPlatformTv, kProfileTv for tv profile [Verification] sysinfo TCT 100% pass 248/248/0/0/0 Change-Id: I3608f46a58d7448a4e57bb106e6dcf29d69b2b7c Signed-off-by: bg.chun --- diff --git a/src/systeminfo/systeminfo_device_capability.cc b/src/systeminfo/systeminfo_device_capability.cc index d2295b17..2032ca88 100644 --- a/src/systeminfo/systeminfo_device_capability.cc +++ b/src/systeminfo/systeminfo_device_capability.cc @@ -35,10 +35,12 @@ namespace { const char* kPlatformFull = "mobile-full"; const char* kPlatformMobile = "mobile-web"; const char* kPlatformWearable = "wearable"; +const char* kPlatformTv = "tv"; const char* kProfileFull = "MOBILE_FULL"; const char* kProfileMobile = "MOBILE_WEB"; const char* kProfileWearable = "WEARABLE"; +const char* kProfileTv = "TV"; //opengles const char* kOpenglesTextureDelimiter = "/"; const char* kOpenglesTextureUtc = "utc"; @@ -516,7 +518,12 @@ PlatformResult SystemInfoDeviceCapability::GetProfile(std::string* return_value) *return_value = kProfileMobile; } else if ( kPlatformWearable == profile ) { *return_value = kProfileWearable; + } else if ( kPlatformTv == profile ) { + *return_value = kProfileTv; + } else { + LoggerE("Profile is Unknown return MOBILE_FULL"); } + return PlatformResult(ErrorCode::NO_ERROR); }